Dashboards & Visualizations

Change y axis scale to logarithmic scale

axsolis
Path Finder

I know it is possible to change the scale of the y axis to log scale but I am not having any luck finding the answer. Can someone point me in the right direction or give me the XML option code that will do this for my line chart?

Thanks!

Tags (1)
1 Solution

vbumgarner
Contributor
    <option name="charting.axisY.scale">log</option>

Appears to be answer.

View solution in original post

cfoleydivert
Explorer

A simple and direct answer for this is to use "Format Visualization". I found this in the Search Tutorial manual (after looking in several other manuals, experimenting unsuccessfully in my case using the log() function with the timechart command; also found only way in Splunk Light Cloud to edit the formatting xml to be in the Dashboard feature, not right in Visualization).

Working in Splunk Light Cloud, display results with Visualization tab; in the upper left there are three links - click the Format one:
alt text
In that dialog, pick the Y-Axis button on the left and change the Scale from Linear to Log:
alt text

0 Karma

vbumgarner
Contributor
    <option name="charting.axisY.scale">log</option>

Appears to be answer.

rogerdpack
Path Finder

Another option that doesn't require manual editing of the panel is computing the log, like: ... | eval a=log(validated_count) | timechart sum(a)

0 Karma

Simeon
Splunk Employee
Splunk Employee

Maybe you are looking for this flag:

Log span syntax

<log-span>
Syntax: [<num>]log[<num>]
Description: Sets to log-based span. The first number is a
coefficient. The second number is the
base. If the first number is supplied,
it must be a real number >= 1.0 and <
base. Base, if supplied, must be real
number > 1.0 (strictly greater than1).

http://www.splunk.com/base/Documentation/latest/SearchReference/Timechart1).

0 Karma

axsolis
Path Finder

Thank you for the response.

I saw this but I dont know how to use this option. Could you please give an example where this is used to convert the Y axis of a timechart into logarithmic scale?

Any help is greatly appreciated.

0 Karma

jpanderson
Path Finder

It is an option for the timechart search command:

http://docs.splunk.com/Documentation/Splunk/6.1/SearchReference/timechart

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...