<?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: Splunk time difference showing as null in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-time-difference-showing-as-null/m-p/744522#M241268</link>
    <description>&lt;P&gt;Thanks for noticing it.&amp;nbsp;&lt;BR /&gt;Its my bad. its working as expected.&lt;/P&gt;</description>
    <pubDate>Sat, 19 Apr 2025 05:24:35 GMT</pubDate>
    <dc:creator>Das</dc:creator>
    <dc:date>2025-04-19T05:24:35Z</dc:date>
    <item>
      <title>Splunk time difference showing as null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-time-difference-showing-as-null/m-p/744520#M241266</link>
      <description>&lt;P&gt;I need to calculate time difference between start and end times. But I get the difference value as null. Not sure what I am missing.&lt;/P&gt;&lt;P&gt;Below is the sample query&lt;BR /&gt;| makeresults&lt;BR /&gt;| eval a="27 Mar 2025,02:14:11"&lt;BR /&gt;| eval b="27 Mar 2025,03:14:12"&lt;BR /&gt;| eval stime=strptime(a,"%d %b %Y,%H:%M:%S")&lt;BR /&gt;| eval etime=strptime(b,"%d %b %Y,%H:%M:%S")&lt;BR /&gt;| eval diff = eTime - sTime&lt;BR /&gt;| table a b stime etime diff&lt;BR /&gt;&lt;BR /&gt;I get the below result with diff value empty:&lt;/P&gt;&lt;P&gt;a b stime etime diff&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;27 Mar 2025,02:14:11&lt;/TD&gt;&lt;TD&gt;27 Mar 2025,03:14:12&lt;/TD&gt;&lt;TD&gt;1743041651.000000&lt;/TD&gt;&lt;TD&gt;1743045252.000000&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;Please help in identifying where I am going wrong&lt;/P&gt;</description>
      <pubDate>Sat, 19 Apr 2025 04:51:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-time-difference-showing-as-null/m-p/744520#M241266</guid>
      <dc:creator>Das</dc:creator>
      <dc:date>2025-04-19T04:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk time difference showing as null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-time-difference-showing-as-null/m-p/744521#M241267</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Please help in identifying where I am going wrong&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How about spelling error?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval a="27 Mar 2025,02:14:11"
| eval b="27 Mar 2025,03:14:12"
| eval stime=strptime(a,"%d %b %Y,%H:%M:%S")
| eval etime=strptime(b,"%d %b %Y,%H:%M:%S")
| eval diff = etime - stime
| table a b stime etime diff&lt;/LI-CODE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD&gt;stime&lt;/TD&gt;&lt;TD&gt;etime&lt;/TD&gt;&lt;TD&gt;diff&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;27 Mar 2025,02:14:11&lt;/TD&gt;&lt;TD&gt;27 Mar 2025,03:14:12&lt;/TD&gt;&lt;TD&gt;1743066851.000000&lt;/TD&gt;&lt;TD&gt;1743070452.000000&lt;/TD&gt;&lt;TD&gt;3601.000000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sat, 19 Apr 2025 05:19:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-time-difference-showing-as-null/m-p/744521#M241267</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2025-04-19T05:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk time difference showing as null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-time-difference-showing-as-null/m-p/744522#M241268</link>
      <description>&lt;P&gt;Thanks for noticing it.&amp;nbsp;&lt;BR /&gt;Its my bad. its working as expected.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Apr 2025 05:24:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-time-difference-showing-as-null/m-p/744522#M241268</guid>
      <dc:creator>Das</dc:creator>
      <dc:date>2025-04-19T05:24:35Z</dc:date>
    </item>
  </channel>
</rss>

