Created
January 20, 2013 02:49
-
-
Save mikeda/4576393 to your computer and use it in GitHub Desktop.
syslog集約サーバのrsyslog.conf。とりあえず版
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 characters
| $ModLoad imuxsock | |
| $ModLoad imklog | |
| $ModLoad imudp | |
| $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat | |
| $template RemoteLog, "/var/log/remote/%hostname:::secpath-replace%/%hostname:::secpath-replace%_%$year%%$month%%$day%.log" | |
| $RuleSet local | |
| *.info;mail.none;authpriv.none;cron.none /var/log/messages | |
| authpriv.* /var/log/secure | |
| mail.* -/var/log/maillog | |
| cron.* /var/log/cron | |
| *.emerg * | |
| uucp,news.crit /var/log/spooler | |
| local7.* /var/log/boot.log | |
| $RuleSet remote | |
| *.* ?RemoteLog | |
| $DefaultRuleset local | |
| $AllowedSender UDP, 127.0.0.0/8, 192.168.1.0/24 | |
| $InputUDPServerBindRuleset remote | |
| $UDPServerRun 514 | |
| #$IncludeConfig /etc/rsyslog.d/*.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment