<?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: Fields in different events in a table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-fields-in-different-events-in-a-table/m-p/620660#M215763</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238610"&gt;@Paul&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Please accept one answer for the other people of Community&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>Sat, 12 Nov 2022 17:14:13 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-11-12T17:14:13Z</dc:date>
    <item>
      <title>How to get fields in different events in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-fields-in-different-events-in-a-table/m-p/620648#M215760</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;
&lt;P&gt;I am trying to get fields from different events in the same table.&lt;/P&gt;
&lt;P&gt;I have two different events, and let's say they have these fields:&lt;/P&gt;
&lt;P&gt;First event:&lt;/P&gt;
&lt;P&gt;Field1 = A&lt;/P&gt;
&lt;P&gt;Field2 = B&lt;/P&gt;
&lt;P&gt;Second event:&lt;/P&gt;
&lt;P&gt;Field1 = A&lt;/P&gt;
&lt;P&gt;Field3 = C&lt;/P&gt;
&lt;P&gt;So if I run the following:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;index=whatever sourcetype=whatever | table Field1 Field2 Field3&lt;/P&gt;
&lt;P&gt;I get a table like such:&lt;/P&gt;
&lt;P&gt;Field1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Field2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Field3&lt;/P&gt;
&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B&lt;/P&gt;
&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to get the table to look like this, because Field1 is the same value:&lt;/P&gt;
&lt;P&gt;Field1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Field2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Field3&lt;/P&gt;
&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C&lt;/P&gt;
&lt;P&gt;Basically, I am trying to pull a value from one event where the message IDs or session IDs are unique, and have Splunk go find another event with matching message IDs, and grab a different value from that separate event and output it to the same row in a table so the values in the table correspond with their respective message IDs.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 13:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-fields-in-different-events-in-a-table/m-p/620648#M215760</guid>
      <dc:creator>Paul</dc:creator>
      <dc:date>2022-11-14T13:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Fields in different events in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-fields-in-different-events-in-a-table/m-p/620651#M215761</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238610"&gt;@Paul&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if the events com from the same index and have the same sourcetype, you have to group them using the stats command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=whatever sourcetype=whatever 
| stats values(Field2) AS Field2 values(Field3) AS Field3 BY Field1&lt;/LI-CODE&gt;&lt;P&gt;choosing the common field for the BY clause and using the values option to avoid the list replication.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2022 07:20:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-fields-in-different-events-in-a-table/m-p/620651#M215761</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-12T07:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fields in different events in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-fields-in-different-events-in-a-table/m-p/620655#M215762</link>
      <description>&lt;P&gt;It worked.&amp;nbsp; Thank you very much.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2022 12:23:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-fields-in-different-events-in-a-table/m-p/620655#M215762</guid>
      <dc:creator>Paul</dc:creator>
      <dc:date>2022-11-12T12:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Fields in different events in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-fields-in-different-events-in-a-table/m-p/620660#M215763</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238610"&gt;@Paul&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Please accept one answer for the other people of Community&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>Sat, 12 Nov 2022 17:14:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-fields-in-different-events-in-a-table/m-p/620660#M215763</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-12T17:14:13Z</dc:date>
    </item>
  </channel>
</rss>

