<?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: calculate min and max time of event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/calculate-min-and-max-time-of-event/m-p/462693#M191464</link>
    <description>&lt;P&gt;Why don't you try using a command other than &lt;CODE&gt;transaction&lt;/CODE&gt; ?&lt;BR /&gt;
or extract &lt;CODE&gt;_time&lt;/CODE&gt; by using &lt;CODE&gt;rex&lt;/CODE&gt; again. &lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2020 09:27:48 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-05-27T09:27:48Z</dc:date>
    <item>
      <title>calculate min and max time of event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-min-and-max-time-of-event/m-p/462690#M191461</link>
      <description>&lt;P&gt;hello&lt;BR /&gt;
im trying to calculate min and max time of event (the time when the event started and when its ended)&lt;BR /&gt;
when im adding my calculation to the query im loosing the results of the rest of the query and getting only the result of the time calculation... &lt;BR /&gt;
what am i missing ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=prod eventtype="csm-messages-dhcpd-lpf-eth0-listening" OR eventtype="csm-messages-dhcpd-lpf-eth0-sending" OR eventtype="csm-messages-dhcpd-send-socket-fallback-net" OR eventtype="csm-messages-dhcpd-write-zero-leases" OR eventtype="csm-messages-dhcpd-eth1-nosubnet-declared"

| transaction maxpause=2s maxspan=1s maxevents=5
| stats first(_time) as min_time, last(_time) as max_time
| table _time,eventcount, eventtype, tail_id, kafka_uuid,min_time,max_time

| foreach eventtype
     [eval flag_eventtype=if(eventcount!=5,"no", "yes")]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 May 2020 08:21:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-min-and-max-time-of-event/m-p/462690#M191461</guid>
      <dc:creator>sarit_s</dc:creator>
      <dc:date>2020-05-27T08:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: calculate min and max time of event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-min-and-max-time-of-event/m-p/462691#M191462</link>
      <description>&lt;P&gt;&lt;CODE&gt;transaction&lt;/CODE&gt; has only one &lt;CODE&gt;_time&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 09:12:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-min-and-max-time-of-event/m-p/462691#M191462</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-27T09:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: calculate min and max time of event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-min-and-max-time-of-event/m-p/462692#M191463</link>
      <description>&lt;P&gt;so i can i do it differently ?&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 09:24:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-min-and-max-time-of-event/m-p/462692#M191463</guid>
      <dc:creator>sarit_s</dc:creator>
      <dc:date>2020-05-27T09:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: calculate min and max time of event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-min-and-max-time-of-event/m-p/462693#M191464</link>
      <description>&lt;P&gt;Why don't you try using a command other than &lt;CODE&gt;transaction&lt;/CODE&gt; ?&lt;BR /&gt;
or extract &lt;CODE&gt;_time&lt;/CODE&gt; by using &lt;CODE&gt;rex&lt;/CODE&gt; again. &lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 09:27:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-min-and-max-time-of-event/m-p/462693#M191464</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-27T09:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: calculate min and max time of event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-min-and-max-time-of-event/m-p/462694#M191465</link>
      <description>&lt;P&gt;im open to try, i just don't know what and how &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 09:31:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-min-and-max-time-of-event/m-p/462694#M191465</guid>
      <dc:creator>sarit_s</dc:creator>
      <dc:date>2020-05-27T09:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: calculate min and max time of event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-min-and-max-time-of-event/m-p/462695#M191466</link>
      <description>&lt;P&gt;check reference:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Search/Abouteventcorrelation"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Search/Abouteventcorrelation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 09:39:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-min-and-max-time-of-event/m-p/462695#M191466</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-27T09:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: calculate min and max time of event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-min-and-max-time-of-event/m-p/462696#M191467</link>
      <description>&lt;P&gt;it looks like using transaction is the right way.. so how can i use rex to extract _time ?&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 09:52:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-min-and-max-time-of-event/m-p/462696#M191467</guid>
      <dc:creator>sarit_s</dc:creator>
      <dc:date>2020-05-27T09:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: calculate min and max time of event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculate-min-and-max-time-of-event/m-p/462697#M191468</link>
      <description>&lt;P&gt;I don't know, check your log.&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 10:29:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculate-min-and-max-time-of-event/m-p/462697#M191468</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-27T10:29:02Z</dc:date>
    </item>
  </channel>
</rss>

