Great to hear! It's not that intuitive, I know. Any idea how to make this more obvious to users?
Rainer El jue., 16 may. 2019 a las 16:59, Joan (<[email protected]>) escribió: > > Thanks a lot, it's working now > > Missatge de Rainer Gerhards <[email protected]> del dia dj., 16 de > maig 2019 a les 11:03: >> >> El jue., 16 may. 2019 a las 9:57, Joan via rsyslog >> (<[email protected]>) escribió: >> > >> > I am trying the expression below to detect the time format from java >> > (13-May-2019 09:18:42.268) >> > >> > startmsg.regex="^[[:digit:]]{2}-[[:alpha:]]{3}-[[:digit:]]{4} >> > > [[:digit:]]{1,2}:[[:digit:]]{1,2}:[[:digit:]]{1,2}\.[[:digit:]]{3}" >> > > >> > It works fine except for the \. to match an explicit dot >> >> Note that you are specifiying a string. Backslash escapes special >> characters inside a string (just like in many programming and >> scripting languages). So to get one backslash in the final result, you >> need to give two. Like this: >> >> startmsg.regex="^[[:digit:]]{2}-[[:alpha:]]{3}-[[:digit:]]{4} >> [[:digit:]]{1,2}:[[:digit:]]{1,2}:[[:digit:]]{1,2}\\.[[:digit:]]{3}" >> >> HTH >> Rainer >> > >> > rsyslogd: error during parsing file /etc/rsyslog.d/45-config.conf, on or >> > > before line 17: invalid character '"' in object definition - is there an >> > > invalid escape sequence somewhere? [v8.1904.0 try >> > > https://www.rsyslog.com/e/2207 ] >> > > rsyslogd: error during parsing file /etc/rsyslog.d/45-config.conf, on or >> > > before line 17: invalid character '^' in object definition - is there an >> > > invalid escape sequence somewhere? [v8.1904.0 try >> > > https://www.rsyslog.com/e/2207 ] >> > > rsyslogd: error during parsing file /etc/rsyslog.d/45-config.conf, on or >> > > before line 17: syntax error on token '[' [v8.1904.0 try >> > > https://www.rsyslog.com/e/2207 ] >> > > rsyslogd: could not interpret master config file '/etc/rsyslog.conf'. >> > > [v8.1904.0 try https://www.rsyslog.com/e/2207 ] >> > > >> > Is there another syntax I'm missing? >> > I am Using 8.1904.0-0adiscon1bionic1 from the adiscon ppa >> > >> > Regards, >> > >> > Joan >> > _______________________________________________ >> > 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. _______________________________________________ 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.

