<?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 can I use the &amp;quot;where&amp;quot; function to find where the output will be only the last 24hrs of the results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-the-quot-where-quot-function-to-find-where-the/m-p/325017#M159909</link>
    <description>&lt;P&gt;Your are the man with the juice!!!&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2017 16:05:32 GMT</pubDate>
    <dc:creator>GHOST27</dc:creator>
    <dc:date>2017-07-25T16:05:32Z</dc:date>
    <item>
      <title>How can I use the "where" function to find where the output will be only the last 24hrs of the results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-the-quot-where-quot-function-to-find-where-the/m-p/325015#M159907</link>
      <description>&lt;P&gt;Ex: | where first_seen&amp;lt;"24h" or where first_seen="-1d" this is what I used but obviously it's wrong.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:01:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-the-quot-where-quot-function-to-find-where-the/m-p/325015#M159907</guid>
      <dc:creator>GHOST27</dc:creator>
      <dc:date>2020-09-29T15:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use the "where" function to find where the output will be only the last 24hrs of the results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-the-quot-where-quot-function-to-find-where-the/m-p/325016#M159908</link>
      <description>&lt;P&gt;You would need to make use of relative_time function in there. &lt;/P&gt;

&lt;P&gt;If first_seen is in epoch format, then try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;..| where first_seen&amp;gt;=relative_time(now(),"-24h")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If it's not in epoch, need to convert it to epoch to compare&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;..| where strptime(first_seen,"&amp;lt;&amp;lt;TimeFormatHere&amp;gt;&amp;gt;") &amp;gt;=relative_time(now(),"-24h")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Jul 2017 15:09:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-the-quot-where-quot-function-to-find-where-the/m-p/325016#M159908</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-07-25T15:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use the "where" function to find where the output will be only the last 24hrs of the results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-the-quot-where-quot-function-to-find-where-the/m-p/325017#M159909</link>
      <description>&lt;P&gt;Your are the man with the juice!!!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 16:05:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-the-quot-where-quot-function-to-find-where-the/m-p/325017#M159909</guid>
      <dc:creator>GHOST27</dc:creator>
      <dc:date>2017-07-25T16:05:32Z</dc:date>
    </item>
  </channel>
</rss>

