You need to check the exact field syntax. At least a $-Sign is missing in
front of YEAR and those (but I am not 100% sure if they are fully correct as
given). To compare two strings, you need to use script-based filters.

HTH
Rainer

> -----Original Message-----
> From: rsyslog-boun...@lists.adiscon.com [mailto:rsyslog-
> boun...@lists.adiscon.com] On Behalf Of Norman Zhang
> Sent: Thursday, February 10, 2011 5:59 AM
> To: rsyslog@lists.adiscon.com
> Subject: [rsyslog] Invalid Dynamic Filename
> 
> I configured Dynamic file
> 
> $template DynFile,"/test/log/%HOSTNAME%-%YEAR%-%MONTH%-%DAY%.log"
> :source , !isequal , "localhost" ?DynFile
> 
> However, I get invalid property in the filename.
> 
> [root@box ~]# ls -l /test/log/
> total 4
> -rw------- 1 root root 146 Feb  9 23:51 10.131.47.4-**INVALID PROPERTY
> NAME**-**INVALID PROPERTY NAME**-**INVALID PROPERTY NAME**.log
> 
> 1. Am I missing something?
> 2. Can I compare two different strings with !isequal?
> 
> Norman
> 
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to