How can I recursively parse subdirectories in a log file location?

Avatar
  • updated
  • Answered
I have a directory structure like this, and I want to tell WebLog Expert to recurisvely parse (and analyze) all log files (*.log) in any subdirectory it finds.

D:\mydir\subdir01\Mysite.Web_IN_0\abc123.log
D:\mydir\subdir02\Mysite.Web_IN_0\abc123.log
D:\mydir\subdir02\Mysite.Web_IN_1\abc124.log
D:\mydir\subdir02\Mysite.Web_IN_1\abc125.log
D:\mydir\subdir03\Mysite.Web_IN_5\xyz123.log

There are thousands of log files stored in a directory structure like this, and currently I have to manually copy (and rename) them such that they're "flattened" into a single directory so that WebLog Expert can find them.

Thanks for your help.
-Ben
Avatar
Michael
You need to add the @ character before the log path to analyze log files in all subdirectories:

@D:\mydir\*.log
Avatar
ben frame
Thank you for this, it really saved me a ton of time. Worked like a charm.