<?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 running a search for 30 mins before and after the clicked time as drilldown in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480637#M31512</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am trying to create a drilldown for my timechart, the idea is to drill down to the events that happened 30 mins before and after the clicked time (click.value in my case). I referred the answer &lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/215176/subtracting-30-minutes-from-passed-drilldown-param.html?utm_source=typeahead&amp;amp;utm_medium=newquestion&amp;amp;utm_campaign=no_votes_sort_relev"&gt;https://answers.splunk.com/answers/215176/subtracting-30-minutes-from-passed-drilldown-param.html?utm_source=typeahead&amp;amp;utm_medium=newquestion&amp;amp;utm_campaign=no_votes_sort_relev&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Now this is helping me pass the earliest time, but when i use the same concept with the latest time i am not getting the desired result. Below is my current query:&lt;/P&gt;

&lt;P&gt;index="tutorial" categoryId=strategy earliest=[|gentimes start=-1|eval new = relative_time($click.value$,"-1800")| return $$new] latest=[|gentimes start=-1|eval latest1 =($click.value$ + 1800)| return $$latest1] | top clientip&lt;/P&gt;

&lt;P&gt;after passing through the drilldown pipeline the query changes to:&lt;/P&gt;

&lt;P&gt;index="tutorial" categoryId=strategy earliest=[|gentimes start=-1|eval new = relative_time(1572728400.000,"-1800")| return $new] &lt;STRONG&gt;latest=[|gentimes start=-1|eval latest1 =(1572728400.000   1800)| return $latest1]&lt;/STRONG&gt; | top clientip&lt;/P&gt;

&lt;P&gt;If you look closely the + sign just vanished. I tried many ways to find a work around for that but wasn't able to. Please take a look and try to run the query once by yourself. &lt;/P&gt;

&lt;P&gt;@Raghav2384 @RVDowning @somesoni2 @woodcock @gcusello @mayurr98 please help guys!!&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2019 13:57:37 GMT</pubDate>
    <dc:creator>ManishVilla7</dc:creator>
    <dc:date>2019-11-11T13:57:37Z</dc:date>
    <item>
      <title>running a search for 30 mins before and after the clicked time as drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480637#M31512</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am trying to create a drilldown for my timechart, the idea is to drill down to the events that happened 30 mins before and after the clicked time (click.value in my case). I referred the answer &lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/215176/subtracting-30-minutes-from-passed-drilldown-param.html?utm_source=typeahead&amp;amp;utm_medium=newquestion&amp;amp;utm_campaign=no_votes_sort_relev"&gt;https://answers.splunk.com/answers/215176/subtracting-30-minutes-from-passed-drilldown-param.html?utm_source=typeahead&amp;amp;utm_medium=newquestion&amp;amp;utm_campaign=no_votes_sort_relev&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Now this is helping me pass the earliest time, but when i use the same concept with the latest time i am not getting the desired result. Below is my current query:&lt;/P&gt;

&lt;P&gt;index="tutorial" categoryId=strategy earliest=[|gentimes start=-1|eval new = relative_time($click.value$,"-1800")| return $$new] latest=[|gentimes start=-1|eval latest1 =($click.value$ + 1800)| return $$latest1] | top clientip&lt;/P&gt;

&lt;P&gt;after passing through the drilldown pipeline the query changes to:&lt;/P&gt;

&lt;P&gt;index="tutorial" categoryId=strategy earliest=[|gentimes start=-1|eval new = relative_time(1572728400.000,"-1800")| return $new] &lt;STRONG&gt;latest=[|gentimes start=-1|eval latest1 =(1572728400.000   1800)| return $latest1]&lt;/STRONG&gt; | top clientip&lt;/P&gt;

&lt;P&gt;If you look closely the + sign just vanished. I tried many ways to find a work around for that but wasn't able to. Please take a look and try to run the query once by yourself. &lt;/P&gt;

