Splunk Search

chart Y axis right and left side

rameshlpatel
Communicator

Hi,

I have two merge line chart in single report, for both I want two Y axis on left as well as in right side with different coordinates.

How its possible by search query?

FYI.
I just created search query and saved that as report.

Tags (2)
0 Karma

afishkin_splunk
Splunk Employee
Splunk Employee

This was implemented in 6.1
Field(s) Name - it should be fields from search result, you can use Viz Editor to bring them to Panel
Field Name - one of above field to make default Axis Y 2 title, you can skip it if you have only one field in above option
true - it is required to have following two options to have second Axis Y presented on Panel "charting.chart.overlayFields" and "charting.axisY2.enabled"
You can have different or the same scale and intervale for both Axis Y

0 Karma

Lucas_K
Motivator

You can have different or the same
scale and intervale for both Axis Y

How do you define using the same scale?

0 Karma

paranjothi
New Member

Different scale

0 Karma

rameshlpatel
Communicator

I tried by adding this but didnt work. please could explain me in details ?

0 Karma

somesoni2
Revered Legend
0 Karma

rameshlpatel
Communicator

Thanks for your Answers. But I am not sure how could I add my search query data in second Y axis in right hand side.

Here is my Search Query.
index="OCSMONITOR" | timechart span=1m count(eval(source="dbmon-tail://ocsrpt_ocsmonitor/obuimport_processed")) as CountProcess, count(eval(source="dbmon-tail://ocsrpt_ocsmonitor/obuimport_new")) as CountNew, avg(PROCESSING_TIME_SEC) as "Avg Processing Time"

Here I want to add "Avg Processing Time " in second Y axis.

Default XML are :



OBU New and PRocessed Events.
OBU New and Processed Events

  <option name="charting.axisTitleX.visibility">visible</option>
  <option name="charting.axisTitleY.visibility">visible</option>


  <option name="charting.axisX.scale">linear</option>
  <option name="charting.axisY.scale">linear</option>


  <option name="charting.chart">line</option>
  <option name="charting.chart.nullValueMode">gaps</option>
  <option name="charting.chart.sliceCollapsingThreshold">0.01</option>
  <option name="charting.chart.stackMode">default</option>
  <option name="charting.chart.style">shiny</option>
  <option name="charting.drilldown">all</option>
  <option name="charting.layout.splitSeries">0</option>
  <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option>
  <option name="charting.legend.placement">right</option>

 </chart>

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...