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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...