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!

Splunk Community Platform Survey

Hey Splunk Community, Starting today, the community platform may prompt you to participate in a survey. The ...

Observability Highlights | November 2022 Newsletter

 November 2022Observability CloudEnd Of Support Extension for SignalFx Smart AgentSplunk is extending the End ...

Avoid Certificate Expiry Issues in Splunk Enterprise with Certificate Assist

This blog post is part 2 of 4 of a series on Splunk Assist. Click the links below to see the other ...