Splunk Search

Time Format change for timechart

hartfoml
Motivator

I am using timechart to build a graph for the last 7 days. the chart by default uses _time as the format for the Graph. I would like the output to only show timeformat="%A" Day of the week format

Can you help? I have this code

| timechart span=1d sum(mb) by limit=10 hostname usenull=f useother=f 
Tags (2)
0 Karma
1 Solution

yannK
Splunk Employee
Splunk Employee

convert _time to day after the timechart, but keep the sort by _time, then remove the column.


* | timechart span=1d count by source | convert timeformat="%d" ctime(_time) AS day | sort _time | fields - _time | table day *

View solution in original post

yannK
Splunk Employee
Splunk Employee

convert _time to day after the timechart, but keep the sort by _time, then remove the column.


* | timechart span=1d count by source | convert timeformat="%d" ctime(_time) AS day | sort _time | fields - _time | table day *

Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...