glob expression excluding resources not working
The example:
- Include all servers under the group Production and child groups under production, except any servers under Production/Network/Servers:
Production/!(Network/Servers)
from: https://www.logicmonitor.com/support/terminology-syntax/glob-expressions
does not work.
If I do something like !(Vmware)in pretty much any field doesn’t seem to work, whatever I’m trying to filter (in the Alerts pane in this eg) anything with VMware still turns up, in my case I’m trying to filter the Resource Groups heading. If I type (Vmware) in the Resource Group filter only Vmware alerts are returned .
Any idea why this glob expression doesn’t seem to work???
Laurie Street
Posted 3 years ago·Last reply 3 years ago
7 comments
Cole McDonald
·3 years agoI’ve noticed that logical NOT works as a second element to an AND or OR, but not as an initial element… the double parens is a fun solution.
… I should add, in some places. It’s inconsistent between filter/search objects around the product. In the pulldown filters, it has worked as a standalone for me as a glob. Now I have to go test a bunch and see what works/doesn’t in the new UI
Cole McDonald
·3 years agoI’ve noticed that logical NOT works as a second element to an AND or OR, but not as an initial element… the double parens is a fun solution.
Laurie Street
OP3 years agoScratch that, the filter seems to work in the filter ‘Resource Group (with Subgroups)’ but doesn’t work in the filter ‘Resource Group’, which is also the only filter I can use in an Alert.
It seems that once you add an exclamation mark the filter goes completely empty. If I wrap a word in asterisks the drop down returns just words that match what’s wrapped. but if I type an exclamation mark at the start it doesn’t invert the filter and remove those entries, it just goes blank.
I think there is a bug in the glob expression
Back to the drawing board :(
LM User
·3 years agoRequest a feature that the alerts page have a query language like the logs page. That would solve lots of odd things like this.
Laurie Street
OP3 years agoThis seems to work. Weird that the double parenthesis’ isn’t mentioned on the page I linked. Appreciate the help!
LM User
·3 years agoReason is that
!(Vmware)looks for anything that’s exactlyVmware, no more no less.Also, Java (which this is all based on) loves parenthesis around everything.
LM User
·3 years agoHave you tried
(!(Vmware*))?