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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...