# See main .sh file for info
# rgerhards, 2015-05-27
main_queue(queue.workerthreads="1") 
$IncludeConfig diag-common.conf

# omtesting provides the ability to cause "SUSPENDED" action state
module(load="../plugins/omtesting/.libs/omtesting")

$MainMsgQueueTimeoutShutdown 100000
template(name="outfmt" type="string" string="%msg:F,58:2%\n")

:msg, contains, "msgnum:" {
	action(type="omfile" file="rsyslog.out.log" template="outfmt")
	action(type="omfile" file="rsyslog2.out.log" template="outfmt"
	       action.ExecOnlyWhenPreviousIsSuspended="on"
	      )
}
