Page 1 of 1

Log parsing on special charachters

Posted: Wed Jun 24, 2015 9:54 am
by digitallife
Hello,

I’m using the check_log3.pl plugin to parse log patterns for nagios. The script work great! However, I’m having issues reading a pattern such as ‘test\one\two\three’. I’ve tried to use double " " also. So, how do I parse patterns using special characters such as \ or [ ], etc?

You help is greatly appreciated.

Re: Log parsing on special charachters

Posted: Wed Jun 24, 2015 10:46 am
by digitallife
Team,
I found the solution. I needed to use double \\.

Thanks

Re: Log parsing on special charachters

Posted: Wed Jun 24, 2015 12:06 pm
by jolson
Thanks for reporting back! I'll lock this thread.