|
View previous topic :: View next topic |
Author |
Message |
GEI
Joined: 17 Dec 2005 Posts: 24 Location: Lubec, ME
|
Posted: Thu Apr 12, 2018 8:45 am Post subject: search multiple log files |
|
|
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. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12805 Location: USA
|
Posted: Thu Apr 12, 2018 9:04 am Post subject: |
|
|
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 |
|
Back to top |
|
|
GEI
Joined: 17 Dec 2005 Posts: 24 Location: Lubec, ME
|
Posted: Thu Apr 12, 2018 9:20 am Post subject: |
|
|
Thanks, I am assuming that test also will only do the one file. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12805 Location: USA
|
Posted: Thu Apr 12, 2018 10:08 am Post subject: |
|
|
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 |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|