Deployment Architecture

Deployment Server Whitelist help

splunkIT
Splunk Employee
Splunk Employee

I have n number of hosts with below pattern.

hostname01.corp.domain.com
hostname02.corp.domain.com
hostname03.corp.domain.com
...
hostname100.corp.domain.com
hostname101.corp.domain.com
hostname102.corp.domain.com

What regex to use to whitelist for above hosts so that only hostname01.corp.domain.com to hostname100.corp.domain.com are included, but excluding hostname101.corp.domain.com and others?

Tags (1)
0 Karma

ddrillic
Ultra Champion

I prefer to keep the whitelist in serverclass.conf explicit - helps in forwarder's administration ....

0 Karma

splunkIT
Splunk Employee
Splunk Employee

This should work

hostname([0-9]{2}|100).corp

You can verify it at regex101.com

Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...