mod_log_graylog2 is an out-of-tree FreeSWITCH logging module.
The differences with original mod_graylog2 are:
- a connection state machine, allows starting up while disconnected
- a queue for logs while disconnected
- periodic DNS refresh and reconnection for UDP, original module resolves once during startup, which makes it not suitable for dynamic environment where logging service ip may change
- UDP error detection an reconnection
- TCP support (not well tested yet)
makeIf pkg-config is not available for FreeSWITCH, pass the include path explicitly:
make FS_CFLAGS="-I/usr/include/freeswitch"For a custom FreeSWITCH prefix, override the install paths explicitly:
make \
FS_CFLAGS="-I/usr/local/freeswitch/include/freeswitch" \
FS_MODULES_DIR=/usr/local/freeswitch/mod \
FS_CONF_DIR=/usr/local/freeswitch/conf/autoload_configsInstall the module and its autoload config:
make installPackage builds can stage the files with DESTDIR:
make install DESTDIR=/tmp/pkgrootUse make show-config to inspect the resolved build variables.