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!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...