<?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 fetch and compare unique id's from different events in Splunk query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-and-compare-unique-id-s-from-different-events-in/m-p/565646#M197100</link>
    <description>&lt;P&gt;I can able to query the 'correlationId' and do stats on it.&amp;nbsp; But how can I match these 'correlationId's which are having 'START' and 'END' status.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Sep 2021 10:06:20 GMT</pubDate>
    <dc:creator>rkishoreqa</dc:creator>
    <dc:date>2021-09-02T10:06:20Z</dc:date>
    <item>
      <title>How to fetch and compare unique id's from different events in Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-and-compare-unique-id-s-from-different-events-in/m-p/565522#M197050</link>
      <description>&lt;P&gt;Hi team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a query to fetch a unique id from different events which are having different statuses.&amp;nbsp; If two log events are having same unique id and with status="START" &amp;amp; status="END" then that application has completed 1 success iteration or else it should be error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created one query can't understand how to compare the 'correlationId' from different events.&amp;nbsp; Can anyone please help with the query to&amp;nbsp;compare the 'correlationId' from different events along with below query.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp; index="dev" | rex "\"Status\\\\\"\s:\s\\\\\"(?&amp;lt;Status&amp;gt;[^\\\]+)" | stats count by applicationName,Status|where Status in("START","END")&lt;/P&gt;&lt;P&gt;Below are the logs for 'Start' &amp;amp; 'End' events.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;log: [2021-09-01 04:14:10.216] INFO api [[PythonRuntime].uber.12772: [tyt-autoencoding-dev].get-terms-from-oc/processors/1.ps.BLOCKING @f089563] [event: 80961137-6734-4f7f-8750-3d27cdf2a4eb]: {&lt;BR /&gt;"correlationId" : "80961137-6734-4f7f-8750-3d27cdf2a4eb",&lt;BR /&gt;"Status" : "START",&lt;BR /&gt;"priority" : "INFO",&lt;BR /&gt;"category" : "com.tayota.api",&lt;BR /&gt;"elapsed" : 0,&lt;BR /&gt;"timestamp" : "2021-09-01T04:14:10.215Z",&lt;BR /&gt;"applicationName" : "Toyato Encoding API",&lt;BR /&gt;"applicationVersion" : "v1",&lt;BR /&gt;"environment" : "Development",&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;log: [2021-09-01 04:14:10.216] INFO api [[PythonRuntime].uber.12772: [tyt-autoencoding-dev].get-terms-from-oc/processors/1.ps.BLOCKING @f089563] [event: 80961137-6734-4f7f-8750-3d27cdf2a4eb]: {&lt;BR /&gt;"correlationId" : "80961137-6734-4f7f-8750-3d27cdf2a4eb",&lt;BR /&gt;"Status" : "END",&lt;BR /&gt;"priority" : "INFO",&lt;BR /&gt;"category" : "com.tayota.api",&lt;BR /&gt;"elapsed" : 0,&lt;BR /&gt;"timestamp" : "2021-09-01T04:14:10.215Z",&lt;BR /&gt;"applicationName" : "Toyato Encoding API",&lt;BR /&gt;"applicationVersion" : "v1",&lt;BR /&gt;"environment" : "Development",&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 16:44:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-and-compare-unique-id-s-from-different-events-in/m-p/565522#M197050</guid>
      <dc:creator>rkishoreqa</dc:creator>
      <dc:date>2021-09-01T16:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch and compare unique id's from different events in Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-and-compare-unique-id-s-from-different-events-in/m-p/565553#M197055</link>
      <description>&lt;P&gt;If you have correlation id extracted, you can do stats by correlation id to correlate events&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 20:47:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-and-compare-unique-id-s-from-different-events-in/m-p/565553#M197055</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-01T20:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch and compare unique id's from different events in Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-and-compare-unique-id-s-from-different-events-in/m-p/565646#M197100</link>
      <description>&lt;P&gt;I can able to query the 'correlationId' and do stats on it.&amp;nbsp; But how can I match these 'correlationId's which are having 'START' and 'END' status.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 10:06:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-and-compare-unique-id-s-from-different-events-in/m-p/565646#M197100</guid>
      <dc:creator>rkishoreqa</dc:creator>
      <dc:date>2021-09-02T10:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch and compare unique id's from different events in Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-and-compare-unique-id-s-from-different-events-in/m-p/565689#M197107</link>
      <description>&lt;P&gt;In other words,&amp;nbsp;&lt;BR /&gt;App : A1&lt;BR /&gt;Status : Start&lt;BR /&gt;correlationID :&amp;nbsp;&lt;SPAN&gt;"80961137-6734-4f7f-8750-3d27cdf2a4eb"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;App: A2&amp;nbsp;&lt;BR /&gt;Status: Start&amp;nbsp;&lt;BR /&gt;correlationID :&amp;nbsp;"64531137-6734-4f7f-8750-3d27cdf2a4qq",&lt;BR /&gt;&lt;BR /&gt;App: A2&amp;nbsp;&lt;BR /&gt;Status: End&amp;nbsp;&lt;BR /&gt;correlationID :&amp;nbsp;"64531137-6734-4f7f-8750-3d27cdf2a4qq",&lt;BR /&gt;&lt;BR /&gt;App : A1&lt;BR /&gt;Status : Start&lt;BR /&gt;correlationID :&amp;nbsp;"80961137-6734-4f7f-8750-3d27cdf2a4eb"&lt;BR /&gt;&lt;BR /&gt;Here the Apps A1,A2 having same correlationID's along with status 'START' &amp;amp; 'END; then we should consider it as 1 successful&amp;nbsp; instance completed.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Otherwise we need mark it as 1 failed instance.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Here I need the suggestion to build the query for this requirement.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 15:21:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-and-compare-unique-id-s-from-different-events-in/m-p/565689#M197107</guid>
      <dc:creator>rkishoreqa</dc:creator>
      <dc:date>2021-09-02T15:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch and compare unique id's from different events in Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-and-compare-unique-id-s-from-different-events-in/m-p/565776#M197145</link>
      <description>&lt;LI-CODE lang="markup"&gt;| stats values(Status) as Status by correlationId&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 03 Sep 2021 11:16:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-and-compare-unique-id-s-from-different-events-in/m-p/565776#M197145</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-03T11:16:05Z</dc:date>
    </item>
  </channel>
</rss>

