Splunk Search

Is there a way to set the label on the y axis of a chart in simple xml?

travis_bear
Explorer

I have the following chart defined in a view:

<chart>
  <searchString>
     index=summary
     report=hw_use_by_jobs 
     orig_host=$host$ |
     chart 
        p50(CPU) as "% CPU use", 
        p50(disk_saturation) as "% disk IO saturation",
        count as DataPoints
        over concurrent_tasks |
     eventstats sum(DataPoints) as Total_DataPoints  |
     fields "concurrent_tasks" "% CPU use" "% disk IO saturation"
  </searchString>
  <title>CPU and Disk Use by Concurrent Task, last 30 days</title>
  <earliestTime>-30d</earliestTime>
  <latestTime>now</latestTime>
  <option name="drilldown">row</option>
  <option name="showPager">true</option>
  <option name="count">15</option>
  <option name="displayRowNumbers">false</option>
  <option name="charting.axisY.maximumNumber">100</option>
</chart>      

How can I set a custom label for the Y axis? I'd prefer to do it the simple XML, but if that's impossible then any working approach would be ok.

Tags (2)
0 Karma
1 Solution

afishkin_splunk
Splunk Employee
Splunk Employee

Please try Y axis text
By the way following options do not belong to chart, they are ignored for chart, they belong to table
row
true
15
false

View solution in original post

afishkin_splunk
Splunk Employee
Splunk Employee

Please try Y axis text
By the way following options do not belong to chart, they are ignored for chart, they belong to table
row
true
15
false

travis_bear
Explorer

Thank you that was informative

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...