Hi, I need to monitor a log file for different words. The log file exists on every server in our environment. I have already tried with the file content sensor. It finds the words as I need with the regular expression. However, I can't define that it sets the status to error when a certain word appears. I tried with lookups, but failed there too.

It is a normal .log file. I need to monitor: Scheduled event 'Server name' completed successfully. ANS1512E Scheduled event 'Server name' failed.

If the expression ANS1512E appears, I need an error message.

Does anyone have experience with this?


Article Comments

Hi, I have experienced something similar, where we do a daily check for usernames in the security eventlog. The eventlog sensor has a major impact on the environment, so to avoid that, we ran a powershell script on the local server on a scedule, and that information was picked up by a powershell sensor rasing an alarm if there were specific user names present. How often do you want to do the check and how much text is needed to go through?


Sep, 2023 - Permalink

Hello Tobias,

Thank you for using PRTG.

I will contact you via Email to expound further on what's required to achieve the required result.

Best Regards,

Jeremiah Katatumba - Technical Support


Oct, 2023 - Permalink