I was wondering if any kind soul could point me in the right direction with this.
I recently put together a jazzy looking dashboard using the Status Indicator Visualization, unfortunately though, it has no built-in drill down capabilities. So the hack others on this forum use is open a pop-up when the panel is clicked using JS. I've got this bit working, for the life of me, I can't figure out how to get the filter values/tokens from the current dashboard to pass onto the pop-up URL.
I've hacked together the following script using examples on the forum and the Splunk dev docs:
// Components to require
var components = [
// Require the components
// Get the default model
var defaultTokenModel = splunkjs.mvc.Components.getInstance("default");
// Get some token from there
var time_token = defaultTokenModel.get("time_field");
// Other method from doc
//var tokens = mvc.Components.get("default");
//var time_token = tokens.get("time_field");
'drilldown_report?earliest=' + time_token.earliest,
'_blank' // <- This is what makes it open in a new window.
I tried 2 methods of getting the Time token, using "Components.getInstance()" and "Components.get()", in addition tried looking for the token name of "time_field" and "form.time_field", the actual parent-dashboard URL is: