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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...