Solved

Dynamic groups formatting question

  • 15 September 2023
  • 2 replies
  • 39 views

Userlevel 3
Badge

Hi all, I’m new to the product and trying to figure out the basics of how it wants things formatted. I’m trying to setup a simple Dynamic group with 2 variables and can’t figure out how it wants it formatted to combine them. 

I just want the custom query to contain the following.
system.displayname=~"test"
device_type=~"server"

icon

Best answer by Mike Moniz 15 September 2023, 17:09

View original

2 replies

Userlevel 6
Badge +11

You can combine conditions with either “&&” (and) or “||” (or). For your example you can use:

system.displayname=~"test" && device_type=~"server"

These are called “AppliesTo” and you can read up all the details about it at https://www.logicmonitor.com/support/terminology-syntax/scripting-support/what-is-lms

 

Also keep mind that inherited properties (like those applied to groups/folders) will not work in dynamic grouping. This is to prevent loops.

 

Userlevel 3
Badge

Thanks Mike, that's perfect. My old SQL brain wanted it to be AND in-between the statements ;). Also duh, wow right there in the section I glossed over. 

Reply