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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...