[rsyslog-notify] Forum Thread: Re: Rsyslog forwarding or listening configuration - (Mode 'reply')
noreply at adiscon.com
noreply at adiscon.com
Thu Nov 19 11:40:42 CET 2015
User: yurka44
Forumlink: http://kb.monitorware.com/viewtopic.php?p=26170#p26170
Message:
----------
Is it so importart to use this configuration in default rsyslog.conf BEFORE
the default lines?
I mean may I use this construction?
local0.* @@myipaddress
& ~
#### RULES ####
# 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
# The authpriv file has restricted access.
authpriv.* /var/log/secure
# Log all the mail messages in one place.
mail.* -/var/log/maillog
# Log cron stuff
cron.* /var/log/cron
# Everybody gets emergency messages
*.emerg *
# Save news errors of level crit and higher in a special file.
uucp,news.crit /var/log/spooler
# Save boot messages also to boot.log
local7.* /var/log/boot.log
Which should say to send local0.* messages to my server's ip address
directly and then do not write that message for /var/log/messages ?
Unfortunately If .. then doesn't work for me. Rsyslog warning said, that :
selector line without actions will be discarded .
As I can see this if .. then type works only with Template.
More information about the rsyslog-notify
mailing list