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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...