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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...