hi , I need to add sensor to website to check for error code like 500,404,401. or if it is 200 then say OK .How can I achieve it ? I need to do this with IIS logs.Only reading IIS log file and searching for particular string e.g. 500 using File Content sensor will not work as it will show 500 anywhere in logs though its not error code. What is best way to monitor IIS logs for such error codes?
Thank you in advance!
Article Comments
Thank you for your reply. But I don't want to use HTTP sensor for this. I only need to check IIS log files for such error codes. What should I do?
Jan, 2018 - Permalink
The File Content Sensor allows you to check log files for particular words. Please note that the sensor just works for files which do not change their names. If the name changes, you can write your own script, the required syntax is described on the Setup > PRTG API > Custom Sensors page.
Best regards, Felix
Jan, 2018 - Permalink
Hi,
Check this link, this should allow you to distinguish between the status.
Best, Felix
Dec, 2017 - Permalink