Page 1 of 1
Check string in windows log application file
Posted: Fri May 26, 2017 8:44 am
by emi65
Hi expert
I'm looking for a check to monitor an application log files in a windows environment
I need to start an alert when a specific strings appear in this log
Some one have suggestion in order to solve this problem ?
thanks for your help
Regards
Emilio
Re: Check string in windows log application file
Posted: Fri May 26, 2017 9:35 am
by avandemore
Does this answer your question?
Code: Select all
[root@core ~]# /usr/local/nagios/libexec/check_log -F /var/log/messages -O /dev/null -q 'test message' -w 1
Log check ok - 0 pattern matches found|match=0;;;0
[root@core ~]# logger "test message"
[root@core ~]# /usr/local/nagios/libexec/check_log -F /var/log/messages -O /dev/null -q 'test message' -w 1
(1) < May 26 09:31:24 core root: test message|match=1;;;0
[root@core ~]# /usr/local/nagios/libexec/check_log -h | head -n 1
check_log v2.1.4 (nagios-plugins 2.1.4)
There are other plugins available as well on
https://exchange.nagios.org/
Re: Check string in windows log application file
Posted: Fri May 26, 2017 1:52 pm
by emi65
Sorry but your solution is used in the unix environment
I need a solution to monitor a log file present in a MS Windows application
The files is in a folder like C:\APP\LOG
anyway thanks for your help
Emilio
Re: Check string in windows log application file
Posted: Fri May 26, 2017 2:07 pm
by avandemore
Re: Check string in windows log application file
Posted: Wed Jun 21, 2017 1:28 pm
by tmcdonald
Just checking in since we have not heard from you in a while. Did
@avandemore's post clear things up or has the issue otherwise been resolved?
Re: Check string in windows log application file
Posted: Thu Jun 22, 2017 1:55 am
by emi65
I didn't find a ready check .
I'll plane to write new one
Re: Check string in windows log application file
Posted: Thu Jun 22, 2017 9:43 am
by tmcdonald
Otherwise if you are okay with a commercial solution, then Nagios Log Server was developed specifically for this:
https://www.nagios.com/products/nagios-log-server/
Re: Check string in windows log application file
Posted: Thu Jun 22, 2017 9:51 am
by emi65
thanks for your suggestions
Regards
Emilio
Re: Check string in windows log application file
Posted: Thu Jun 22, 2017 2:26 pm
by lmiltchev
Emilio, do you have any more questions? Can we close this thread?
Re: Check string in windows log application file
Posted: Fri Jun 23, 2017 1:26 am
by emi65
No , I'have no more question
Many Thanks for you help
regards
Emilio