Broadcast logs via Stomp.
$ gem install logstomp
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>
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request