Splunk Search

Field extract NOT search.

khyoung7410
Communicator

Hi
My data format is as follows.
A=123456789
Field was extracted for every three digits from field A.
My field extract

A=(?P[0-9]{3})(?P[0-9]{3})(?P[0-9]{3})
New field name is A_1, A_2, A_3

The field is extracted but not searched by A_1=123.
My search Ex
index=main sourcetype=test A_1="123"
search not running.....

0 Karma

renjith_nair
SplunkTrust
SplunkTrust

@khyoung7410 ,

Try named groups

|makeresults|eval A=123456789
|rex field=A "(?<A_1>[0-9]{3})(?<A_2>[0-9]{3})(?<A_3>[0-9]{3})"

This should result three fields A_1,A_2,A_3 and you can search where A_1=123

Happy Splunking!
0 Karma

khyoung7410
Communicator

Hi renjith.nair

But Not searched after registering for field extraction.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud | Customer Survey!

If you use Splunk Observability Cloud, we invite you to share your valuable insights with us through a brief ...

Happy CX Day, Splunk Community!

Happy CX Day, Splunk Community! CX stands for Customer Experience, and today, October 3rd, is CX Day — a ...

.conf23 | Get Your Cybersecurity Defense Analyst Certification in Vegas

We’re excited to announce a new Splunk certification exam being released at .conf23! If you’re going to Las ...