PA Server Monitor's Log File Monitor can do exactly that.
Keyword monitoring in log file in Windows Server
-
03-07-2022 - |
Вопрос
I want to monitor a log(txt) file in Windows server and want to execute a script (to stop a windows service) on some keyword when it comes up in the log.
Is there any tool or script that can achieve this task? Thanks
Решение
Другие советы
You can set a schedule task every 5 mins and do this.
findstr /c:"[Fonts]" c:\windows\win.ini
If errorlevel = 1 goto :eof
sc start servicename
For help (read the Dos 6.22 reference for Find for exit codes [1 found, 2 not found, 3 error]) and type
findstr /?
schtasks /?
Не связан с StackOverflow