Hi,

This must to be a very easy solution, but I can't see it.

I want remove spaces from a property replace result in a template, and I don't know why.


My template:

template(name="tLogJOSTwrt" type="list") {
    constant(value="/logs/wrt/")
    property(name="timereported" dateformat="year")
    property(name="timereported" dateformat="month")
    property(name="timereported" dateformat="day")
    constant(value="/")
    property(name="msg" field.number="1" field.delimiter="58" caseconversion="lower")
    constant(value=".log")
}

Line to process:

' AAA: text'

Line that I want to get:

'aaa'

But I get ' aaa'.


I know I cant remove first character, but I don't know if I can get another space in another place and I want to remove all spaces.


Best Regards,

Alberto





_______________________________________________
rsyslog mailing list
https://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