<?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: Lookup with range in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Lookup-with-range/m-p/378845#M6259</link>
    <description>&lt;P&gt;Your dashboard can use a time picker to set tokens for a time range, and then you use &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where _time&amp;gt;=$token_for_earliest$ AND _time&amp;lt;$token_for_latest$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can search around for more details in the docs (like the sample xml dashboards) and in answers like this one ...&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/591175/how-to-manipulate-a-timestamp-token-from-a-timesta.html"&gt;https://answers.splunk.com/answers/591175/how-to-manipulate-a-timestamp-token-from-a-timesta.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jul 2018 02:33:01 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2018-07-30T02:33:01Z</dc:date>
    <item>
      <title>Lookup with range</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Lookup-with-range/m-p/378843#M6257</link>
      <description>&lt;P&gt;Hello Splunk&lt;/P&gt;

&lt;P&gt;I will use lookup with earliest and latest like&lt;/P&gt;

&lt;P&gt;I configured time based lookup but that not work, So i use:&lt;/P&gt;

&lt;P&gt;earliest=relative_time(now(),"$time.earliest$") | where _time&amp;gt;earliest&lt;/P&gt;

&lt;P&gt;Do you konow a solution without relative time, because with relative time i have multiple condition in my dasboards ?&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jul 2018 17:38:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Lookup-with-range/m-p/378843#M6257</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2018-07-29T17:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup with range</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Lookup-with-range/m-p/378844#M6258</link>
      <description>&lt;P&gt;hello there,&lt;BR /&gt;
can you elaborate on your challenge? what is it exactly that you are trying to solve?&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jul 2018 20:01:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Lookup-with-range/m-p/378844#M6258</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-07-29T20:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup with range</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Lookup-with-range/m-p/378845#M6259</link>
      <description>&lt;P&gt;Your dashboard can use a time picker to set tokens for a time range, and then you use &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where _time&amp;gt;=$token_for_earliest$ AND _time&amp;lt;$token_for_latest$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can search around for more details in the docs (like the sample xml dashboards) and in answers like this one ...&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/591175/how-to-manipulate-a-timestamp-token-from-a-timesta.html"&gt;https://answers.splunk.com/answers/591175/how-to-manipulate-a-timestamp-token-from-a-timesta.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 02:33:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Lookup-with-range/m-p/378845#M6259</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-07-30T02:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup with range</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Lookup-with-range/m-p/378846#M6260</link>
      <description>&lt;P&gt;If I understand you correctly, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your Regular Search WITHOUT earliest AND latest here [|inputlook YourLookupContainingBOTHearliestANDlatest | table earliest latest]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Do note that both &lt;CODE&gt;earliest&lt;/CODE&gt; and &lt;CODE&gt;latest&lt;/CODE&gt; in the lookup must be &lt;CODE&gt;time_t&lt;/CODE&gt; integers (AKA &lt;CODE&gt;epoch&lt;/CODE&gt;).  If the format is anything else, you must convert them using &lt;CODE&gt;strptime&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 02:39:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Lookup-with-range/m-p/378846#M6260</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-07-30T02:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup with range</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Lookup-with-range/m-p/378847#M6261</link>
      <description>&lt;P&gt;@Tiskar - did you intend to close the question, or to accept one of the answers?   &lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 17:02:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Lookup-with-range/m-p/378847#M6261</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-07-31T17:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup with range</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Lookup-with-range/m-p/378848#M6262</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;

&lt;P&gt;But i alrady have a dashboard with time range picker, and i can't use | eval earliest_DB1 = strftime(@d, "%Y-%m-%d %H:%M:%S")&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 18:19:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Lookup-with-range/m-p/378848#M6262</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2018-07-31T18:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup with range</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Lookup-with-range/m-p/378849#M6263</link>
      <description>&lt;P&gt;So i less my solution with relative time with multiple conditions like:&lt;/P&gt;

&lt;P&gt;| eval earliest_DB1 = strptime(relative_time(now(), "@d"),.....)&lt;/P&gt;

&lt;P&gt;where _time&amp;gt;earliest&lt;/P&gt;

&lt;P&gt;Thnk youi can't accept my solution&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:46:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Lookup-with-range/m-p/378849#M6263</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2020-09-29T20:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup with range</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Lookup-with-range/m-p/378850#M6264</link>
      <description>&lt;P&gt;@TISKAR - I don't understand your comment.  If you join the Splunk Slack channel, and go to the #dashboards subchannel, someone may be able to talk you through what you need.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 21:36:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Lookup-with-range/m-p/378850#M6264</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-07-31T21:36:27Z</dc:date>
    </item>
  </channel>
</rss>

