Get alert string from dynamic logfiles

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
rawyan
Posts: 7
Joined: Tue Jan 21, 2020 9:02 am

Get alert string from dynamic logfiles

Post by rawyan »

Hello again.
I have a case, to monitor text log files, for searching "bad" and "good" words.
All works fine while logfile is single (I point to it, and configure bad and good phrases). But I have some programs which generates lots of logfiles (naming by date-time in aperiodic manner). And I need to read all these files (or newest ones) for searching "bad" string.

Is it possible to monitor all text files on the folder simultaneously, or (is better) to monitor latest ones?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

HostMonitor can check specific log file or check newest, oldest file, check file using date/time variables but single test cannot check several files.
If you need to check 10 files, you need 10 Text Log test items.

Variables
https://www.ks-soft.net/hostmon.eng/mfr ... htm#macros

Note: if you need to check "old" log files (check entire file, not just new records added after last test probe), then you may use Compare Files test method, it can check for specific string.

Regards
Alex
Post Reply