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

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.

Reply via email to