Splunk Search

Timechart static X axis in Splunk 5

bckq
Path Finder

How to set up X axis with static range in Splunk 5? I have search which check data from -15 minutes till now. In splunk 4.x the result was chart with 1 hour axis even if there was only one result in the middle of time. Now, in Splunk 5, when I got one result there is shown one fat column on the all chart.
This is what I got:
http://i.imgur.com/GI4F8.png

This is how it should look like:
http://i.imgur.com/ZUKSp.png

I have also noticed, that sometimes my chart in Splunk 5 look like what I have expected. Usually it looks bad, sometimes good.

Tags (2)
0 Karma

bwooden
Splunk Employee
Splunk Employee

The x-axis should render its tick marks automatically based on number of bins and time span. When it doesn't yield the results we want, we can force the values we'd prefer to see by adding specific instructions in the simple XML. Here is some XML I recently used to force 15 minutes on x-axis

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

The full documentation is here: http://docs.splunk.com/Documentation/Splunk/latest/Viz/CustomChartingConfig-AxisGrid. The pieces relevant to above falls near the bottom of the page beneath the heading "Time axis label properties"

0 Karma
Get Updates on the Splunk Community!

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!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...