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!

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 ...