<?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: Date range on inputlookup search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453307#M128307</link>
    <description>&lt;P&gt;Please see sample data below.&lt;/P&gt;

&lt;P&gt;_time   index   count&lt;BR /&gt;
    2017-12-13  _audit  96754&lt;BR /&gt;
    2017-12-13  _internal   7065998&lt;BR /&gt;
    2017-12-13  _introspection  534316&lt;BR /&gt;
    2017-12-13  _telemetry  251&lt;BR /&gt;
    2017-12-13  it_co   100924602&lt;BR /&gt;
    2017-12-13  main    1&lt;BR /&gt;
    2017-12-14  _audit  139595&lt;BR /&gt;
    2017-12-14  _internal   7411574&lt;BR /&gt;
    2017-12-14  _introspection  635669&lt;BR /&gt;
    2017-12-14  _telemetry  272&lt;BR /&gt;
    2017-12-14  it_co   105231185&lt;BR /&gt;
    2017-12-14  main    0&lt;BR /&gt;
    2017-12-14  test    223896&lt;BR /&gt;
    2017-12-15  _audit  175059&lt;BR /&gt;
    2017-12-15  _internal   12261227&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:32:09 GMT</pubDate>
    <dc:creator>dyeo</dc:creator>
    <dc:date>2020-09-30T00:32:09Z</dc:date>
    <item>
      <title>Date range on inputlookup search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453304#M128304</link>
      <description>&lt;P&gt;Hi I'm trying to do an inputlookup search with a specific date range of the last 6 months, but am not having any success.  I tried converting _time to epoch to then apply a time filter, but that epoch time just results in a blank field.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup append=t licensing_epd 
| eval epoch=strptime(_time,"%Y-%m-%d") 
| timechart span=1d sum(count) as count 
| bucket _time span=1d 
| table _time epoch count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 11 May 2019 16:48:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453304#M128304</guid>
      <dc:creator>dyeo</dc:creator>
      <dc:date>2019-05-11T16:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Date range on inputlookup search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453305#M128305</link>
      <description>&lt;P&gt;Please provide a sample of your &lt;CODE&gt;licensing_epd&lt;/CODE&gt; data (five or ten rows should be sufficient). That will enable us to see the format of the time field you have stored, and how to convert it to something &lt;CODE&gt;timechart&lt;/CODE&gt; recognises.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 01:13:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453305#M128305</guid>
      <dc:creator>sduff_splunk</dc:creator>
      <dc:date>2019-05-13T01:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date range on inputlookup search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453306#M128306</link>
      <description>&lt;P&gt;Is there a _time field in your lookup? What format is it in? &lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 07:25:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453306#M128306</guid>
      <dc:creator>nabeel652</dc:creator>
      <dc:date>2019-05-13T07:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date range on inputlookup search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453307#M128307</link>
      <description>&lt;P&gt;Please see sample data below.&lt;/P&gt;

&lt;P&gt;_time   index   count&lt;BR /&gt;
    2017-12-13  _audit  96754&lt;BR /&gt;
    2017-12-13  _internal   7065998&lt;BR /&gt;
    2017-12-13  _introspection  534316&lt;BR /&gt;
    2017-12-13  _telemetry  251&lt;BR /&gt;
    2017-12-13  it_co   100924602&lt;BR /&gt;
    2017-12-13  main    1&lt;BR /&gt;
    2017-12-14  _audit  139595&lt;BR /&gt;
    2017-12-14  _internal   7411574&lt;BR /&gt;
    2017-12-14  _introspection  635669&lt;BR /&gt;
    2017-12-14  _telemetry  272&lt;BR /&gt;
    2017-12-14  it_co   105231185&lt;BR /&gt;
    2017-12-14  main    0&lt;BR /&gt;
    2017-12-14  test    223896&lt;BR /&gt;
    2017-12-15  _audit  175059&lt;BR /&gt;
    2017-12-15  _internal   12261227&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:32:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453307#M128307</guid>
      <dc:creator>dyeo</dc:creator>
      <dc:date>2020-09-30T00:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Date range on inputlookup search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453308#M128308</link>
      <description>&lt;P&gt;Please see sample data below.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 02:02:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453308#M128308</guid>
      <dc:creator>dyeo</dc:creator>
      <dc:date>2019-05-17T02:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date range on inputlookup search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453309#M128309</link>
      <description>&lt;P&gt;Try like this &lt;/P&gt;

