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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...