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

How can i search Regular expressions file Content

Votes:

0

Search String is: name=test1 flags=279 (with break)

\b(name=Scalper)\n(flags=279)\b

File Content: <content> name=test1 flags=279 window_num=0 name=test2 flags=279 window_num=0 <inputs>

filesensor prtg regex

Created on Aug 12, 2014 8:24:54 PM



1 Reply

Votes:

0

Dear Mr. Brauckmann

The File Content Sensor (https://www.paessler.com/manuals/prtg/file_content_sensor.htm) allows to use Regex as search. The search method can be configured in the sensor settings, section "Search Method".

Limitations of the Regex methods are:

- The entire regular expression must fit into a single line - If multiple results are found, only the last one will be returned

Created on Aug 13, 2014 12:18:05 PM by  Arne Seifert [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.