<?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 Re: How to dynamically change the span parameter in bucket without using drop down options. in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-dynamically-change-the-span-parameter-in-bucket-without/m-p/368495#M13578</link>
    <description>&lt;P&gt;@sbbadri - Order of the first two is reversed.  You need to test 3600 before you test 86400.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2017 03:44:19 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-08-15T03:44:19Z</dc:date>
    <item>
      <title>How to dynamically change the span parameter in bucket without using drop down options.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-dynamically-change-the-span-parameter-in-bucket-without/m-p/368492#M13575</link>
      <description>&lt;P&gt;I have a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* source=*|....| bucket Time span=(1d/1h/5m)...| 
if I select last one month from time picker, span would auto change as 1d ..bucket Time span=1d in query
if I select last one day from time picker, span would auto change as 1h ..bucket Time span=1h in query.
if I select last one hour from time picker, span would auto change as 5m ..bucket Time span=5m in query.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;A condition is that I can't use drop down for span....but timepicker for selecting for date and time.&lt;/P&gt;

&lt;P&gt;can anyone help me on this query&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 12:53:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-dynamically-change-the-span-parameter-in-bucket-without/m-p/368492#M13575</guid>
      <dc:creator>karthikeyan_k14</dc:creator>
      <dc:date>2017-08-14T12:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically change the span parameter in bucket without using drop down options.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-dynamically-change-the-span-parameter-in-bucket-without/m-p/368493#M13576</link>
      <description>&lt;P&gt;&amp;lt;form&amp;gt;&lt;BR /&gt;
  &amp;lt;label&amp;gt;testspandynamicchange&amp;lt;/label&amp;gt;&lt;BR /&gt;
  &amp;lt;fieldset submitButton="true" autoRun="true"&amp;gt;&lt;BR /&gt;
    &amp;lt;input type="time" token="time_tok" searchWhenChanged="false"&amp;gt;&lt;BR /&gt;
      &amp;lt;label&amp;gt;select a time range&amp;lt;/label&amp;gt;&lt;BR /&gt;
      &amp;lt;default&amp;gt;&lt;BR /&gt;
        &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;&lt;BR /&gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;&lt;BR /&gt;
      &amp;lt;/default&amp;gt;&lt;BR /&gt;
      &amp;lt;change&amp;gt;&lt;BR /&gt;
        &amp;lt;condition match="relative_time(now(), $time_tok.latest$) - relative_time(now(), $time_tok.earliest$) &amp;gt;= 86400"&amp;gt;&lt;BR /&gt;
          &amp;lt;set token="stok"&amp;gt;1h&amp;lt;/set&amp;gt;&lt;BR /&gt;
        &amp;lt;/condition&amp;gt;&lt;BR /&gt;
        &amp;lt;condition match="relative_time(now(), $time_tok.latest$) - relative_time(now(), $time_tok.earliest$) &amp;gt;= 3600"&amp;gt;&lt;BR /&gt;
          &amp;lt;set token="stok"&amp;gt;5m&amp;lt;/set&amp;gt;&lt;BR /&gt;
        &amp;lt;/condition&amp;gt;&lt;BR /&gt;
        &amp;lt;condition match="relative_time(now(), $time_tok.latest$) - relative_time(now(), $time_tok.earliest$) &amp;gt;= 2629743"&amp;gt;&lt;BR /&gt;
          &amp;lt;set token="stok"&amp;gt;1d&amp;lt;/set&amp;gt;&lt;BR /&gt;
        &amp;lt;/condition&amp;gt;&lt;BR /&gt;
      &amp;lt;/change&amp;gt;&lt;BR /&gt;
    &amp;lt;/input&amp;gt;&lt;BR /&gt;
  &amp;lt;/fieldset&amp;gt;&lt;BR /&gt;
  &amp;lt;row&amp;gt;&lt;BR /&gt;
    &amp;lt;panel&amp;gt;&lt;BR /&gt;
      &amp;lt;table&amp;gt;&lt;BR /&gt;
        &amp;lt;search&amp;gt;&lt;BR /&gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd group=pipeline | timechart span=$stok$  count by group&amp;lt;/query&amp;gt;&lt;BR /&gt;
          &amp;lt;earliest&amp;gt;$time_tok.earliest$&amp;lt;/earliest&amp;gt;&lt;BR /&gt;
          &amp;lt;latest&amp;gt;$time_tok.latest$&amp;lt;/latest&amp;gt;&lt;BR /&gt;
        &amp;lt;/search&amp;gt;&lt;BR /&gt;
      &amp;lt;/table&amp;gt;&lt;BR /&gt;
    &amp;lt;/panel&amp;gt;&lt;BR /&gt;
  &amp;lt;/row&amp;gt;&lt;BR /&gt;
&amp;lt;/form&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:21:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-dynamically-change-the-span-parameter-in-bucket-without/m-p/368493#M13576</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2020-09-29T15:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically change the span parameter in bucket without using drop down options.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-dynamically-change-the-span-parameter-in-bucket-without/m-p/368494#M13577</link>
      <description>&lt;P&gt;@karthikeyan_k14, just FYI, if you use timechart first two should default span to what your are looking. Only for the third one it will be 1m by default not 5m.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 15:58:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-dynamically-change-the-span-parameter-in-bucket-without/m-p/368494#M13577</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-14T15:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically change the span parameter in bucket without using drop down options.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-dynamically-change-the-span-parameter-in-bucket-without/m-p/368495#M13578</link>
      <description>&lt;P&gt;@sbbadri - Order of the first two is reversed.  You need to test 3600 before you test 86400.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 03:44:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-dynamically-change-the-span-parameter-in-bucket-without/m-p/368495#M13578</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-08-15T03:44:19Z</dc:date>
    </item>
  </channel>
</rss>

