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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...