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!

How to send events & findings from AWS to Splunk using Amazon EventBridge

Amazon EventBridge is a serverless service that uses events to connect application components together, making ...

Exciting News: The AppDynamics Community Joins Splunk!

Hello Splunkers,   I’d like to introduce myself—I’m Ryan, the former AppDynamics Community Manager, and I’m ...

The All New Performance Insights for Splunk

Splunk gives you amazing tools to analyze system data and make business-critical decisions, react to issues, ...