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!

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...

Splunk Observability for AI

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