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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...