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!

Stay Connected: Your Guide to July and August Tech Talks, Office Hours, and Webinars!

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...

Edge Processor Scaling, Energy & Manufacturing Use Cases, and More New Articles on ...

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

Get More Out of Your Security Practice With a SIEM

Get More Out of Your Security Practice With a SIEMWednesday, July 31, 2024  |  11AM PT / 2PM ETREGISTER ...