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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...