Splunk Search

Can someone please see my example and help me to combine the two panels using layoutpanel?

dlespron
Path Finder

Here is my current code below -

<dashboard>
  <label>Dashboard Title</label>
  <description/>
  <row>
    <panel>
      <chart>
        <title>Title1</title>
        <searchString>Search1</searchString>
        <earliestTime>@d</earliestTime>
        <latestTime>now</latestTime>
          <fields>["host","source","sourcetype"]</fields>
      </chart>
    </panel>
    <panel>
      <single>
        <title>Title2</title>
        <searchString>Search2</searchString>
        <earliestTime>@d</earliestTime>
        <latestTime>now</latestTime>
        <option name="drilldown">none</option>
        <option name="afterLabel">MINUTES</option>
        <option name="linkView">search</option>
        <option name="refresh.auto.interval">64</option>
      </single>
    </panel>
</row>
</dashboard>
0 Karma

ngatchasandra
Builder

Hi dlespron,

If i understand your problem well,there is a concept of Row Grouping in simplexml. Here is an example of a row with one panel which has two visualizations in it.

 <dashboard>
   <row grouping="2">
     <chart>
       ...
     </chart>
     <single>
       ...
     </single>
   </row>
 </dashboard>

Just apply to your dashboard view.

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...