Hello !
So I'm looking to make a drilldown referencing to another dashboard with the time changing in the second dashboard for the same range of time.
<form>
<fieldset submitButton="false" autoRun="true"></fieldset>
<row>
<panel>
<input type="dropdown" searchWhenChanged="true" token="timeEarliest">
<label>Select an earliest time frame</label>
<default>-24h</default>
<choice value="-1w">-1w</choice>
<choice value="-24h">-24h</choice>
<choice value="-6h">-6h</choice>
</input>
<input type="dropdown" searchWhenChanged="true" token="timeLastest">
<label>Select a latest time frame</label>
<default>now</default>
<choice value="-18h">-18h</choice>
<choice value="now">now</choice>
</input>
<chart>
<title>Chanel View</title>
<search>
<query> index=main text="*Req*"| timechart count bins=500 minspan=5min as "Errors</query>
<earliest>$timeEarliest$</earliest>
<latest>$timeLastest$</latest>
</search>
<drilldown target="Drilldown">
<link>
<![CDATA[
/app/SOS/chanel_view#en-US/app/SOS/chanel_view?&earliest=$timeEarliest$&latest=$timeLatest$
]]>
</link>
</drilldown>
</chart>
</panel>
</row>
</form>
And for the second dashboard:
It keeps staying on " Search is waiting for input... "
<chart>
<title>transactional </title>
<search>
<query>index=main |timechart count(text) as Error span=5min</query>
<earliest>$timeEarliest$</earliest>
<latest>$timeLastest$</latest>
</search>
</chart>
I was hoping that it was able to take the time from the link /app/SOS/chanel_view#en-US/app/SOS/chanel_view?&earliest=$timeEarliest$&latest=$timeLatest$
and use it for the second dashboard.
Thanks for your help
I found the answer :
<drilldown target="_blank">
<link>
<![CDATA[
/app/SOS/chanel_view?earliest=$form.timeEarliest5$&latest=$form.timeLatest5$
]]>
</link>
</drilldown>
If forget the "form." in each source token.
To solve the problem i looked at the source URL and the destination URL :
Source URL : form.timeEarliest=-24h& form.timeLatest=now
Destination URL : ?earliest=-24h&latest=now
Hope this can help
I found the answer :
<drilldown target="_blank">
<link>
<![CDATA[
/app/SOS/chanel_view?earliest=$form.timeEarliest5$&latest=$form.timeLatest5$
]]>
</link>
</drilldown>
If forget the "form." in each source token.
To solve the problem i looked at the source URL and the destination URL :
Source URL : form.timeEarliest=-24h& form.timeLatest=now
Destination URL : ?earliest=-24h&latest=now
Hope this can help
Two issues here
1. Token name for timeLatest is misspelled here as "timeLastest" in the inputs (first dashboard)
2. Use following for the drilldown - link
/app/SOS/chanel_view?earliest=$timeEarliest$&latest=$timeLatest$
Thanks, i corrected the name!
I tried by correcting the link but still not working 😞
Thanks anyway, still looking 🙂