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
SplunkTrust
SplunkTrust

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 | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...