Splunk Search

How to search for fields that contain numbers

mlevsh
Builder

Hi,
I need to run a search the would select only those events where field Id contains numbers
For example: it can be "bs332cs5-bs3 ", "cd3g54cdd" versus "planner" or "sync"

Tags (1)
0 Karma

woodcock
Esteemed Legend

Like this:

your base search | regex Id="\d"

somesoni2
Revered Legend

Try like this

your base search | regex Id=".*\d+.*"

Alternatively

your base search | where match(Id,"\d")

mlevsh
Builder

@somesoni2 , thank you!

0 Karma
Get Updates on the Splunk Community!

Index This | When is October more than just the tenth month?

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

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...