Security

Easy question.. how do I get just the HTTP response from this log?

tengugurl1
Engager

Hi! 

The log in question reads as:
HTTP/1.1" 200 365 3

in our splunk, we don't have a "HTTP status" field to pivot off of..
So I see that the HTTP response always shows as it does above,
So I'd need a regex that gives me something like:

| rex field=HTTP response  "

 

HTTP/1.1" *** 

0 Karma

nmohammed
Builder
 rex "HTTP\/1\.1\"\s*(?<http_response>\d{3})"

try above

0 Karma
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...