Terminology & Syntax

Using Glob throughout your account

Many fields throughout your account support glob expressions.  Fields that support glob expressions are usually marked with an asterisk:

You can also use glob to construct filters in LogicModules, on the Alerts Page, in Reports and more.

Notes:

  • Glob is always case insensitive
  • Device and group names containing parentheses ( ) or pipe characters | may break complex glob expressions. You can escape these characters using the \ character, like this: 'Devices\(Production\)'

 

Glob Syntax

This table below illustrates how to format glob expressions.  You can combine these to create more complex expressions:

Character

Description

Examples

!(a|b|c) Specifies a negative pattern match !(a) would match all entities without the string 'a' in the name. !(a|b|c) would match all entities without a, b or c in the name.
(a|b|c) Matches one or more occurences of the given patterns (a|b|c) would match all entities with a, b or c in the name.
? Matches any one character prod? would match prod1, prod2, prod3, prodA, prodB, etc.
* Matches any number of characters * would match everything, *.java would match server.java and server2.java.
[abc] Matches any character in the set a, b, or c *.[ch] would match abc.c and abc.h
[^abc] Matches any character not in the set a, b, or c prod[^abc] would match prodD, prodE, and prodF
[a-z] Matches any character in the range a to z, inclusive prod[x-z] matches prodX, prodY and prodZ
\w Matches any alphanumeric character or underscore
\s Matches a space or tab
\d Matches a decimal digit

 

Examples

  1. Include all servers 1 through 10 except servers 2 and 4: (server1|server3|server5|server6|server7|server8|server9|server10) OR server!(2|4)
  2. Include all servers under the group Production and child groups under Production, except any servers under group Production/Servers: Production/!(Servers)
  3. Include all groups except those that start with a - and group Servers: !(-*|Servers)
  4. Include all devices that start with prod that do not match prod-01-LA: prod!(-01-LA*)
  5. Include all devices that start with prod that do not contain '29': prod!(*29*)
  6. Include all top level groups: !(*/*)
  7. Include all groups under the group Production, but exclude subgroups for groups under the group Production: Production/!(*/*)
  8. Include all servers under the group Production and child groups under production, except any servers under Production/Network/Servers: Production/!(Network/Servers)

 

Specifying groups with glob expressions

Device groups can be specified using glob expressions (e.g. in an alert rule) as follows:

Entry

Description

Will match devices in:

Will not match devices in:

group/subgroup1* Matches devices at any level within group/subgroup1 and any child subgroups.

group/subgroup1

group/subgroup1/group2

group/subgroup1/group2/group3

group2/anygroup
group/subgroup1 Matches devices within group/subgroup1 only; does not match devices within any child subgroups group/subgroup1

group/subgroup1/group2

group/subgroup1/group2/group3

group/subgroup1/* Matches only devices within child subgroups; does not match devices within group/subgroup1

group/subgroup1/group2

group/subgroup1/group2/group3

group/subgroup1
group1/!subgroup2 Matches devices within any subgroup in group1 except subgroup2

group1/subgroup4

group1/subgroup1

group1/subgroup3

group1/subgroup2
*group1* Matches devices within any group with group1 in its name (and any child subgroups)

group1/subgroup3

group/subgroup1/group2

group/subgroup2/anothersubgroup100

group/subgroup2
*/group1* Matches devices within any group whose name starts with /group1, i.e. is a subgroup in a higher group. Does not match a top-level group named group1

group/group1

group/group1/group2

group/subgroup2/group100

group1/subgroup3

group/subgroup1