Splunk Search

regex question...

a212830
Champion

Hi,

I have an inputs.conf that has the following whitelist:

whitelist = (?i)vpxd-\d{5}\.log

The 5 was originally a 4, which relates to a pid number attached to the log. I found out the hard way, that the pid switched from 4 digits to 5 digits. My question is, how can I setup a regex that will handle any number of digits?

Tags (1)
0 Karma

_d_
Splunk Employee
Splunk Employee

Use the + quantifier:

(?i)vpxd-\d+.log

Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...