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!

Why You Can't Miss .conf25: Unleashing the Power of Agentic AI with Splunk & Cisco

The Defining Technology Movement of Our Lifetime The advent of agentic AI is arguably the defining technology ...

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...