I created a summary index to call it in dashboard because it has so much data and need to run for larger time frames. Configured summary index in this way - <my search query>
----
----
----
| eval log_datetime=strftime(_time, "%Y-%m-%d %H:%M:%S")
| rename log_datetime AS "Time (UTC)"
|table _time, "Time (UTC)", <wanted fields>
| collect index=sony_summary Now calling it in one of my dashboard panel in this way - index=sony_summary sourcetype=stash
|search <passed drop-down tokens>
|sort 0 -"Time (UTC)"
| table "Support ID","Time (UTC)", _time -------- Now my requirement is I don't want users to see this summary index data. So I have created a drilldown and linked to different search as below. Whenever they click on any field value in table, new search will be opened with clicked support_id <earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
<!-- Drilldown Configuration -->
<!-- Enable row-level drilldown -->
<option name="drilldown">row</option>
<option name="refresh.display">progressbar</option>
<drilldown>
<link target="_blank">/app/search/search?q=search index=sony* sourcetype=sony_logs
support_id="$click.value$"&earliest=$time_range.earliest$&latest=$time_range.latest</link>
</drilldown> Now when I click on dashboard panel's field, it is opening with expected support_id as expected, but it is opening with token time range. I am expecting that this should return the particular time range at what time event indexed as per Time (UTC) or _time. Example - An event has support ID with time 07:00 am, when I click on it it should open for 7 am, but it is taking token time range. When I checked in chatgpt, it given in following one and modified it in this way. <table id="myTable">
<search>
<query>index=sony_summary sourcetype=stash
|search <passed drop-down tokens>
|sort 0 -"Time (UTC)"
|eval epoch_time=_time, epoch_plus60=_time+60 (added this now)
| table "Support ID","Time (UTC)", _time -------- , epoch_time, epoch_plus60</query>
</search>
<earliest>$time_range.earliest$</earliest>
<latest>$time_range.latest$</latest>
</search>
<!-- Drilldown Configuration -->
<!-- Enable row-level drilldown -->
<option name="drilldown">row</option>
<option name="refresh.display">progressbar</option>
<drilldown>
<link target="_blank">/app/search/search?q=search index=sony* sourcetype=sony_logs
support_id="$click.value$"&earliest=$row.epoch_time$&latest=$row.epoch_plus60</link>
</drilldown> Now this is working fine and time range is also coming what I clicked on. but here the issue is I don't want these two new fields - epoch_time, epoch_plus60 to be visible in dashboard. These should get hided completely but still drilldown should work as expected. What to do here? Please suggest me. Am I missing anything? Even if I keep those fields in the last in panel, still my manager said hide it but it should work as expected.
... View more