<?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: Time difference in splunk in Splunk ITSI</title>
    <link>https://community.splunk.com/t5/Splunk-ITSI/Time-difference-in-splunk/m-p/479347#M1787</link>
    <description>&lt;P&gt;Hi @vijaya5,&lt;BR /&gt;
to calculate a difference of two dates/times, you have to transform them in epochtime (using strptime function) then you can caculate the difference:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval diff=strptime(time2,"%Y-%m-%d %H:%M:%S")-strptime(time1,"%Y-%m-%d %H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2020 13:51:17 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-02-26T13:51:17Z</dc:date>
    <item>
      <title>Time difference in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Time-difference-in-splunk/m-p/479346#M1786</link>
      <description>&lt;P&gt;I have time stamp like below format&lt;BR /&gt;2020-02-17 18:23:04&lt;/P&gt;
&lt;P&gt;and i woul like to calculate the differene between two such fields start an end times of an activity. which function i can use to get time difference if the time format is like above?.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 00:31:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Time-difference-in-splunk/m-p/479346#M1786</guid>
      <dc:creator>vijaya5</dc:creator>
      <dc:date>2020-06-07T00:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Time difference in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Time-difference-in-splunk/m-p/479347#M1787</link>
      <description>&lt;P&gt;Hi @vijaya5,&lt;BR /&gt;
to calculate a difference of two dates/times, you have to transform them in epochtime (using strptime function) then you can caculate the difference:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval diff=strptime(time2,"%Y-%m-%d %H:%M:%S")-strptime(time1,"%Y-%m-%d %H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 13:51:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Time-difference-in-splunk/m-p/479347#M1787</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-02-26T13:51:17Z</dc:date>
    </item>
  </channel>
</rss>

