filesyslogger - Tails the configured files and sends it to syslog.
filesyslogger [-c <config>]
This is the config file to use. If not specified, '/usr/local/etc/filesyslogger.toml' is used.
The file format used is TOML.
The primary and optional keys are as below.
priority - The priority of the logged item. Default is 'notice'. facility - The facility for logging. Default is 'daemon'. program - Name of the program logging. Default is 'fileSyslogger'. socket - The syslogd socket. Default is "/var/run/log"
Each file defined in a TOML table. The keys are as below.
Each TOML table is used for specifying what files to tail and forward to syslog. It uses the same keys as above, minus 'socket', but with the additional key 'file' for specifying what file.
File rotation is picked up automatically via POE::Wheel::FollowTail.
For priority, below are the various valid values.
emerg emergency alert crit critical err error warning notice info
For facility, below are the various valid values.
kern user mail daemon auth syslog lpr news uucp cron authpriv ftp local0 local1 local2 local3 local4 local5 local6 local7
facility="daemon" priority="alert" socket="/var/run/log" [sagan] program="saganEve" file="/var/log/sagan/eve" [suricata] program="suricataEve" file="/var/log/suricata/eve"
To install File::Syslogger, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::Syslogger
CPAN shell
perl -MCPAN -e shell install File::Syslogger
For more information on module installation, please visit the detailed CPAN module installation guide.