Hello,

I receive logs whose programname contains slashes (they represent a folder 
hierarchy like "net/verbose/exception") I'd like to recreate this folder 
hierarchy with rsyslog.
I have used dynafile in the past but it seems that rsyslog truncate the 
programname at the fist slash.

For instance, using the following template:
template(name="All" type="list") {
  constant(value="/var/opt/logs/tests/")
  property(name="programname")
  constant(value="-test.log")
}

rsyslog creates logs in : /var/opt/logs/tests/net-log instead of 
/var/opt/logs/test/net/verbose/exception-test.log

Is there something I am doing wrong?

-- 
Grégoire
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to