What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

File Content Sensor - StackOverflow when using regexp

Votes:

0

When using File Content Sensor with regular exception, the sensor results to StackOverflow and PRTGProbe.exe goes down in Services and has to be strated again. An example for the regexp is: ^(?=^.*ERROR)((?!I want to exclude this).)*$

It looks like the problem does not occur with small log files. Only after a specific size. My questions are:

Is the issue known the paessler ? Is there another way to search for a pattern in log-file and exclude some lines with another pattern(s) ?

filecontent regexp stackoverflow

Created on Nov 7, 2017 4:06:34 PM



5 Replies

Votes:

0

What specific size are we talking about here? Do other, more simpler patterns actually work properly at that size?


Kind regards,
Stephan Linke, Tech Support Team

Created on Nov 8, 2017 12:33:15 PM by  Stephan Linke [Paessler Support]



Votes:

0

For example a log file with a size of 186.565 bytes causes the stack overflow.

With the regexp: ^(?=^.*ERROR)*$ the sensor works properly.

Created on Nov 16, 2017 10:14:32 AM



Votes:

0

Works fine for me with a 1MB file containing matching patterns with your original string.
What PRTG version are you actually using?


Kind regards,
Stephan Linke, Tech Support Team

Created on Nov 16, 2017 1:32:59 PM by  Stephan Linke [Paessler Support]



Votes:

0

The version in use is V17.3.33.2573

Created on Nov 16, 2017 3:58:42 PM



Votes:

0

Then it may have to do with the actual content of the file. Could you post that here? I won't publish it.


Kind regards,
Stephan Linke, Tech Support Team

Created on Nov 17, 2017 9:02:27 AM by  Stephan Linke [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.