<?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: Tabled _time - Find differences between each event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Tabled-time-Find-differences-between-each-event/m-p/121758#M32783</link>
    <description>&lt;P&gt;Yes. Exactly. I was too lazy to do that in my answer &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Sep 2014 20:20:25 GMT</pubDate>
    <dc:creator>sk314</dc:creator>
    <dc:date>2014-09-11T20:20:25Z</dc:date>
    <item>
      <title>Tabled _time - Find differences between each event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tabled-time-Find-differences-between-each-event/m-p/121755#M32780</link>
      <description>&lt;P&gt;I have a tabled results of _time. Each one is an event and I want to find a difference for each event and have the value in another field.&lt;/P&gt;

&lt;P&gt;index=&lt;INDEX_NAME&gt; sourcetype=&lt;SOURCETYPE_NAME&gt;  | convert timeformat="%Y-%m-%d %H:%M:%S:%3N" ctime(_time) AS c_time | table c_time&lt;/SOURCETYPE_NAME&gt;&lt;/INDEX_NAME&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;c_time
======
2014-09-11 00:56:24:677
2014-09-11 00:56:24:677
2014-09-11 00:56:24:676
2014-09-11 00:56:24:676
2014-09-11 00:56:24:676
2014-09-11 00:41:24:664
2014-09-11 00:41:24:664
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to be able to get the difference between each event and chart them by the c_time.&lt;/P&gt;

&lt;P&gt;What is the best possible way of achieving this?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:33:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tabled-time-Find-differences-between-each-event/m-p/121755#M32780</guid>
      <dc:creator>ben_leung</dc:creator>
      <dc:date>2020-09-28T17:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Tabled _time - Find differences between each event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tabled-time-Find-differences-between-each-event/m-p/121756#M32781</link>
      <description>&lt;P&gt;Try using the delta command like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;index_name&amp;gt; sourcetype=&amp;lt;sourcetype_name&amp;gt;  | convert timeformat="%Y-%m-%d %H:%M:%S:%3N" ctime(_time) AS c_time |delta c_time as time_difference | table c_time time_difference
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For more information: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Delta"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Delta&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2014 19:47:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tabled-time-Find-differences-between-each-event/m-p/121756#M32781</guid>
      <dc:creator>sk314</dc:creator>
      <dc:date>2014-09-11T19:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Tabled _time - Find differences between each event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tabled-time-Find-differences-between-each-event/m-p/121757#M32782</link>
      <description>&lt;P&gt;Thank you for the quick response, looks like I need to do more homework on this. All I have to do is convert the time_difference to a format that is human readable for users.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2014 20:00:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tabled-time-Find-differences-between-each-event/m-p/121757#M32782</guid>
      <dc:creator>ben_leung</dc:creator>
      <dc:date>2014-09-11T20:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Tabled _time - Find differences between each event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tabled-time-Find-differences-between-each-event/m-p/121758#M32783</link>
      <description>&lt;P&gt;Yes. Exactly. I was too lazy to do that in my answer &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2014 20:20:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tabled-time-Find-differences-between-each-event/m-p/121758#M32783</guid>
      <dc:creator>sk314</dc:creator>
      <dc:date>2014-09-11T20:20:25Z</dc:date>
    </item>
  </channel>
</rss>

