Splunk Search

Extracting name out of http_request

vmishra
Engager

Need help extracting "test" out of - http_request="POST /rest/api/test/*"
Thanks,

0 Karma

richgalloway
SplunkTrust
SplunkTrust

'rex field=http_request "POST\s/rest/api/(?<method>.*?)/"'

---
If this reply helps you, Karma would be appreciated.

richgalloway
SplunkTrust
SplunkTrust

Great! Please accept the answer.

---
If this reply helps you, Karma would be appreciated.
0 Karma

vmishra
Engager

thanks it worked

0 Karma
Get Updates on the Splunk Community!

AppDynamics Summer Webinars

This summer, our mighty AppDynamics team is cooking up some delicious content on YouTube Live to satiate your ...

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...