[rsyslog-notify] Forum Thread: Re: ruleset does not work, no writing into file - (Mode 'reply')

noreply at adiscon.com noreply at adiscon.com
Wed Mar 19 20:03:11 CET 2014


User: vogster 
Forumlink: http://kb.monitorware.com/viewtopic.php?p=24409#p24409

Message: 
----------
Hello dlang,

Hello dlang,
Thanks for your support. For testing I installed the stable V7 from repo
and after that I tried the devel V8 from repo as well. The problem is still
the same, as a daemon no files are written, as a simple prozess started
without any options it works fine in all Version V5, V7, V8. After that I
changed my code from the rainer-script to the old version but there was no
effect. The way I try to communicate UDP or TCP doesn’t matter. This is my
.conf file I put in /etc/syslog.d, no other changes are made.

[code:s68dacnf]#### MODULE ####
$ModLoad imudp
$ModLoad imtcp

#### Template Error-Files ####
$template
DynaFile_error,"/logfiles/errors/errors_d%$YEAR%-%$MONTH%-%$DAY%.log"

#### Template Warning-Files ####
$template
DynaFile_warning,"/logfiles/warnings/warnings_d%$YEAR%-%$MONTH%-%$DAY%.log"

#### Templates Log-Files ####
$template
DynaFile_subsys-a,"/logfiles/subsys-a/subsys-a_d%$YEAR%-%$MONTH%-%$DAY%_h%$HOUR%.log"
$template
DynaFile_subsys-b,"/logfiles/subsys-b/subsys-b_d%$YEAR%-%$MONTH%-%$DAY%_h%$HOUR%.log"
$template
DynaFile_subsys-c,"/logfiles/subsys-c/subsys-c_d%$YEAR%-%$MONTH%-%$DAY%_h%$HOUR%.log"
$template
DynaFile_subsys-d,"/logfiles/subsys-d/subsys-d_d%$YEAR%-%$MONTH%-%$DAY%_h%$HOUR%.log"

#### RULESETS ####
$RuleSet subsys-a 
*.*	?DynaFile_subsys-a
*.=warn	?DynaFile_warning
*.=err	?DynaFile_error
*.* 	~	

$RuleSet subsys-b 
*.*	?DynaFile_subsys-b
*.=warn	?DynaFile_warning
*.=err	?DynaFile_error
*.* 	~

$RuleSet subsys-c 
*.*	?DynaFile_subsys-c
*.=warn	?DynaFile_warning
*.=err	?DynaFile_error
*.* 	~

$RuleSet subsys-d 
*.*	?DynaFile_subsys-d
*.=warn	?DynaFile_warning
*.=err	?DynaFile_error
*.* 	~

#### RULESETS for UDP and TCP ####
$InputTCPServerBindRuleset subsys-a
$InputTCPServerRun 50001
$InputTCPServerBindRuleset subsys-b
$InputTCPServerRun 50002
$InputUDPServerBindRuleset subsys-c 
$UDPServerRun 4001
$InputUDPServerBindRuleset subsys-d 
$UDPServerRun 4002
[/code:s68dacnf]

If you have any idea what I can test or change or do, it would be very
helpful!!
Thanks, Vogster


More information about the rsyslog-notify mailing list