我需要监视名称随日期变化的日志文件中的特定java字符串,例如。 d:\日志\日志文件,DDMMYYYY.log。如果在日志中检测到此字符串,我想获得警报。有人能帮助我吗?
此致
答案 0 :(得分:0)
Script is your best way for accomplish that, if it is an linux machine you can wrote a perl\bash script. if you need to monitor Windows machine you can use VBScript.
If you prefer not dealing with scripts, you can use NiCE Excellnet & Free Log File Monitoring MP: http://www.nice.de/log-file-monitoring-scom-nice-logfile-mp/ But i don't sure if theirs mp supports monitoring wildcards log file names.
答案 1 :(得分:0)
SCOM可以动态监视日志文件。您应该使用日志文件模式日志文件监视日志目录D:\ Logs - ????????。log。