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!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...