How to pass parameters from alert view result to my new link?

Path Finder


I've created my additional links at alerts view, see picture below:
at /splunk/share/splunk/search_mrsparkle/templates/alerts/index.html file. At 'My First Link":

<a href="" target="_blank" class="spl-icon-external-link-xsm">
<span>${('My First Link')}</span>

I put simple url like, works fine. But at 'My Second Link':

<a href="http://mynewurl/cgi-bin/view.fcgi?str=$hostname$:$name$&db_dir=/home/online/online-update/db&what=cgiwrapper&cgi_basename=custom.cgi&conf_fn=/home/online/online-update/conf.d/online-update.conf&period=h" target="_blank" class="spl-icon-external-link-xsm">
<span>${('My Second Link')}</span>

I want to pass two fields from ViewResult (hostname,name) to 'My Second Link' to login at machine where the alert appear. Does somebody know how to do that?

Maybe there is a file like: workflow_actions.conf where this solution:

[My Second Link]
display_location = both
fields = hostname,name
label = - Look At My Second Link
link.method = get = blank
link.uri = http://mynewurl/cgi-bin/view.fcgi?str=$hostname$:$name$&db_dir=/home/online/online-update/db&what=cg...
type = link

works perfectly fine for me.

Best Regards,

0 Karma

Path Finder

Anybody? Some clue?

0 Karma
State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!