antik486 / logix

transports your local syslog to Graylog2 via AMQP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logix - Transports your local syslog to Graylog2 via AMQP

Why should I use it?

When you are sending lots of udp log events over the network packet loss can happen, or even using a tcp log sender you can get a slow response on your server depending on how much logs your remote log server is receiving simultaneously.

So... what can you do to avoid it?

logix can help you using its daemon receiving your log events and queueing you messages on AMQP. You can easily get rid of log event losses caused by udp and any performance issue that could be caused by concurrency using tcp remote syslog.

logix queues your log events on any AMQP Server and you can easy setup your greylog2-server to consume this queue and index your logs on demand.

Usage:

Setup your AMQP and Graylog2

on MacOS X:

$ vim /etc/syslog.conf
*.notice;authpriv,remoteauth,ftp,install,internal.none  @127.0.0.1:8000
$ launchctl unload /System/Library/LaunchDaemons/com.apple.syslogd.plist
$ launchctl load /System/Library/LaunchDaemons/com.apple.syslogd.plist

on Linux:

$ vim /etc/rsyslog.d/logix.conf
*.*  @127.0.0.1:8000
$ /etc/init.d/rsyslog restart

Running:

$ LOGIX_CONF=src/etc/logix.conf src/bin/logix &
$ logger test

Depends:

  • python-kombu (>= 1.4.3)
  • python-gevent (>= 0.13.6)
  • python-supay
  • syslog or rsyslog :D

Todo

  • needs tweak on amqp pool
  • would benefit of an internal backlog queue

About

transports your local syslog to Graylog2 via AMQP

License:Apache License 2.0