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!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

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

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...