Need help with checklogfiles


#1

Hello All,

I would need your assistance. I’m playing around with this to get this working since days. I also checked the NRPE … but also going very slowly to solve it… My point is… in this file INFO and ERROR lines are created. I want to count this lines and feedback to nagios server as performance data.

Can anyone help me… I really would it need urgently.

Thank Guys!

[/settings/logfile/real-time] enabled = true

[/settings/logfile/real-time/checks/tToken] file=c:\inetpub\vhosts\logs\tToken.log column-split=, split=, ok="column3 like ‘INFO’" crit=“column3 like ‘ERROR’”

{“message”:"[ 2018.08.13 / 01:08:03:+0100 , command ,INFO,xxxxxxxxxxxxxxxxxx , yyyyyyyyyyyyyyyyyyyyyy ,1290 ,zzzzzzzzzzzzzzzzzzzzz",“level”:“info”} {“message”:"[ 2018.08.13 / 01:09:04:+0100 , command ,ERROR,xxxxxxxxxxxxxxxxxx , yyyyyyyyyyyyyyyyyyyyyy ,1290 ,zzzzzzzzzzzzzzzzzzzzz",“level”:“info”}