<?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 How do you calculate the difference between two date/time with seconds. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-date-time-with/m-p/530960#M149985</link>
    <description>&lt;P&gt;I am trying to calculate difference between two dates including seconds. But i am unable to find any logs.&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;My query&lt;/P&gt;&lt;P&gt;index=main source="&lt;A href="https://test.ticketing-tool.com/" target="_blank" rel="noopener"&gt;https://test.ticketing-tool.com/&lt;/A&gt;" dv_state=* dv_priority="4 - Low" number=SIR0010241 | dedup number |eval startTime=strptime(dv_opened_at,"%Y-%m-%d %H:%M:%S:%3N")&lt;BR /&gt;|eval endTime=strptime(dv_sys_updated_on,"%Y-%m-%d %H:%M:%S:%3N")&lt;BR /&gt;|eval TimeDiff=tostring((endTime-startTime),"duration")&lt;BR /&gt;|table dv_opened_at dv_sys_updated_on TimeDiff, number&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alexspunkshell_0-1606376006282.png" style="width: 727px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12070i21126953F142FCA1/image-dimensions/727x195?v=v2" width="727" height="195" role="button" title="alexspunkshell_0-1606376006282.png" alt="alexspunkshell_0-1606376006282.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410" target="_blank" rel="noopener"&gt;@soutamo&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168" target="_blank" rel="noopener"&gt;@ITWhisperer&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352" target="_blank" rel="noopener"&gt;@gcusello&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129407" target="_blank" rel="noopener"&gt;@thambisetty&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367" target="_blank" rel="noopener"&gt;@bowesmana&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/203121" target="_blank" rel="noopener"&gt;@DalJeanis&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Nov 2020 07:35:31 GMT</pubDate>
    <dc:creator>alexspunkshell</dc:creator>
    <dc:date>2020-11-26T07:35:31Z</dc:date>
    <item>
      <title>How do you calculate the difference between two date/time with seconds.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-date-time-with/m-p/530960#M149985</link>
      <description>&lt;P&gt;I am trying to calculate difference between two dates including seconds. But i am unable to find any logs.&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;My query&lt;/P&gt;&lt;P&gt;index=main source="&lt;A href="https://test.ticketing-tool.com/" target="_blank" rel="noopener"&gt;https://test.ticketing-tool.com/&lt;/A&gt;" dv_state=* dv_priority="4 - Low" number=SIR0010241 | dedup number |eval startTime=strptime(dv_opened_at,"%Y-%m-%d %H:%M:%S:%3N")&lt;BR /&gt;|eval endTime=strptime(dv_sys_updated_on,"%Y-%m-%d %H:%M:%S:%3N")&lt;BR /&gt;|eval TimeDiff=tostring((endTime-startTime),"duration")&lt;BR /&gt;|table dv_opened_at dv_sys_updated_on TimeDiff, number&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alexspunkshell_0-1606376006282.png" style="width: 727px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12070i21126953F142FCA1/image-dimensions/727x195?v=v2" width="727" height="195" role="button" title="alexspunkshell_0-1606376006282.png" alt="alexspunkshell_0-1606376006282.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410" target="_blank" rel="noopener"&gt;@soutamo&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168" target="_blank" rel="noopener"&gt;@ITWhisperer&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352" target="_blank" rel="noopener"&gt;@gcusello&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129407" target="_blank" rel="noopener"&gt;@thambisetty&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367" target="_blank" rel="noopener"&gt;@bowesmana&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/203121" target="_blank" rel="noopener"&gt;@DalJeanis&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 07:35:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-date-time-with/m-p/530960#M149985</guid>
      <dc:creator>alexspunkshell</dc:creator>
      <dc:date>2020-11-26T07:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the difference between two date/time with seconds.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-date-time-with/m-p/530961#M149986</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/126376"&gt;@alexspunkshell&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;check the format of your dates: you didn't shared a sample of your logs but, viewing your screenshot, it&amp;nbsp; seems that the format isn't the one you used, but&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%Y-%m-%d %H:%M:%S&lt;/LI-CODE&gt;&lt;P&gt;If you share a sample I could be more detailed.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 07:54:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-date-time-with/m-p/530961#M149986</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-11-26T07:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the difference between two date/time with seconds.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-date-time-with/m-p/530966#M149987</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=main source="https://test.ticketing-tool.com/" dv_state=* dv_priority="4 - Low" number=SIR0010241 | dedup number |eval startTime=strptime(dv_opened_at,"%Y/%m/%d %H:%M:%S")
|eval endTime=strptime(dv_sys_updated_on,"%Y/%m/%d %H:%M:%S")
|eval TimeDiff=tostring((endTime-startTime),"duration")
|table dv_opened_at dv_sys_updated_on TimeDiff, number&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 26 Nov 2020 08:21:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-date-time-with/m-p/530966#M149987</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-11-26T08:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the difference between two date/time with seconds.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-date-time-with/m-p/530971#M149988</link>
      <description>&lt;P&gt;I changed the format of Date, Month, Year and i am getting the result now. Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 08:45:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-date-time-with/m-p/530971#M149988</guid>
      <dc:creator>alexspunkshell</dc:creator>
      <dc:date>2020-11-26T08:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the difference between two date/time with seconds.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-date-time-with/m-p/530974#M149989</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/126376"&gt;@alexspunkshell&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you.&lt;/P&gt;&lt;P&gt;ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 09:05:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-difference-between-two-date-time-with/m-p/530974#M149989</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-11-26T09:05:29Z</dc:date>
    </item>
  </channel>
</rss>

