Splunk Search

How to Extract multiple 10-digit numbers from field2

Gzee
Engager

Hi, Novice splunker here. My search only extracts 1st 10-digit number and my data contains atleast 4 or more  10-digit numbers. Need help on how to make a list of numbers from following example text.

 example data in field2:

1111111111,Standard,R9801,
2222222222,Standard,S9801,
3333333333,Standard,T9801,
4444444444,Standard,U9801,
5555555555,Standard,V9801,

For order and enquiries contact 111xxxxxx and mention the 15 digit ID "ACOOLXXXXXX"

 



|rex field=Data "(?<Numbers>\d{10,})"
|table Numbers
Output of above is only 1st number in the field Numbers>> 1111111111
Thanks.

 

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
|rex field=Data max_match=0 "(?<Numbers>\d{10,})"

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
|rex field=Data max_match=0 "(?<Numbers>\d{10,})"
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 ...