30 Jul 2021 08:59 PM - last edited on 03 Aug 2021 08:56 AM by MaciejNeumann
Hi Folks,
I would need some help in defining a tagging rule that can match the set of hosts and assign tag to them.
The hostnames could be like below,
host1, host2, host3, server1, server2, machine1, machine2
and the expression I tried was
host|server|machine bot it matches only host1 host2 and host3.
Please help me to build RegEx that can match all listed hosts
Regards,
AK
Solved! Go to Solution.
30 Jul 2021 10:55 PM
Hello,
Try placing the regex in parentheses like this: "(?>host|server|machine)"
Also, make sure you are selecting Host Name contains regex.
Please see the screenshots below for how I was able to mimic this functionality. Hope this helps!
-Ryan
31 Jul 2021 04:16 PM
Great it worked Ryan. Thanks for helping me out.