Dashboards & Visualizations

pass token from workflow action via search to a dashboard text input.

tonymorin
Explorer

I want to simply run a search " index=main src=1.1.1.1", then select a workflow from the event and pass the src token from the event to a text input on a dashboard. I have tried POST it and GET. in the workflow parameters, but I'm just missing something I can figure out. and help will be much apricated. Thanks in advance.

0 Karma
1 Solution

kamlesh_vaghela
SplunkTrust
SplunkTrust

HI

Can you please try this?

[My Workflow Action]
display_location = event_menu
fields = *
label = MyLabel
link.method = get
link.target = blank
link.uri = my_dashboard?form.mytext=$src$
type = link

Thanks

View solution in original post

kamlesh_vaghela
SplunkTrust
SplunkTrust

HI

Can you please try this?

[My Workflow Action]
display_location = event_menu
fields = *
label = MyLabel
link.method = get
link.target = blank
link.uri = my_dashboard?form.mytext=$src$
type = link

Thanks

tonymorin
Explorer

kamlesh_vaghela that worked. I will accept it as soon as I can.

0 Karma

niketn
Legend

@tonymorin, I have converted to answer. You can accept the same to mark this as answered. I hope you have used fields = src to make the Workflow applicable only for events with src field.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

niketn
Legend

@kamlesh_vaghela, I think field = * should be changed to

fields = src

Since the Workflow Action needs to pass on src parameter.
Other than that seems It should work, provided dashboard name is my_dashboard and text input token is mytext

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...