Page 1 of 1

Filter out URL in the message

Posted: Tue Oct 08, 2019 4:43 am
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

Re: Filter out URL in the message

Posted: Tue Oct 08, 2019 3:01 pm
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.