<?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: Eval Time_Diff in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Eval-Time-Diff/m-p/482248#M143328</link>
    <description>&lt;P&gt;Is &lt;CODE&gt;date_time&lt;/CODE&gt; epoch?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2020 21:01:39 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-02-24T21:01:39Z</dc:date>
    <item>
      <title>Eval Time_Diff</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Eval-Time-Diff/m-p/482247#M143327</link>
      <description>&lt;P&gt;I am having trouble getting a result to appear for the below query.  I am trying to produce a column showing time_diff of the lastest timestamp result for lane_RFID subtracted from the time now.  The table doesn't show a result for time_diff, but everything else shows properly.  Hopefully it is something easy.  Thank you.&lt;/P&gt;

&lt;P&gt;index=*"RFID Message received for:" | stats latest(date_time) by LANE_RFID |  eval time_now=now() | eval time_now=strftime(time_now,"%Y/%m/%d %H:%M:%S") | eval time_diff=strftime(time_diff,"%M:%S") | eval time_diff=time_now-date_time| table LANE_RFID time_now latest(date_time) time_diff&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:24:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Eval-Time-Diff/m-p/482247#M143327</guid>
      <dc:creator>cglowjr</dc:creator>
      <dc:date>2020-09-30T04:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Eval Time_Diff</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Eval-Time-Diff/m-p/482248#M143328</link>
      <description>&lt;P&gt;Is &lt;CODE&gt;date_time&lt;/CODE&gt; epoch?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 21:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Eval-Time-Diff/m-p/482248#M143328</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-24T21:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Eval Time_Diff</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Eval-Time-Diff/m-p/482249#M143329</link>
      <description>&lt;P&gt;date_time is formatted 2020/02/24 16:14:34&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 21:23:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Eval-Time-Diff/m-p/482249#M143329</guid>
      <dc:creator>cglowjr</dc:creator>
      <dc:date>2020-02-24T21:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Eval Time_Diff</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Eval-Time-Diff/m-p/482250#M143330</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=*"RFID Message received for:" 
| stats latest(date_time) as  date_time by LANE_RFID 
| eval time_now=strftime(now(),"%Y/%m/%d %H:%M:%S")
| eval time_diff=now() - strptime(date_time,"%Y/%m/%d %H:%M:%S") 
| table LANE_RFID time_now date_time time_diff
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Feb 2020 22:30:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Eval-Time-Diff/m-p/482250#M143330</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-24T22:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Eval Time_Diff</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Eval-Time-Diff/m-p/482251#M143331</link>
      <description>&lt;P&gt;This works wonderfully!  Thank you so much!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 22:58:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Eval-Time-Diff/m-p/482251#M143331</guid>
      <dc:creator>cglowjr</dc:creator>
      <dc:date>2020-02-24T22:58:41Z</dc:date>
    </item>
  </channel>
</rss>

