Splunk Search

Help with Regex

kiran331
Builder

Hi

How can I extract the "TCP_MISS/200" and "TCP_MISS_SSL/200" or similar from the event below?

1466609862.644 109 1.2.3.55 TCP_MISS/200 387 POST http://sdsd.com/put "user@dd.com" ...........

1466609862.632 17096 2.3.4.167 TCP_MISS_SSL/200 1036 GET https://..................

Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Try

... | rex "(?<field>TCP[^\s]+)" | ...
---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Try

... | rex "(?<field>TCP[^\s]+)" | ...
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...