Hi,
My requirement is like this:
I have an application with two tabs. I want to run a splunk search in one tab and use the result in other tab.
For example:
In the first search, i want to run a search to get list of students with their marks.
And in other tab i want to use the topper name to congrats him/her.
I don't want to run that search again in the second tab.
My dashboard is in xml.
Can this be achieved by using tokens? if yes can anyone tell me how?
I know how to pass token from one panel to other in same tab, but not able to pass it from one tab to other.
Can anyone help me with that?
Thanks
hi,
I propose to use a drilldown will get the value in the first table to return in the second table and trigger the results of this second table. Here is an example of code I used to do this recently drilldown.
First step: You created the first table (page1.xml) and the inside of the code you use a tag that drilldown will recover the value of a field that you wish to return in the second table that you must first create .
Second step: creating the second table (page2.xml) with its display will be conditioned by the value of the first table field.
and try and let me know if that helps you.
page1.xml
Here also you are defining ticketnumber token in both the xml page.
Can we do like define a token for sourcetype in page1.xml like provide a text area to user for provide the sourcetype and then use same sourcetype provided by the user, in page2.xml.
No need to provide sourcetype again in page2.xml
hi,
yes, you can get the sourcetype of page1.xml in page2.xml, just use a text box to enter the sourcetype in page1.xml and condition the drilldown on the value of this sourcetype and it will appear in page2.xml carefree. in my code I have conditioned the drilldown with the value of ticketNumber, you only need to edit, and rather sourcetype.
let me know if this will work as desired.
try following this link:
http://answers.splunk.com/answers/170633/how-do-i-use-one-search-to-populate-a-bunch-of-pan.html
Here its showing how to save search and use it in different panel but same dashboard.
I want to use it in different dashboard.
And in simple xml if possible.
Here tabs means page.
lets imagine i have two xml page.
page1.xml and page2.xml
i want to run the search query in page1.xml or want to define token in page1.xml
and want to use that token in page 2.xml.
Is it possible?
hi,
please post your code xml and let me check how to do?