Splunk Search

timechart X axis

0range
Communicator

How can I get more then 4 marks on x axis using timechart?
In a search like this:

earliest=-1d@d latest=-0d@d sourcetype=src1 | timechart span=5m count by operation

I get the default each 6hours or each 4hours marks on X axis, and don't know how to tune it. I need each hour, or 30m marks.

0 Karma
1 Solution

jtworzydlo
Path Finder

Hi,
If your having it displayed on a dashboard you should use this:

 <option name="charting.scaleX">1</option>
 <option name="charting.axisLabelsX.majorUnit"> P0Y0M0DT0H30M0S</option>

Hope this helps 🙂

View solution in original post

hvaithia
Path Finder

This one doesn't work anymore for dashboards. (Using splunk 6.2)

jtworzydlo
Path Finder

Hi,
If your having it displayed on a dashboard you should use this:

 <option name="charting.scaleX">1</option>
 <option name="charting.axisLabelsX.majorUnit"> P0Y0M0DT0H30M0S</option>

Hope this helps 🙂

immortalraghava
Path Finder

Use this ? Come on .. I am new to splunk .. Where to use it ? How ?

chrisdopuch
Path Finder

Is this answer still accurate? I can't get this to work with my timechart and dashboard.

jtworzydlo
Path Finder
0 Karma

0range
Communicator

That's it. Thanks.
But where did you get this information?

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...