athoune / mod_syslog

Syslog your ejabberd
8 stars 3 forks source link

Syslog for Ejabberd

_modsyslog is a simple ejabberd's module wich listen events and send them to syslogd.

erlang_syslog is the erlang application used for syslogd communication.

Build

The Rakefile is hardcoded for macbrew's ejabberd. I'll fix that later.

Config

in ejabberd.cfg, in the modules section

 {mod_syslog, [
    {syslog, {"localhost", 514, user}},
    {modules, [presence, connection, muc]}
    ]},

For syslog, you choose a server, a port, and a facility.

For modules, you choose wich events are watched. For now, you can't watch muc events.

Licence

MIT 2011, © Mathieu Lecarme