Splunk Search

How to modify the timechart x-axis label

hjwang
Contributor

Dear all

I found that if I use "mysearch | timchart span=1d count by host(timerange is one month)", the x-axis representing time interval will not display all time label (here, one day) but only show every 7 day interval, for example, Friday July 1 2011, Friday July 8 2011, Friday July 15 2011...etc. How to tell splunk to show all span datetime like Friday July 1 2011, Saturday July 2 2011, Sunday July 3 2011..etc. As searching for similar question, it seems others have the same thing.

Thanks in advance

Tags (3)
0 Karma

RicoSuave
Builder

Try using the eval command with the strftime argument. Try this search

mysearch | eval Time = strftime(_time, "%H:%M") | chart span=1d host over Time

0 Karma
Get Updates on the Splunk Community!

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

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...