<?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: inputlook in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/inputlook/m-p/567754#M197869</link>
    <description>&lt;P&gt;Your original post implied the lookup contained _time as a field. If you do not have a time field in your lookup then you can't filter by time. If you have a field called _time in your lookup, then do as I suggest in my previous post. There is a 3rd option which will make a fixed 7 day test (again assuming you have a time field in your lookup)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup count.csv
| where _time&amp;gt;=relative_time(now(), "-7d@d") AND _time&amp;lt;=now()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Sep 2021 22:03:27 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2021-09-20T22:03:27Z</dc:date>
    <item>
      <title>inputlook</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlook/m-p/567572#M197813</link>
      <description>&lt;P&gt;I have a inputlookup search where I am looking to do a current count vs four week average count. My search is set up so it uses : | inputlookup count.csv | bin _time span=5m&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need my search to display data from prior four weeks like below.&lt;/P&gt;&lt;TABLE width="640"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="116"&gt;&lt;A href="https://splunk4.wellsfargo.net/en-US/app/wib_dev/search?q=%7C%20inputlookup%20signoncount.csv%20%7C%20bin%20_time%20span%3D5m&amp;amp;display.page.search.mode=fast&amp;amp;dispatch.sample_ratio=1&amp;amp;earliest=-7d%40h&amp;amp;latest=now&amp;amp;display.page.search.tab=statistics&amp;amp;display.general.type=statistics&amp;amp;sid=1632106942.794009_58CE84AA-BC6E-4974-9BAE-DA19E3B9C4AF" target="_blank" rel="noopener"&gt;_time&lt;/A&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;A href="https://splunk4.wellsfargo.net/en-US/app/wib_dev/search?q=%7C%20inputlookup%20signoncount.csv%20%7C%20bin%20_time%20span%3D5m&amp;amp;display.page.search.mode=fast&amp;amp;dispatch.sample_ratio=1&amp;amp;earliest=-7d%40h&amp;amp;latest=now&amp;amp;display.page.search.tab=statistics&amp;amp;display.general.type=statistics&amp;amp;sid=1632106942.794009_58CE84AA-BC6E-4974-9BAE-DA19E3B9C4AF" target="_blank" rel="noopener"&gt;c&lt;/A&gt;&lt;/TD&gt;&lt;TD width="110"&gt;Last Week&lt;/TD&gt;&lt;TD width="77"&gt;Two Weeks&amp;nbsp;&lt;/TD&gt;&lt;TD width="110"&gt;Three Weeks Ago&lt;/TD&gt;&lt;TD width="99"&gt;Four weeks Ago&lt;/TD&gt;&lt;TD width="64"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="116"&gt;9/19/2021 15:10&lt;/TD&gt;&lt;TD width="64"&gt;265&lt;/TD&gt;&lt;TD width="110"&gt;(Count from 9/12/2021 15:10)&lt;/TD&gt;&lt;TD width="77"&gt;(Count from 9/05/2021 15:10)&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="116"&gt;9/19/2021 15:15&lt;/TD&gt;&lt;TD width="64"&gt;362&lt;/TD&gt;&lt;TD width="110"&gt;(Count from 9/12/2021 15:15)&lt;/TD&gt;&lt;TD width="77"&gt;(Count from 9/05/2021 15:15)&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="116"&gt;9/19/2021 15:20&lt;/TD&gt;&lt;TD width="64"&gt;589&lt;/TD&gt;&lt;TD width="110"&gt;(Count from 9/12/2021 15:20)&lt;/TD&gt;&lt;TD width="77"&gt;(Count from 9/05/2021 15:20)&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="116"&gt;9/19/2021 15:25&lt;/TD&gt;&lt;TD width="64"&gt;700&lt;/TD&gt;&lt;TD width="110"&gt;(Count from 9/12/2021 15:25)&lt;/TD&gt;&lt;TD width="77"&gt;(Count from 9/05/2021 15:25)&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that I would normally use earliest and latest ( but these commands do not work with inputlooks. If anyone has solutions that work for inputlook it would be great!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 03:16:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlook/m-p/567572#M197813</guid>
      <dc:creator>kishan2356</dc:creator>
      <dc:date>2021-09-20T03:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: inputlook</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlook/m-p/567577#M197816</link>
      <description>&lt;P&gt;You can add the search window time to the event using addinfo and then filter the events on the _time value in your lookup, e.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| addinfo
| where _time&amp;gt;=info_min_time AND _time&amp;lt;=info_max_time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;so, if your search window is last 4 weeks, then this will return the events from the last 4 weeks only from the lookup.&lt;/P&gt;&lt;P&gt;Is that what you wanted?&lt;/P&gt;&lt;P&gt;If this is part of a dashboard search, then you could use the tokens from your time selector, e.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup count.csv where _time&amp;gt;=$timerange.earliest$ AND _time&amp;lt;=$timerange.latest$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 04:04:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlook/m-p/567577#M197816</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-09-20T04:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: inputlook</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlook/m-p/567580#M197817</link>
      <description>&lt;P&gt;I don't quite understand - what exactly does your lookup contain? Can you provide us with a sample? We already have desired output but we don't know the input.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 05:04:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlook/m-p/567580#M197817</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-09-20T05:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: inputlook</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlook/m-p/567663#M197840</link>
      <description>&lt;DIV class="lia-message-author-with-avatar"&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Champion lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;Hi bowesmana,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Champion lia-component-message-view-widget-author-username"&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Champion lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;&amp;nbsp;How can I use&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;| where _time&amp;gt;=info_min_time AND _time&amp;lt;=info_max_time&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;to only display data from last 7 days (one week) if inputlook does not accept earliest and latest?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Sep 2021 13:22:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlook/m-p/567663#M197840</guid>
      <dc:creator>kishan2356</dc:creator>
      <dc:date>2021-09-20T13:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: inputlook</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlook/m-p/567666#M197842</link>
      <description>&lt;P&gt;The lookup only contains counts as seen in the table I have in the original post. My problem is I can't use earliest and latest commands to view historical data week by week.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 13:32:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlook/m-p/567666#M197842</guid>
      <dc:creator>kishan2356</dc:creator>
      <dc:date>2021-09-20T13:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: inputlook</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlook/m-p/567680#M197851</link>
      <description>&lt;P&gt;I still don't understand what are the raw contents of the lookup. Anyway, doesn't ( | inputlookup | where _time&amp;lt;=something AND _time&amp;gt;=something) work?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 14:43:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlook/m-p/567680#M197851</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-09-20T14:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: inputlook</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlook/m-p/567754#M197869</link>
      <description>&lt;P&gt;Your original post implied the lookup contained _time as a field. If you do not have a time field in your lookup then you can't filter by time. If you have a field called _time in your lookup, then do as I suggest in my previous post. There is a 3rd option which will make a fixed 7 day test (again assuming you have a time field in your lookup)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup count.csv
| where _time&amp;gt;=relative_time(now(), "-7d@d") AND _time&amp;lt;=now()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 22:03:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlook/m-p/567754#M197869</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-09-20T22:03:27Z</dc:date>
    </item>
  </channel>
</rss>

