Filter out URL in the message

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
lukedevon
Posts: 143
Joined: Sat Mar 24, 2018 9:15 am

Filter out URL in the message

Post by lukedevon »

Hi

I want to filter out the URL in the message. URL not consistently having one domain extension. Some times I can .com and then again I can see .me, .org .....so on.

In the message body, I can see some kind of error message and a particular URL. Can you please help me to filter the URL and the error using NLS dashboard?

Thank you
Luke
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Filter out URL in the message

Post by cdienger »

https://assets.nagios.com/downloads/nag ... ilters.pdf covers how to create custom filters.

A filter like:

Code: Select all

(?<URL>http.?://.*)
will find http or https and put the url into a filed called URL.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked