Cannot filter field from character

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
jvaira
Posts: 59
Joined: Tue Dec 22, 2015 7:40 pm

Cannot filter field from character

Post by jvaira »

Hello,
I am trying to use a filter to filter out any results where the objectname field contains the character ~ This character could be anywhere in the field so I'm assuming I need to use wildcard characters but have tried combinations of *~* "*~*" etc with no luck. Please see attachment for example.
You do not have the required permissions to view the files attached to this post.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Cannot filter field from character

Post by mbellerue »

You have the right of it. If you do not want to see any logs that contain a ~, then you would use a mustNot filter with *~*. It looks like you're getting no results at this point. Can you give me a screenshot of what it looks like without that one mustNot filter applied?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
jvaira
Posts: 59
Joined: Tue Dec 22, 2015 7:40 pm

Re: Cannot filter field from character

Post by jvaira »

Hello,
If I remove that filter I get about 17k results and a lot of them do not contain the ~ character. For example one of them has D:\Clients\5439124\Abacus\v23\ads040.net listed in the objectname field.
You do not have the required permissions to view the files attached to this post.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Cannot filter field from character

Post by mbellerue »

I've tried this a number of different ways, and I'm not getting the results I want. Upon doing a little digging, it looks like ~ is a Lucene query operator, so I don't think we're going to be able to filter on it the way we'd like to.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked