[rsyslog-notify] Forum Thread: Re: stop doesn't work - (Mode 'reply')
noreply at adiscon.com
noreply at adiscon.com
Mon Nov 2 13:17:12 CET 2015
User: flaco
Forumlink: http://kb.monitorware.com/viewtopic.php?p=26087#p26087
Message:
----------
[quote="rgerhards":38v1b2vn]I think it does not understand some escapes,
like the message says. E.g. I don't think that \d is a valid rsyslog
escape. You probably want something different, that is \\d --> \\ is a
string escape, which tells rsyslog you want a single backslash.
see also: <!-- m --><a class="postlink"
href="http://www.rsyslog.com/rainerscript-constant-string-escaper/">http://www.rsyslog.com/rainerscript-con
... g-escaper/</a><!-- m -->[/quote:38v1b2vn]
Thank you Rainer. Maybe I had confused with PCRE. But the following string
should be POSIX ERE:
[code:38v1b2vn]alteon[0-9]-posta-[0-9]+\.example\.org[/code:38v1b2vn]
For instance:
[code:38v1b2vn]grep -E
"alteon[0-9]-posta-[0-9]+\.example\.org"
maillog[/code:38v1b2vn]
works. But about the same regular expression rsyslog says:
[code:38v1b2vn]rsyslogd: version 7.6.3, config validation run
(level 2), master config temp.conf
rsyslogd: error during parsing file temp.conf, on or before line
1: invalid character '"' in expression - is there an invalid escape
sequence somewhere? [try http://www.rsyslog.com/e/2207
]
rsyslogd: error during parsing file temp.conf, on or before line
1: syntax error on token '[' [try
http://www.rsyslog.com/e/2207 ]
rsyslogd: CONFIG ERROR: could not interpret master config file
'temp.conf'. [try http://www.rsyslog.com/e/2207
]
rsyslogd: run failed with error -2207 (see rsyslog.h or try
http://www.rsyslog.com/e/2207 to learn what that number
means)[/code:38v1b2vn]
Anyway, ok, I'll find alternatives...
Thanks again
Marco
More information about the rsyslog-notify
mailing list