Hello,

I would like to use PRTG to check if there are certain entries in a log file (.log) within a fixed time period.

The log look like this:

11.01.2022;13:21:43;P8GR;12345678;VALUE 2;SDS;LIP;
11.01.2022;13:25:30;P8GR;12345678;VALUE 2;SDS;LIP;
11.01.2022;13:27:32;P8GR;12345678;VALUE 1;SDS;LIP;
11.01.2022;13:29:42;P8GR;12345678;VALUE 2;SDS;LIP;
11.01.2022;13:30:13;P8GR;12345678;VALUE 2;SDS;LIP;
11.01.2022;13:31:10;P8GR;12345678;VALUE 1;SDS;LIP;
11.01.2022;13:31:43;P8GR;12345678;VALUE 2;SDS;LIP;

I want to check if a log entry with the "Value 1" was written within one hour. If not, PRTG should report an error.

Does anyone have an idea how I can realize this?

Thanks a lot Best regards Dennis


Article Comments

Hi Dennis,

The File Content Sensor is able to search after a specific string in a file. Maybe also this KB article fits your needs.


Kind regards

Felix Wiesneth - Team Tech Support


Jan, 2022 - Permalink