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 Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...