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!

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 ...