Splunk Search

How to create multiple value in single panel?

jaibalaraman
Path Finder

Hi Team 

How to create multiple value in single panel dashboard. 

 

jaibalaraman_0-1656457099973.png

 

Tags (1)
0 Karma

jaibalaraman
Path Finder

Hi 

Sorry i am bit confused , I have 4 different search string which i would like to bring together in single panel. How can i do in trellis. 

Could you please advice on this . 

0 Karma

bowesmana
SplunkTrust
SplunkTrust

Don't be confused, just use the first row example where each element uses a separate <single> configuration inside the one panel.

You could theoretically do it in trellis by combining all the searches, but there would be little point.

0 Karma

bowesmana
SplunkTrust
SplunkTrust

Two ways - either as distinct single value elements in a single panel or as a trellis view of multiple results for a single element in a single panel.

See example dashboard - first row has 4 <single> elements in a single panel and second has a trellis view of 4 values

<dashboard>
  <label>tst1</label>
  <row>
    <panel>
      <single>
        <search>
          <query>| makeresults
| eval value=100</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="drilldown">none</option>
      </single>
      <single>
        <search>
          <query>| makeresults
| eval value=200</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="drilldown">none</option>
      </single>
      <single>
        <search>
          <query>| makeresults
| eval value=300</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="drilldown">none</option>
      </single>
      <single>
        <search>
          <query>| makeresults
| eval value=400</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="drilldown">none</option>
      </single>
    </panel>
  </row>
  <row>
    <panel>
      <single>
        <search>
          <query>| makeresults
| eval value1=random() % 100
| eval value2=random() % 100
| eval value3=random() % 100
| eval value4=random() % 100</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="drilldown">none</option>
        <option name="rangeColors">["0x53a051","0x0877a6","0xf8be34","0xf1813f","0xdc4e41"]</option>
        <option name="refresh.display">progressbar</option>
        <option name="trellis.enabled">1</option>
      </single>
    </panel>
  </row>
</dashboard>
0 Karma
Get Updates on the Splunk Community!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

 Ready to master Kubernetes and cloud monitoring like the pros? Join Splunk’s Growth Engineering team for an ...

Update Your SOAR Apps for Python 3.13: What Community Developers Need to Know

To Community SOAR App Developers - we're reaching out with an important update regarding Python 3.9's ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...