Splunk Search

Extract IP from TCPDUMP

DTERM
Contributor

How can I extract the source IP from the following log format?

16:13:40.860435 IP 192.54.112.34.domain > 61.220.8.179.61415: 32341- 0/5/6 (207)

All I'm interested in is the 192.54.112.34 IP address?

Thanks....

Tags (1)
0 Karma

Ayn
Legend

Umm, use the Interactive Field Extractor? I would write in more detail on creating your own regex, but seeing as I recall you asking the same kind of question before it seems you would benefit from using the IFX.

0 Karma

DTERM
Contributor

The IFX does not show the 192.54.112.34.domain or the 61.220.8.179.61415: 32341 fields. Why is that?

0 Karma
Get Updates on the Splunk Community!

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...