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!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...