All Apps and Add-ons

Regex Help!

kiran331
Builder

Hi

How to extract the Destination-IP = 11.12.13.14 from the below Raw data

1484665774.320 9 1.2.23.33 TCP_MISS/200 2584 GET http://img-s-msn-com.akamaized.net/tenant/amp/entityid/AAcIgiY.img?h=75&w=100&m=6&q=60&u=t&o=t&l=f&f... "vvfbvfdbf" DIRECT/img-s-msn-com.akamaized.net image/jpeg NONE-NONE-NONE-DefaultGroup - User-Agent = "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko", Destination-IP = 11.12.13.14, Threat-Reason = -

0 Karma
1 Solution

skoelpin
SplunkTrust
SplunkTrust

Here ya go, field is called "IP_Address"

... | rex Destination-IP\s\=\s(?<IP_Address>\d+\.\d+\.\d+\.\d+)

View solution in original post

0 Karma

skoelpin
SplunkTrust
SplunkTrust

Here ya go, field is called "IP_Address"

... | rex Destination-IP\s\=\s(?<IP_Address>\d+\.\d+\.\d+\.\d+)

0 Karma

kiran331
Builder

Thank you !

0 Karma

DalJeanis
Legend

Did the interface omit some characters?

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...