<?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 join 2 rows to only be 1 row in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-2-rows-to-only-be-1-row/m-p/329201#M97988</link>
    <description>&lt;P&gt;hi hiroshisatoh, other skills are missing when i tried using stats first. i also used values and list but the results are not what i am expecting. can you suggest other? thank you,&lt;/P&gt;</description>
    <pubDate>Mon, 30 Oct 2017 06:04:14 GMT</pubDate>
    <dc:creator>mrccasi</dc:creator>
    <dc:date>2017-10-30T06:04:14Z</dc:date>
    <item>
      <title>How to join 2 rows to only be 1 row</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-2-rows-to-only-be-1-row/m-p/329199#M97986</link>
      <description>&lt;P&gt;Hi, How can I turn multiple rows into a single row? For example,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Name   Skill1  Skill2 Skill3
Shine Oracle
Shine          Java
Shine                 C#
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and result should be like this,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Name  Skill1 Skill2 Skill3
Shine Oracle Java   C#
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 05:48:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-2-rows-to-only-be-1-row/m-p/329199#M97986</guid>
      <dc:creator>mrccasi</dc:creator>
      <dc:date>2017-10-30T05:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to join 2 rows to only be 1 row</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-2-rows-to-only-be-1-row/m-p/329200#M97987</link>
      <description>&lt;P&gt;Try this!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(your search)|stats first(*) as * by Name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Oct 2017 05:53:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-2-rows-to-only-be-1-row/m-p/329200#M97987</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2017-10-30T05:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to join 2 rows to only be 1 row</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-2-rows-to-only-be-1-row/m-p/329201#M97988</link>
      <description>&lt;P&gt;hi hiroshisatoh, other skills are missing when i tried using stats first. i also used values and list but the results are not what i am expecting. can you suggest other? thank you,&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 06:04:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-2-rows-to-only-be-1-row/m-p/329201#M97988</guid>
      <dc:creator>mrccasi</dc:creator>
      <dc:date>2017-10-30T06:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to join 2 rows to only be 1 row</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-2-rows-to-only-be-1-row/m-p/329202#M97989</link>
      <description>&lt;P&gt;I think if you want only four columns in your result, just reframe the search from @HiroshiSatoh to&lt;/P&gt;

&lt;P&gt;index=main sourcetype=skill | stats values(skill1) as skill1,values(skill2) as skill2, values(skill3) as skill3 by Name&lt;/P&gt;

&lt;P&gt;This will return you the results as expected.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 06:38:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-2-rows-to-only-be-1-row/m-p/329202#M97989</guid>
      <dc:creator>hardikJsheth</dc:creator>
      <dc:date>2017-10-30T06:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to join 2 rows to only be 1 row</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-2-rows-to-only-be-1-row/m-p/329203#M97990</link>
      <description>&lt;P&gt;Thank you hardikJsheth for explanation.&lt;/P&gt;

&lt;P&gt;If you use wildcards(*), all fields are eligible.&lt;BR /&gt;
This setting is also possible.&lt;BR /&gt;&lt;BR /&gt;
ex.&lt;/P&gt;

&lt;P&gt;first(skill*) as skill* by Name&lt;/P&gt;

&lt;P&gt;Only the "first" one is displayed for first.&lt;BR /&gt;
"value" displays all values as multiline entries.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:26:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-2-rows-to-only-be-1-row/m-p/329203#M97990</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2020-09-29T16:26:43Z</dc:date>
    </item>
  </channel>
</rss>

