Dashboards & Visualizations

How to validate values in a drilldown page and execute a search based on the value received from the master dashboard?

saransakthi83
New Member

I have passed few values to drilldown page. I have executed more than one query in drilldown page. For that, I have validate values which I received from master dashboard, in drilled down page. Please let me know how validate the values?

0 Karma

aaraneta_splunk
Splunk Employee
Splunk Employee

@saransakthi83 - Did the answer provided by zshainsky help provide a working solution to your question? If yes, please don't forget to resolve this post by clicking "Accept". If no, please leave a comment with more feedback. Thanks!

0 Karma

zshainsky
Splunk Employee
Splunk Employee

It looks like you could use JS to do your drilldown validation before sending the values to the next dashboard http://dev.splunk.com/view/SP-CAAAEME.

If we use an example from the above link, we could do something like this:

mytable=new TableView({
     id: "example-table",
     managerid: "subsearch2",
     pageSize: 3,
    wrap: true,
    drilldown: "cell",
    el: $("#mytable")
}).render();

// DO ALL VALIDATION HERE
// e.data is going to be the value that is selected by the user
mytable.on("click", function(e) {
      // Bypass the default behavior
      e.preventDefault();

     // Displays a data object in the console
     console.log("Clicked the table:", e.data);

    // Implement validation logic here...

});
0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...