Mar 132015
 

Use re_match. http://www.rsyslog.com/doc/master/rainerscript/functions.html?highlight=re_match

if ( $fromhost-ip startswith '10.0.0' and re_match($hostname,'.*-fw[0-9]') ) then
  action(type="omfile" file="/tmp/test.log")
 Posted by at 11:27

Sorry, the comment form is closed at this time.