File::Syslogger - Use POE to tail a file and read new lines into syslog.
Version 0.0.2
use File::Syslogger; File::Syslogger->run( pri=>'alert', facility=>'daemon', files=>{ {'sagan_eve'}=>{file=>'/var/log/sagan/eve', program=>'saganEve'}, {'suricata_eve'}=>{file=>'/var/log/suricata/eve', program=>'suricataEve'}, }, );
Initiates POE sessions and run them.
This will die if there are any config issues.
The following options are optionaal.
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"
The option files is a hash of hashes. It has one mandatory key, 'file', which is the file to follow. All the above options may be used in the sub hashes.
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
File rotation should be picked up POE::Wheel::FollowTail.
Zane C. Bowers-Hadley, <vvelox at vvelox.net>
<vvelox at vvelox.net>
Please report any bugs or feature requests to bug-file-syslogger at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=File-Syslogger. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-file-syslogger at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc File::Syslogger
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
https://rt.cpan.org/NoAuth/Bugs.html?Dist=File-Syslogger
CPAN Ratings
https://cpanratings.perl.org/d/File-Syslogger
Search CPAN
https://metacpan.org/release/File-Syslogger
This software is Copyright (c) 2021 by Zane C. Bowers-Hadley.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
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.