&lt;P&gt;| inputlookup append=t licensing_epd &lt;BR /&gt;
 | eval _time =strptime(_time,"%Y-%m-%d") &lt;BR /&gt;
 | timechart span=1d sum(count) as count &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:35:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453309#M128309</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2020-09-30T00:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Date range on inputlookup search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453310#M128310</link>
      <description>&lt;P&gt;0 results when I run this query.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 03:40:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453310#M128310</guid>
      <dc:creator>dyeo</dc:creator>
      <dc:date>2019-05-17T03:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Date range on inputlookup search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453311#M128311</link>
      <description>&lt;P&gt;What are the results without timechart ?&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 04:10:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453311#M128311</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-05-17T04:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Date range on inputlookup search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453312#M128312</link>
      <description>&lt;P&gt;Without the timechart command, the _time column is empty.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time   count       index
        96754       _audit
        7065998     _internal
        534316      _introspection
        251         _telemetry
        100924602   it_co
        1           main
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 May 2019 16:53:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453312#M128312</guid>
      <dc:creator>dyeo</dc:creator>
      <dc:date>2019-05-17T16:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date range on inputlookup search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453313#M128313</link>
      <description>&lt;P&gt;@dyeo Only running the inputlookup command gives you values in _time column?&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 16:56:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453313#M128313</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-05-17T16:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date range on inputlookup search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453314#M128314</link>
      <description>&lt;P&gt;Yes, the inputlookup command generates a _time value in the format:&lt;/P&gt;

&lt;P&gt;2017-12-13&lt;BR /&gt;
2017-12-14&lt;BR /&gt;
2017-12-15&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 16:58:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453314#M128314</guid>
      <dc:creator>dyeo</dc:creator>
      <dc:date>2019-05-17T16:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date range on inputlookup search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453315#M128315</link>
      <description>&lt;P&gt;@dyeo Does this not work for you?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup append=t licensing_epd |  stats sum(count) as count by _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 May 2019 17:53:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453315#M128315</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-05-17T17:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Date range on inputlookup search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453316#M128316</link>
      <description>&lt;P&gt;That works, but how do I convert _time to epoch so that I can filter for the last 6 months?&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 18:13:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453316#M128316</guid>
      <dc:creator>dyeo</dc:creator>
      <dc:date>2019-05-17T18:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Date range on inputlookup search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453317#M128317</link>
      <description>&lt;P&gt;You can assign epoch=_time, but that will not help you filter data I believe. Can you not use where after inputlookup on _time?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup append=t licensing_epd |  stats sum(count) as count by _time| eval epoch=_time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 May 2019 18:19:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453317#M128317</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-05-17T18:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date range on inputlookup search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453318#M128318</link>
      <description>&lt;P&gt;That was it.  Thanks!  Here's my full query I used to filter for the last 6 months.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| inputlookup append=t licensing_epd &lt;BR /&gt;
| stats sum(count) as count by _time &lt;BR /&gt;
| eval epoch=_time &lt;BR /&gt;
| eval x = now() - epoch &lt;BR /&gt;
| where x &amp;lt; 15811200&lt;BR /&gt;
| table _time count&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 21:46:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-range-on-inputlookup-search/m-p/453318#M128318</guid>
      <dc:creator>dyeo</dc:creator>
      <dc:date>2019-05-17T21:46:29Z</dc:date>
    </item>
  </channel>
</rss>

