mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-18 20:20:41 +01:00
35 lines
981 B
Plaintext
35 lines
981 B
Plaintext
# Test for multiple ruleset queues (see .sh file for details)
|
|
# rgerhards, 2009-10-30
|
|
$IncludeConfig diag-common.conf
|
|
$ModLoad ../plugins/imtcp/.libs/imtcp
|
|
$MainMsgQueueTimeoutShutdown 10000
|
|
|
|
# general definition
|
|
$template outfmt,"%msg:F,58:2%\n"
|
|
|
|
# create the individual rulesets
|
|
$ruleset file1
|
|
$RulesetCreateMainQueue on
|
|
$template dynfile1,"rsyslog.out1.log" # trick to use relative path names!
|
|
:msg, contains, "msgnum:" ?dynfile1;outfmt
|
|
|
|
$ruleset file2
|
|
$RulesetCreateMainQueue on
|
|
$template dynfile2,"rsyslog.out2.log" # trick to use relative path names!
|
|
:msg, contains, "msgnum:" ?dynfile2;outfmt
|
|
|
|
$ruleset file3
|
|
$RulesetCreateMainQueue on
|
|
$template dynfile3,"rsyslog.out3.log" # trick to use relative path names!
|
|
:msg, contains, "msgnum:" ?dynfile3;outfmt
|
|
|
|
# start listeners and bind them to rulesets
|
|
$InputTCPServerBindRuleset file1
|
|
$InputTCPServerRun 13514
|
|
|
|
$InputTCPServerBindRuleset file2
|
|
$InputTCPServerRun 13515
|
|
|
|
$InputTCPServerBindRuleset file3
|
|
$InputTCPServerRun 13516
|