Splunk Search

Can I rename the Week value from strftime(_time," %W")?

xvxt006
Contributor

Hi,

I am charting counts by Week. I would like to have Wk-1 or something like that instead of a number like 34 which is the 34th week from the beginning of this year. i have tried rename option but that did not work. Any suggestions?

eval Date=strftime(_time," %W")

Tags (2)
1 Solution

pradeepkumarg
Influencer
..| eval Date="Wk-".strftime(_time," %W")

View solution in original post

pradeepkumarg
Influencer
..| eval Date="Wk-".strftime(_time," %W")

pradeepkumarg
Influencer

You are welcome 🙂

0 Karma

xvxt006
Contributor

Awesome. Thanks Pradeep

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 ...