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
Legend

@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

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

khyoung7410
Communicator

Hi renjith.nair

But Not searched after registering for field extraction.

0 Karma
Get Updates on the Splunk Community!

Splunk Edge Processor | Popular Use Cases to Get Started with Edge Processor

Splunk Edge Processor offers more efficient, flexible data transformation – helping you reduce noise, control ...

Introducing New Splunkbase Governance!

Splunk apps are essential for maximizing the value of your Splunk Experience. Whether you’re using the default ...

3 Ways to Make OpenTelemetry Even Better

My role as an Observability Specialist at Splunk provides me with the opportunity to work with customers of ...