<?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: Join two events and publish the fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Join-two-events-and-publish-the-fields/m-p/545052#M154346</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/46084"&gt;@rbachu1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Mar 2021 07:08:55 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2021-03-24T07:08:55Z</dc:date>
    <item>
      <title>Join two events and publish the fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-two-events-and-publish-the-fields/m-p/544588#M154248</link>
      <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two events like below on the same index though. I captured all fields through rex command but unable to join and publish the desired output. Kindly Help. Thank you&lt;/P&gt;&lt;P&gt;index=abc&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Event 1 : &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;caseStatus in update case :: CaseStatusToUpdate [caseId=12345, caseStatus=Active, timeStamp=Fri Mar 19 18:49:39 UTC 2021]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Event 2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;caseDetails :: [caseID=12345, type=Credit]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;Output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;caseID,&amp;nbsp;caseStatus,&amp;nbsp;type,&amp;nbsp;timeStamp&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 00:18:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-two-events-and-publish-the-fields/m-p/544588#M154248</guid>
      <dc:creator>rbachu1</dc:creator>
      <dc:date>2021-03-20T00:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Join two events and publish the fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-two-events-and-publish-the-fields/m-p/544600#M154251</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/46084"&gt;@rbachu1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the fields ara automatically extracted by Splunk because they are in the format field_name=field_value, but they have a different name, so to group them you have to rename one of them, then you can use the stats command to group them, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index
| rename caseId AS caseID
| stats values(caseStatus) AS caseStatus status(type) AS type values(timeStamp) AS timeStamp BY caseID&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 07:29:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-two-events-and-publish-the-fields/m-p/544600#M154251</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-20T07:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Join two events and publish the fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-two-events-and-publish-the-fields/m-p/544656#M154257</link>
      <description>&lt;P&gt;Thank you for the reply. However, I am not using splunk&amp;nbsp; field extractor for extracting fields, I am using rex command, I have captured caseID from both the events using rex commands. but I am stuck in joining them and publish the case status as per&amp;nbsp; caseID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 01:45:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-two-events-and-publish-the-fields/m-p/544656#M154257</guid>
      <dc:creator>rbachu1</dc:creator>
      <dc:date>2021-03-21T01:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Join two events and publish the fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-two-events-and-publish-the-fields/m-p/544671#M154258</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/46084"&gt;@rbachu1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you use two regexes to extract fields is easier because you have only to use the same fieldname in both field extraction, in few words: to group events you need the same fieldname.&lt;/P&gt;&lt;P&gt;Then the approach with stats is the correct one, did you tried it?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 07:04:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-two-events-and-publish-the-fields/m-p/544671#M154258</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-21T07:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Join two events and publish the fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-two-events-and-publish-the-fields/m-p/545023#M154339</link>
      <description>&lt;P&gt;Thank you, that helped. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 01:21:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-two-events-and-publish-the-fields/m-p/545023#M154339</guid>
      <dc:creator>rbachu1</dc:creator>
      <dc:date>2021-03-24T01:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Join two events and publish the fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-two-events-and-publish-the-fields/m-p/545052#M154346</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/46084"&gt;@rbachu1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 07:08:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-two-events-and-publish-the-fields/m-p/545052#M154346</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-24T07:08:55Z</dc:date>
    </item>
  </channel>
</rss>

