Greeting all,
I have configured rsyslog on CentOS 6 with a client on Windows server 2008.
Server is collecting the log files fine without issues. LogAnalyzer shows proper data. But it is not sending the email alerts. Seems there is some issue with "if" loop used in the configuration.
Here is the config:
Code:
$ModLoad ommail
$ActionMailSMTPServer mx1.<org>.com
$ActionMailFrom rsyslog@<org>.com
$ActionMailTo <me>@<org>.com
$template mailSubject,"Rsyslog alert for %hostname%"
$template mailBody,"Rsyslog alert for %hostname%\r\nmsge='%msg%'"
$ActionMailSubject mailSubject
$ActionExecOnlyOnceEveryInterval 30
if $syslogseverity-text == 'INFO' then :ommail:;mailBody
But I do not receive any alerts even though there are logs with severity INFO.
Any help would be appreciated.