On Wed, 12 Sep 2012, Rainer Gerhards wrote:
we really need an option to skip escaping tabs while still escaping
all
the other control characters. too many logs include tabs and it gets
'interesting' to try and read them with #011 replacing them :)
I definitely agree with the notion of having a way to escape all
control
characters except for tabs; I already have some logic in place in my
applications to handle literal tabs, but other control characters make
sense to escape. Right now I have to turn off the feature to escape
control characters just to preserve the tab behavior so as not to break
parsing. +1 for this suggestion from me!
Folks, message heard, I'll see if I can add a global option for
escape-all-but-tab. HOWEVER, my question was a different one ;)
I was talking about escapes for script expressions, inside constant strings. So
If $something contains 'aaa<escape here>bbbb' then ...
This was triggered by Radu's question on how to escape backslash. With
that said: do we need more than \\, \', \xhh inside script constants?
\" when " becomes valid
\t even without the 'escape everything but tabs" option, people are
disabling escaping and this would be useful
while these could be handled by \xhh, I think they will be common enough
to be worth implementing.
Also, you do \xhh for this side of escaping, but #ooo for escaping inbound
characters, it would seem to me that it probably makes more sense to stick
with either octal or hex, not using a different one in each case.
David Lang
_______________________________________________
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.