NAME
filesyslogger - Tails the configured files and sends it to syslog.
SYNOPSIS
filesyslogger [-c <config>]
FLAGS
-c <config file>
This is the config file to use. If not specified, '/usr/local/etc/filesyslogger.toml' is used.
CONFIG FILE
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
EXAMPLE
facility="daemon"
priority="alert"
socket="/var/run/log"
[sagan]
program="saganEve"
file="/var/log/sagan/eve"
[suricata]
program="suricataEve"
file="/var/log/suricata/eve"