<?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 I make transaction if the start_time and end_time fields has time value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-transaction-if-the-start-time-and-end-time-fields/m-p/171333#M49066</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Let me ask this simple question. &lt;BR /&gt;
I have following two fields; start_time and end_time.&lt;BR /&gt;
I would like to calculate the duration time by using these two fields.&lt;BR /&gt;
In my understanding, if I want to use transaction startswith= endswith=, I need to specify the value like startswith="login" endswith="logout", that way I can get duration. &lt;BR /&gt;
In my case, however, each fields has specific time value, so if I want to calculate the duration between start_time and end_time, how do I do that?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 15:26:44 GMT</pubDate>
    <dc:creator>appleman</dc:creator>
    <dc:date>2020-09-28T15:26:44Z</dc:date>
    <item>
      <title>How do I make transaction if the start_time and end_time fields has time value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-transaction-if-the-start-time-and-end-time-fields/m-p/171333#M49066</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Let me ask this simple question. &lt;BR /&gt;
I have following two fields; start_time and end_time.&lt;BR /&gt;
I would like to calculate the duration time by using these two fields.&lt;BR /&gt;
In my understanding, if I want to use transaction startswith= endswith=, I need to specify the value like startswith="login" endswith="logout", that way I can get duration. &lt;BR /&gt;
In my case, however, each fields has specific time value, so if I want to calculate the duration between start_time and end_time, how do I do that?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:26:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-transaction-if-the-start-time-and-end-time-fields/m-p/171333#M49066</guid>
      <dc:creator>appleman</dc:creator>
      <dc:date>2020-09-28T15:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make transaction if the start_time and end_time fields has time value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-transaction-if-the-start-time-and-end-time-fields/m-p/171334#M49067</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;... | eval diff=end_time-start_time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2013 07:04:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-transaction-if-the-start-time-and-end-time-fields/m-p/171334#M49067</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-12-09T07:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make transaction if the start_time and end_time fields has time value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-transaction-if-the-start-time-and-end-time-fields/m-p/171335#M49068</link>
      <description>&lt;P&gt;No, it didn't work.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2013 07:10:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-transaction-if-the-start-time-and-end-time-fields/m-p/171335#M49068</guid>
      <dc:creator>appleman</dc:creator>
      <dc:date>2013-12-09T07:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make transaction if the start_time and end_time fields has time value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-transaction-if-the-start-time-and-end-time-fields/m-p/171336#M49069</link>
      <description>&lt;P&gt;OK. You &lt;EM&gt;could&lt;/EM&gt; consider telling us a bit more about exactly what your events look like, the problem you're trying to solve, how things are not working, etc etc? Just putting it out there &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2013 07:12:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-transaction-if-the-start-time-and-end-time-fields/m-p/171336#M49069</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-12-09T07:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make transaction if the start_time and end_time fields has time value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-transaction-if-the-start-time-and-end-time-fields/m-p/171337#M49070</link>
      <description>&lt;P&gt;Well, for example, I have fields start_time=2013/11/26 20:28 and end_time=2013/11/26 20:35. These fields represent the time when a meeting starts and ends. I'd like to get the meeting time by search command like transaction(?), so in this case I expect to get "7min" as a result. Hope it helps you a bit to understand what I want to get.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:26:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-transaction-if-the-start-time-and-end-time-fields/m-p/171337#M49070</guid>
      <dc:creator>appleman</dc:creator>
      <dc:date>2020-09-28T15:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make transaction if the start_time and end_time fields has time value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-transaction-if-the-start-time-and-end-time-fields/m-p/171338#M49071</link>
      <description>&lt;P&gt;In that case wrap strptime() calls around the field names in Ayn's eval to parse the time into epoch time. Your formatting string might be "%Y/%m/%d %H:%M".&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2013 09:20:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-transaction-if-the-start-time-and-end-time-fields/m-p/171338#M49071</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-12-09T09:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make transaction if the start_time and end_time fields has time value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-transaction-if-the-start-time-and-end-time-fields/m-p/171339#M49072</link>
      <description>&lt;P&gt;strptime did work. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2013 09:49:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-transaction-if-the-start-time-and-end-time-fields/m-p/171339#M49072</guid>
      <dc:creator>appleman</dc:creator>
      <dc:date>2013-12-11T09:49:28Z</dc:date>
    </item>
  </channel>
</rss>

