New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


File Content Sensor - StackOverflow when using regexp

Votes:

0

Your Vote:

Up

Down

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 by  jyrkimar (0) 1



5 Replies

Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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 by  jyrkimar (0) 1



Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

The version in use is V17.3.33.2573

Created on Nov 16, 2017 3:58:42 PM by  jyrkimar (0) 1



Votes:

0

Your Vote:

Up

Down

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]



Please log in or register to enter your reply.


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.