Skip to content

VoiSmart/mod_log_graylog2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mod_log_graylog2

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)

Build

make

If 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_configs

Install

Install the module and its autoload config:

make install

Package builds can stage the files with DESTDIR:

make install DESTDIR=/tmp/pkgroot

Use make show-config to inspect the resolved build variables.

About

An improved graylog logger for FreeSWITCH

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors