Knowledge Management

Extract field from a field up to a certain point and then tabulate

joshsplunkuser
New Member

Hi,

PACKET 000000000D9982E0 UDP Rcv 10.164.45.152 ef37 Q [0001 D NOERROR] A (12)orzdwjtvmein(2)in(0)

This is my field,

I want to tabulate to create a table from this. output should be something like:

from to
10.164.45.152 (12)orzdwjtvmein(2)in(0)

Thanks.

Tags (1)
0 Karma

vnravikumar
Champion

Hi

Give a try

| makeresults |eval msg="PACKET 000000000D9982E0 UDP Rcv 10.164.45.152 ef37 Q [0001 D NOERROR] A (12)orzdwjtvmein(2)in(0)" 
| rex field=msg "(?P<temp1>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})" 
| rex field=msg "(?P<temp2>[(].+)" 
| eval result = temp1." ".temp2 |table result
0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...