Splunk Search

Regex for fetching number

priya0709
Path Finder

how to use regex yo fetch Incident (eg: INC0000453245 or INC0000342568)

to fetch INC and exactly 10 numbers after INC??

 

0 Karma

thambisetty
SplunkTrust
SplunkTrust

Regular expressions in Splunk 

| rex “(?<number>INC\d{10})”

you might need to replace double quotes from your keyboard.

 

 

————————————
If this helps, give a like below.
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 ...