<?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: How to get stats from different events? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-stats-from-different-events/m-p/429513#M122855</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index= caudit AND (eventName=505 OR eventName=507)
| streamstats count(eval("EventStreamData.response.verificationStatus"=PROCESSED)) AS sessionID BY EventStreamData.args.verificationId
| stats min(_time) AS start_time max(_time) AS end_time range(_time) AS duration BY EventStreamData.args.verificationId sessionID
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 27 Jan 2019 18:50:59 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-01-27T18:50:59Z</dc:date>
    <item>
      <title>How to get stats from different events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-stats-from-different-events/m-p/429512#M122854</link>
      <description>&lt;P&gt;How do i get different events names and same reference  ID stat time from one event and end time from one event and average for total time for span of time?&lt;/P&gt;

&lt;P&gt;eventName 505 (startTime) - ----507 with PROCESSED status(endtime) . total avarage time &lt;/P&gt;

&lt;P&gt;=================================================================&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Index= caudit eventName=505
|search "EventStreamData.args.verificationId"="8387be8f"
|EventStreamData.requestContext.eventStartTime=*

Index= caudit  eventName=507
|search "EventStreamData.args.verificationId"="8387be8f"
|EventStreamData.response.verificationStatus"=PROCESSED
|EventStreamData.requestContext.eventEndTime=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the result will be :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;start time.        End time .         average time 
12:00: 00            12.00: 30 .         .000000xxx
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 27 Jan 2019 17:59:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-stats-from-different-events/m-p/429512#M122854</guid>
      <dc:creator>vkari</dc:creator>
      <dc:date>2019-01-27T17:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get stats from different events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-stats-from-different-events/m-p/429513#M122855</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index= caudit AND (eventName=505 OR eventName=507)
| streamstats count(eval("EventStreamData.response.verificationStatus"=PROCESSED)) AS sessionID BY EventStreamData.args.verificationId
| stats min(_time) AS start_time max(_time) AS end_time range(_time) AS duration BY EventStreamData.args.verificationId sessionID
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 27 Jan 2019 18:50:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-stats-from-different-events/m-p/429513#M122855</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-01-27T18:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get stats from different events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-stats-from-different-events/m-p/429514#M122856</link>
      <description>&lt;P&gt;The query  won't work for me &lt;/P&gt;

&lt;P&gt;Here my business modal starts, eventName=505 reference ID will create  here from 505 "EventStreamData start time " and with the same reference ID some of the requests only going through eventName=507, here(507) verification status=PROCESSED then  "EventStreamData end time "  end time from here &lt;/P&gt;

&lt;P&gt;both starting times to end time average Time needs to be displayed  &lt;/P&gt;

&lt;P&gt;Index= caudit eventName=505&lt;BR /&gt;
 |search "EventStreamData.args.verificationId"="8387be8f"&lt;BR /&gt;
 |EventStreamData.requestContext.eventStartTime=*&lt;/P&gt;

&lt;P&gt;Index= caudit  eventName=507&lt;BR /&gt;
 |search "EventStreamData.args.verificationId"="8387be8f"&lt;BR /&gt;
 |EventStreamData.response.verificationStatus"=PROCESSED&lt;BR /&gt;
 |EventStreamData.requestContext.eventEndTime=*&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jan 2019 19:46:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-stats-from-different-events/m-p/429514#M122856</guid>
      <dc:creator>vkari</dc:creator>
      <dc:date>2019-01-27T19:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get stats from different events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-stats-from-different-events/m-p/429515#M122857</link>
      <description>&lt;P&gt;I gave you enough for you to craft a complete solution.  I cannot help you because you are mixing and matching things that do not make sense.  You cannot really have a start, end, and average time.  You need to be more clear about your example.  In any case, I think if you really think about my answer, it has everything that you need to do anything that you might like to do.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jan 2019 22:36:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-stats-from-different-events/m-p/429515#M122857</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-01-27T22:36:26Z</dc:date>
    </item>
  </channel>
</rss>

