search multiple log files

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
GEI
Posts: 24
Joined: Sat Dec 17, 2005 9:34 am
Location: Lubec, ME

search multiple log files

Post by GEI »

in the "text log" test, can one use wild cards (*.*, or *.log) to search all the files in a sub-directory for a text string? We put all of our log files in a sub-directory and only want to know if it finds the words that would indicate that there was an error in a log.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

No, single test will not check multiply files.
Also note: Text Log test checks only NEW records, records added since previous test probe. If you want to scan entire file, use Compare Files test

Regards
Alex
GEI
Posts: 24
Joined: Sat Dec 17, 2005 9:34 am
Location: Lubec, ME

Post by GEI »

Thanks, I am assuming that test also will only do the one file.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Yes, each test checks 1 file
May be you want to check just 1 newest file?

If you want to check entire files (not just new records), you may use Shell Script test method and standard command line utility "find", it supports wildcards and may check many files.

Regards
Alex
Post Reply