<?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 Duration Filter without _time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Duration-Filter-without-time/m-p/390228#M69835</link>
    <description>&lt;P&gt;Hi Community!&lt;BR /&gt;
I wanted to create a dashboard that have &lt;STRONG&gt;TWO&lt;/STRONG&gt; filters assigned to a graph.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Date:                                              Duration:
2018-08-01                                         6months


My graph x-axis:



2018-03     2018-04    2018-05    2018-06    2018-07    2018-08
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Be informed that I do not utilize the built-in Splunk &lt;STRONG&gt;_time&lt;/STRONG&gt; system and thus I cannot use the &lt;STRONG&gt;_time input&lt;/STRONG&gt;  provided in the filter.&lt;/P&gt;

&lt;P&gt;I tried using this as my filter code:   &lt;CODE&gt;- strptime("0000-06-00","%Y-%m-%d")&lt;/CODE&gt; but it didnt work. &lt;/P&gt;

&lt;P&gt;Thanks guys!&lt;/P&gt;</description>
    <pubDate>Wed, 01 Aug 2018 02:04:46 GMT</pubDate>
    <dc:creator>andrehl</dc:creator>
    <dc:date>2018-08-01T02:04:46Z</dc:date>
    <item>
      <title>Duration Filter without _time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Duration-Filter-without-time/m-p/390228#M69835</link>
      <description>&lt;P&gt;Hi Community!&lt;BR /&gt;
I wanted to create a dashboard that have &lt;STRONG&gt;TWO&lt;/STRONG&gt; filters assigned to a graph.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Date:                                              Duration:
2018-08-01                                         6months


My graph x-axis:



2018-03     2018-04    2018-05    2018-06    2018-07    2018-08
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Be informed that I do not utilize the built-in Splunk &lt;STRONG&gt;_time&lt;/STRONG&gt; system and thus I cannot use the &lt;STRONG&gt;_time input&lt;/STRONG&gt;  provided in the filter.&lt;/P&gt;

&lt;P&gt;I tried using this as my filter code:   &lt;CODE&gt;- strptime("0000-06-00","%Y-%m-%d")&lt;/CODE&gt; but it didnt work. &lt;/P&gt;

&lt;P&gt;Thanks guys!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 02:04:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Duration-Filter-without-time/m-p/390228#M69835</guid>
      <dc:creator>andrehl</dc:creator>
      <dc:date>2018-08-01T02:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Duration Filter without _time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Duration-Filter-without-time/m-p/390229#M69836</link>
      <description>&lt;P&gt;@andrehl you requirement for two inputs is not clear based on details provided. If &lt;CODE&gt;Date&lt;/CODE&gt; input is not Splunk's Time Picker input, is it html time input? &lt;/P&gt;

&lt;P&gt;If so please refer to one of my older answer to use html time input with jQuery (Simple XML JS Extension) to capture selected time and use in Splunk Dashboard as custom token: &lt;A href="https://answers.splunk.com/answers/627432/jquery-datepicker-in-splunk.html"&gt;https://answers.splunk.com/answers/627432/jquery-datepicker-in-splunk.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You would need to explain more about what is &lt;CODE&gt;Duration&lt;/CODE&gt; filter? What are its possible values and how is Duration applied to searches along with Date? Is it a Combination of both Date and Duration or only one can be applied at a time?&lt;/P&gt;

&lt;P&gt;Please elaborate with meaningful description and data.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 06:12:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Duration-Filter-without-time/m-p/390229#M69836</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-08-01T06:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Duration Filter without _time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Duration-Filter-without-time/m-p/390230#M69837</link>
      <description>&lt;P&gt;You probably want to use the &lt;CODE&gt;relative_time()&lt;/CODE&gt; function to calculate your boundaries.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval new_time = relative_time(now(),"-6mon@mon")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Aug 2018 05:22:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Duration-Filter-without-time/m-p/390230#M69837</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-08-02T05:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Duration Filter without _time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Duration-Filter-without-time/m-p/390231#M69838</link>
      <description>&lt;P&gt;Hi @niketnilay, thank you for the feedback! Please pardon my unfamiliarity with programming languages.&lt;BR /&gt;
My data came from excel files, similar to this:&lt;BR /&gt;
    Date_created&lt;BR /&gt;
    2017-05-13&lt;BR /&gt;
    2017-05-14&lt;BR /&gt;
    2017-07-14&lt;BR /&gt;
    2018-01-05&lt;/P&gt;

&lt;P&gt;What I want to do is for the user to select filters (combination of both), &lt;CODE&gt;Year: 2017&lt;/CODE&gt; &lt;CODE&gt;Month: 06&lt;/CODE&gt;, and  &lt;CODE&gt;Duration: Past 6 Months&lt;/CODE&gt;  and my dashboard is supposed to only show datas from &lt;CODE&gt;2017 January&lt;/CODE&gt; to &lt;CODE&gt;2017 June&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 01:41:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Duration-Filter-without-time/m-p/390231#M69838</guid>
      <dc:creator>andrehl</dc:creator>
      <dc:date>2018-08-08T01:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Duration Filter without _time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Duration-Filter-without-time/m-p/390232#M69839</link>
      <description>&lt;P&gt;sorry, it didn't work for me&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 01:41:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Duration-Filter-without-time/m-p/390232#M69839</guid>
      <dc:creator>andrehl</dc:creator>
      <dc:date>2018-08-08T01:41:58Z</dc:date>
    </item>
  </channel>
</rss>

