Log parsing on special charachters

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
digitallife
Posts: 27
Joined: Mon Nov 17, 2014 12:29 pm

Log parsing on special charachters

Post 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.
digitallife
Posts: 27
Joined: Mon Nov 17, 2014 12:29 pm

Re: Log parsing on special charachters

Post by digitallife »

Team,
I found the solution. I needed to use double \\.

Thanks
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Log parsing on special charachters

Post by jolson »

Thanks for reporting back! I'll lock this thread.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked