Skip to content

Instantly share code, notes, and snippets.

@VerosK
Last active August 29, 2015 14:07
Show Gist options
  • Save VerosK/d4cbbedf56111bcd3c0f to your computer and use it in GitHub Desktop.
Save VerosK/d4cbbedf56111bcd3c0f to your computer and use it in GitHub Desktop.
Forward local file to remote syslog
#[root@nagios2 /etc/rsyslog.d]# cat 12-nagios.conf
$ModLoad imfile
$InputFilename /var/log/nagios/nagios.log
$InputFileStateFile .nagios.rsyslog
$InputFileTag nagios.log
$InputFileFacility local6
$InputFileSeverity info
$InputRunFileMonitor
@VerosK
Copy link
Author

VerosK commented Feb 17, 2015

beware: This is config from Centos 5.5 with really old rsyslog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment