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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...