Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.
/ logstomp Public archive

Processor for svlogd to send messages to Stomp destination

License

Notifications You must be signed in to change notification settings

craigw/logstomp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logstomp

Broadcast logs via Stomp.

Installation

$ gem install logstomp

Usage

I had this in mind to be used as a log processor for svlogd logs where you've told svlogd to use tai64n labels in the logs.

In /service/$foo/log/config add a line like this:

!/usr/bin/logstomp log_tag stomp://yourmq.com:61613/topic/logs.service_name

Whenever svlogd rotates the logs you'll now get an event in the following format on /topic/logs.service_name:

<?xml version="1.0" encoding="UTF-8"?>
<event>
  <time tai64n="@4000000050a50337000001f4"/>
  <meta>
    <tag>log_tag</tag>
    <hostname>zuu</hostname>
    <batch_id>hzuu.pmg8.tmdeczt.r9mkii6cb</batch_id>
  </meta>
  <entry>
    <text>
      <![CDATA[The log line will appear here]]>
    </text>
  </entry>
</event>

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Processor for svlogd to send messages to Stomp destination

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages