Posted at

rsyslog設定-メッセージを2重出力させない

More than 1 year has passed since last update.


filter掛けた場合、ログが2重出力されないよう編集

---抜粋---

"#### RULES ####

RULE1

$template ClientMessage,"/var/log/systemlog/%fromhost%/%fromhost%.log"

. -?ClientMessage

& ~

"# Log all kernel messages to the console.

"# Logging much else clutters up the screen.

"#kern.* /dev/console

"# Log anything (except mail) of level info or higher.

"# Don't log private authentication messages!

*.info;mail.none;authpriv.none;cron.none /var/log/messages

---抜粋---