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!

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...