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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...