<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to build a form that does a drilldown to events around the selected event timestamp in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-build-a-form-that-does-a-drilldown-to-events-around-the/m-p/214918#M42297</link>
    <description>&lt;P&gt;How to build a form that does a drilldown to events around the selected event timestamp&lt;/P&gt;

&lt;P&gt;1 - show a list of results&lt;BR /&gt;
2 - click on one of them to select the timestamp&lt;BR /&gt;
3 - populate a panel that will show the events from another search, but look at all events around the time of the selected one.&lt;/P&gt;

&lt;P&gt;example : show me events 10 minutes before and after the selected one&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2016 20:02:50 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2016-09-27T20:02:50Z</dc:date>
    <item>
      <title>How to build a form that does a drilldown to events around the selected event timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-build-a-form-that-does-a-drilldown-to-events-around-the/m-p/214918#M42297</link>
      <description>&lt;P&gt;How to build a form that does a drilldown to events around the selected event timestamp&lt;/P&gt;

&lt;P&gt;1 - show a list of results&lt;BR /&gt;
2 - click on one of them to select the timestamp&lt;BR /&gt;
3 - populate a panel that will show the events from another search, but look at all events around the time of the selected one.&lt;/P&gt;

&lt;P&gt;example : show me events 10 minutes before and after the selected one&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 20:02:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-build-a-form-that-does-a-drilldown-to-events-around-the/m-p/214918#M42297</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2016-09-27T20:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a form that does a drilldown to events around the selected event timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-build-a-form-that-does-a-drilldown-to-events-around-the/m-p/214919#M42298</link>
      <description>&lt;P&gt;see this dashboard.&lt;BR /&gt;
We use the field "epochtime" (in seconds) from the first table to use as a drilldown condition.&lt;BR /&gt;
the second panel is populated by a search that uses a subsearch to craft a condition looking 10 minutes earliest and 10 minutes latest around the epochtime&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.comstorage/temp/161191-timedrilldownxml.zip"&gt;link text&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;time-drilldown&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal source=*splunkd.log ERROR | head 10 
            | eval epochtime=_time | table source _time epochtime _raw&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="table.sortDirection"&amp;gt;asc&amp;lt;/option&amp;gt;
        &amp;lt;option name="list.drilldown"&amp;gt;full&amp;lt;/option&amp;gt;
        &amp;lt;option name="list.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="maxLines"&amp;gt;5&amp;lt;/option&amp;gt;
        &amp;lt;option name="raw.drilldown"&amp;gt;full&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="type"&amp;gt;list&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="epochtime"&amp;gt;$row.epochtime$&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
        &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;table depends="$epochtime$"&amp;gt;
      &amp;lt;title&amp;gt;$epochtime$&amp;lt;/title&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=_internal    [  
  search                              index=_internal 
| head 1  | eval earliest=$epochtime$ - 600 | eval latest= $epochtime$ + 600 
          | table earliest latest           | format "(" "(" "" ")" "OR" ")"              ]

| table _time source&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
      &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
      &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
      &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
    &amp;lt;/table&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Sep 2016 20:05:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-build-a-form-that-does-a-drilldown-to-events-around-the/m-p/214919#M42298</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2016-09-27T20:05:52Z</dc:date>
    </item>
  </channel>
</rss>

