Dashboards & Visualizations

Using loadjob in a dashboard returns no results?

zapping575
Path Finder

We are using a clustered SH setup.

I have a dashboard that lists all triggered alerts. When a user clicks on one of the list items, I would like to use the sid as a token to use as argument for loadjob in another dashboard. The query is as simple as:

 

 

| loadjob <long-sid>

 

 

However currently when a row is clicked, the result is always "Search did not return any events. "

I have configurered the tokens correctly and permissions also do not seem to be the issue. If I click the "open in search" button at the bottom of the dash I get the results of "| loadjob <sid>" as expected"

 

Labels (3)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Please share the source of the dashboard originating the drilldown.  We don't need the whole thing - just the one panel with the drilldown should be enough.

---
If this reply helps you, Karma would be appreciated.

zapping575
Path Finder

Of course, sorry I didnt think about that beforehand

 <row>
    <panel>
      <table>
        <title>Latest events</title>
        <search>
          <query>| rest /servicesNS/-/-/alerts/fired_alerts/- 
| search eai:acl.app = myapp severity = 3</query>
          <earliest>$alerts_timepicker.earliest$</earliest>
          <latest>$alerts_timepicker.latest$</latest>
          <refresh>10m</refresh>
          <refreshType>delay</refreshType>
        </search>
        <option name="drilldown">row</option>
        <option name="refresh.display">progressbar</option>
        <drilldown>
          <set token="search_id">$row.sid$</set>
        </drilldown>
      </table>
    </panel>
  </row>
  <row>
    <panel>
      <event>
        <title>Alert Details</title>
        <search>
          <query>| loadjob $search_id$ </query>
          <earliest>$alerts_timepicker.earliest$</earliest>
          <latest>$alerts_timepicker.latest$</latest>
        </search>
        <option name="list.drilldown">none</option>
        <option name="refresh.display">progressbar</option>
      </event>
    </panel>
  </row>

 

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...