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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...