Forum Discussion

Kirk_Jantzer's avatar
11 years ago

Ability to use wildcards for groups in 'applies to' in datasource settings

Currently, when editing a datasource, you can only choose exact groups, however you can use wildcards for system names.

So, the following is possible: system.displayname =~ \'\'-WWW\'\' or system.displayname =~ \'\'-MT\'\'

But the following is not: contains(system.groups,\'\'WWW\'\') or contains(system.groups,\'\'MT\'\')

I would like the ability to do some sort of wildcard when choosing groups.

  • You can do this now, but you have to flatten the array of groups before you can apply a regular expression to it, as perrnhttp://help.logicmonitor.com/using/datasource/logicmonitor-scripting-language-lms/rne.g. rnjoin(system.groups,,) =~ WWW