&lt;P&gt;@Raghav2384 @RVDowning @somesoni2 @woodcock @gcusello @mayurr98 please help guys!!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 13:57:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480637#M31512</guid>
      <dc:creator>ManishVilla7</dc:creator>
      <dc:date>2019-11-11T13:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: running a search for 30 mins before and after the clicked time as drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480638#M31513</link>
      <description>&lt;P&gt;Just curious...  I see you used relative_time in your calculation of earliest, but straight up arithmetic for calculation of latest.  Do you get the same results if you use relative_time for latest, too?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:56:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480638#M31513</guid>
      <dc:creator>rmmiller</dc:creator>
      <dc:date>2020-09-30T02:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: running a search for 30 mins before and after the clicked time as drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480639#M31514</link>
      <description>&lt;P&gt;yes @rmmiller, the problem remains the same. The main issue is that when the search goes through the drilldown hammer, the &lt;STRONG&gt;"+"&lt;/STRONG&gt; sign somehow vanishes.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 14:56:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480639#M31514</guid>
      <dc:creator>ManishVilla7</dc:creator>
      <dc:date>2019-11-11T14:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: running a search for 30 mins before and after the clicked time as drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480640#M31515</link>
      <description>&lt;P&gt;Have you tried setting the token drilldown in the XML, and then using that variable? That works for me. However, I'm not using the &lt;CODE&gt;gentimes&lt;/CODE&gt; command, instead just using the earliest and latest in a &lt;CODE&gt;where&lt;/CODE&gt; clause downstream.&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
          &amp;lt;set token="time"&amp;gt;$click.value$&amp;lt;/set&amp;gt;&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;K, I can't get the drilldown tags to format but that should be within drilldown tags in the XML&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 18:15:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480640#M31515</guid>
      <dc:creator>aberkow</dc:creator>
      <dc:date>2019-11-11T18:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: running a search for 30 mins before and after the clicked time as drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480641#M31516</link>
      <description>&lt;P&gt;(UPDATED)&lt;BR /&gt;
Got it, thanks for the additional detail.  The "+" is a special character when it comes to URL's, and it was being translated/stripped when the drilldown tab is opened as a new window.&lt;/P&gt;

&lt;P&gt;I used eval arithmetic on $click.value$, but I converted the + symbol to hex with the help of &lt;A href="http://www.asciitable.com/"&gt;http://www.asciitable.com/&lt;/A&gt;&lt;BR /&gt;
The hex value for a + sign is 2B, but you must put % in front of it when used in URL's.&lt;BR /&gt;
This is my drilldown search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="tutorial" categoryId=strategy earliest=[|gentimes start=-1|eval new = ($click.value$ - 1800)| return $$new] latest=[|gentimes start=-1|eval latest1 = ($click.value$ %2B 1800)| return $$latest1] | top clientip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note the + is replaced with %2B in this updated query.&lt;/P&gt;

&lt;P&gt;Hope that helps!&lt;BR /&gt;
rmmiller&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 19:27:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480641#M31516</guid>
      <dc:creator>rmmiller</dc:creator>
      <dc:date>2019-11-11T19:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: running a search for 30 mins before and after the clicked time as drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480642#M31517</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/182766"&gt;@rmmiller&lt;/a&gt; , your help is very much appreciated. &lt;BR /&gt;
Can you please try to pass the search and open that in another search window. Because i am still facing the issue in getting the drilldown to open another search window with the following search:&lt;BR /&gt;
 index="tutorial" categoryId=strategy earliest=[|gentimes start=-1|eval new = relative_time($mycentertime$,"-1800")| return $$new] latest=[|gentimes start=-1|eval latest1 = relative_time($mycentertime$,"+1800")| return $$latest1] | top clientip&lt;/P&gt;

&lt;P&gt;I tried all 3 though, but the &lt;STRONG&gt;"+"&lt;/STRONG&gt; sign was still vanishing.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:55:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480642#M31517</guid>
      <dc:creator>ManishVilla7</dc:creator>
      <dc:date>2020-09-30T02:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: running a search for 30 mins before and after the clicked time as drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480643#M31518</link>
      <description>&lt;P&gt;Thanks @ManishVilla7 for the additional detail, that helped figure out what was happening.&lt;BR /&gt;
rmmiller&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 15:16:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480643#M31518</guid>
      <dc:creator>rmmiller</dc:creator>
      <dc:date>2019-11-12T15:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: running a search for 30 mins before and after the clicked time as drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480644#M31519</link>
      <description>&lt;P&gt;@ManishVilla7 did this updated solution solve your problem?&lt;/P&gt;

&lt;P&gt;rmmiller&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 15:28:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480644#M31519</guid>
      <dc:creator>rmmiller</dc:creator>
      <dc:date>2019-11-18T15:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: running a search for 30 mins before and after the clicked time as drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480645#M31520</link>
      <description>&lt;P&gt;@rmmiller just checked, works fine. good work!!&lt;/P&gt;

&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 15:37:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480645#M31520</guid>
      <dc:creator>ManishVilla7</dc:creator>
      <dc:date>2019-11-18T15:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: running a search for 30 mins before and after the clicked time as drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480646#M31521</link>
      <description>&lt;P&gt;@ManishVilla7  Great to hear!  Please accept the answer so everyone will know this is closed.&lt;BR /&gt;
Happy you're on your way!&lt;BR /&gt;
rmmiller&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 23:27:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/running-a-search-for-30-mins-before-and-after-the-clicked-time/m-p/480646#M31521</guid>
      <dc:creator>rmmiller</dc:creator>
      <dc:date>2019-11-18T23:27:49Z</dc:date>
    </item>
  </channel>
</rss>

