Last active
August 29, 2015 14:07
Revisions
-
VerosK revised this gist
May 13, 2015 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,8 @@ $ModLoad imfile $InputFilename /var/log/nagios/nagios.log $InputFileStateFile .nagios.rsyslog # Don't forget semicolon on next line! $InputFileTag nagios.log: $InputFileFacility local6 $InputFileSeverity info $InputRunFileMonitor -
VerosK revised this gist
Oct 3, 2014 . 2 changed files with 22 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ #[root /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 #[root /etc/rsyslog.d]# cat 99-forward-to-logstash.conf # # TCP Logging to local logstash with queue # $WorkDirectory /var/lib/rsyslog # where to place spool files $ActionQueueFileName to-logstash # unique name prefix for spool files $ActionQueueMaxDiskSpace 1g # 1gb space limit (use as much as possible) $ActionQueueSaveOnShutdown on # save messages to disk on shutdown $ActionQueueType LinkedList # run asynchronously $ActionResumeRetryCount -1 # infinite retries if host is down *.* @@192.168.16.228:5544 -
VerosK created this gist
Oct 3, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ #[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