Dashboards & Visualizations

Prepopulate the Splunk Dashboard text input field with the values from event?

bhuvanabala
New Member

Hi Team,

I have a field called errorid in my log, where errorid=x1234 and i have a solution field and its value is a link. On linking the link the user is navigated to Splunk dashboard. The dashboard contains a input text box

Please let me know how to prepopulate errorid text box with the value(x1234) from the event?

Please help us

Tags (1)
0 Karma

tiagofbmm
Influencer

Hey

You can use JS to pass tokens (form ones) specified in one dashboard to another one, like this:

function clickhandler(e,split_token) {
svc_drilldown = "/app/ESI/service_explorer"+"?&form.time.earliest="+earliest+"&form.time.latest="+latest+"&form.serviceName="+e.name2+"&form.host="+'\"'+"*"+'\"'+"&form.cluster="+cluster;
window.open(svc_drilldown);
}
0 Karma

tiagofbmm
Influencer

Please let me know if the answer was useful for you. If it was, accept it and upvote. If not, give us more input so we can help you with that

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!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...