I would like to use the built in check for monitoring log files (log[file<,regexp>])
There are two conventions for our logs:
1.) C:\logs\<YYYY-MM-DD>\someprocess\someprocess.log
2.) C:\logs\<YYYY-MM-DD>\someprocess\someprocessHHMMSS.log (where the process appends the time it starts to the end of the file
name)
Is it possible to use the built in log monitoring function to monitor these logs? Is there a macro that can be used to get the date in that format for the first convention?
Is it possible to create a UserParameter that passes the log path to the key? This is probably a stretch...
-example:
- 1) Create a user parameter - UserParameter=GetLogFile[],cscript getLogFile.vbs
- 2) Create an item with key = log[GetLogFile[],Fail]
Any ideas or suggestions would be appreciated.
Thanks
There are two conventions for our logs:
1.) C:\logs\<YYYY-MM-DD>\someprocess\someprocess.log
2.) C:\logs\<YYYY-MM-DD>\someprocess\someprocessHHMMSS.log (where the process appends the time it starts to the end of the file
name)
Is it possible to use the built in log monitoring function to monitor these logs? Is there a macro that can be used to get the date in that format for the first convention?
Is it possible to create a UserParameter that passes the log path to the key? This is probably a stretch...
-example:
- 1) Create a user parameter - UserParameter=GetLogFile[],cscript getLogFile.vbs
- 2) Create an item with key = log[GetLogFile[],Fail]
Any ideas or suggestions would be appreciated.
Thanks
Comment