Using Importlogs.py on Windows to import multiple log files


(Lionel van Leeuwaarde) #1

I am able to succesfully import logfiles using the python script on Windows server.
However when I try to import Multiple logfiles in a folder this Always fails(using wildcards)
If I use the exact filename in that location, the import works fine and if i specify multiple filenames it also works fine. It doesnt seem to accept wildcards??

I am using wildcards,but I get the error:

=====> Warning: File C:\temp\*.log does not exist <=====
 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
Logs import summary

=====> Warning: File *.log does not exist <=====
 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
Logs import summary

(Fabian Dellwing) #2

It does not support wildcards on Linux either, but Linux has a thing named globbing or filename expansion (Globbing). The script itself always sees one or more files and no wildcards.

Maybe there exists a similar thing for windows, but I don’t know.

tl;tr The script always gets one or more real file(s) and not wildcards.