Splunk Search

DateStamp removal from a specified path ?

bapun18
Communicator

Hi,
I want to remove the date convention from a specified path ,can anyone help me with the rex command use for it ?

Sharing the template for reference

/services/chatbot/in/ulff_microservices_chatbot_de_ms/2019/09//18

Tags (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Try this: | rex field=template mode=sed "s'(.*?)\/20'\1'g"

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...