I have set up a PRTG sensor, to find a specific phrase within an application logfile. The sensor works fine, I've caused the application to write the phrase & the sensor fired with a message saying XXX was found on line 465.
The problem is that the application rotates the logfiles, so the file periodically gets its contents blanked & starts writing again from the start. Would the PRTG sensor cope with this ? i.e. if the phrase went in at line 465, the logfile was then rewritten & the application logged the same phrase at line 200. Would PRTG wait until the line number went beyond 465, or would it realise that the entry at line 200 was caused by the file rewritting ?
Thank you.
Add comment