Hi All,
I'm new to rsyslog and want to convert my old syslog-ng configuration.
filter f_semsd { match('<agent_name>'); };
filter f_tcp_semsd { filter(f_semsd) and ( match(EVENT) or match(FATAL) or match(CRITICAL) or match(MAJOR) or match(CLEARED) ); };
filter f_tcp_semsd_active { filter(f_tcp_semsd) and match("<hsb>active</hsb>"); };
log { source(src_local); filter(f_semsd); destination(d_sems); };
log { source(src_local); filter(f_tcp_semsd_active); destination(d_sems2); };
The 1ste log entry can be entered as:
:msg,contains,"<agent_name>"
& /var/log/sems.log
&~
But how can I put the 2nd log line?
I'm using rsyslog-2.0.6-1.el5 so I can't use the if-then clause.
Any help appreciated!
Thx Johan


