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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...