Getting Data In

Splunk Deployment Server Whitelist- How to write a regex that matches only for the first instance?

qcjacobo2577
Path Finder

Community,

 

Looking for some assistance on "serverclass.conf" file and the ability to utilize a whitelist regex pattern matching such that we can target specific devices in our network.

We are seeking to include only devices with this naming schema: T-<some string>

Separately, we want to match on only devices with another naming schema: L-<some string>

We are pushing different configurations to each of those devices (hence the need for separation).

What we started with in each case is using a whitelist of:

L-*

AND

T-*

This all works fine....until....we found that we have devices in our environment with the naming schema of: T-<some string>L-<some string>

We attempted to leverage some regex matching, but believe our syntax to be wrong as the respective app and its configuration are no longer being deployed to the system(s) to be managed.

Looking for some assistance on how to properly write regex matching for devices where is only matches on the first instance of a single letter followed by a dash as this does not seem to be well documented.

Thank you in advance.

 

Labels (2)
Tags (1)
0 Karma
1 Solution

qcjacobo2577
Path Finder

Figured it out...acceptable format is as follows:

  • \bT-*
  • \bL-*

View solution in original post

0 Karma

qcjacobo2577
Path Finder

Figured it out...acceptable format is as follows:

  • \bT-*
  • \bL-*
0 Karma
Get Updates on the Splunk Community!

AppDynamics Summer Webinars

This summer, our mighty AppDynamics team is cooking up some delicious content on YouTube Live to satiate your ...

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...