<?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 Combine multiple rows into comma separated single row ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-multiple-rows-into-comma-separated-single-row/m-p/299217#M90180</link>
    <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search giving field COLUMN
| stats list(COLUMN) as COLUMN delim="," | nomv COLUMN
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 17 May 2017 16:53:32 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-05-17T16:53:32Z</dc:date>
    <item>
      <title>How to Combine multiple rows into comma separated single row ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-multiple-rows-into-comma-separated-single-row/m-p/299215#M90178</link>
      <description>&lt;P&gt;Is it possible to combine multiple rows into one row ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;COLUMN
frow1
frow2
frow3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to something like  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;COLUMN
frow1,frow2,frow3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Mvcombine combined all the rows to one row but they are not comma separated. &lt;BR /&gt;
    |mvcombine delim="," COLUMN &lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 16:07:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-multiple-rows-into-comma-separated-single-row/m-p/299215#M90178</guid>
      <dc:creator>ibob0304</dc:creator>
      <dc:date>2017-05-17T16:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to Combine multiple rows into comma separated single row ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-multiple-rows-into-comma-separated-single-row/m-p/299216#M90179</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| eval COLUMN = frow1.", ".".frow2.", ".frow3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Using &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.0/SearchReference/Eval"&gt;eval&lt;/A&gt; and a '.' is one way.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| strcat frow1 ", " frow2 ", " frow3 COLUMN
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Using &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/strcat"&gt;stringcat&lt;/A&gt; is another. &lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 16:38:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-multiple-rows-into-comma-separated-single-row/m-p/299216#M90179</guid>
      <dc:creator>Simon1Dugdale1</dc:creator>
      <dc:date>2017-05-17T16:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to Combine multiple rows into comma separated single row ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-multiple-rows-into-comma-separated-single-row/m-p/299217#M90180</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search giving field COLUMN
| stats list(COLUMN) as COLUMN delim="," | nomv COLUMN
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 May 2017 16:53:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-multiple-rows-into-comma-separated-single-row/m-p/299217#M90180</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-17T16:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to Combine multiple rows into comma separated single row ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-multiple-rows-into-comma-separated-single-row/m-p/299218#M90181</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; |mvcombine delim="," COLUMN|   eval MYROW=mvjoin(COLUMN, ", ")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 May 2017 17:04:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-multiple-rows-into-comma-separated-single-row/m-p/299218#M90181</guid>
      <dc:creator>ibob0304</dc:creator>
      <dc:date>2017-05-17T17:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to Combine multiple rows into comma separated single row ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-multiple-rows-into-comma-separated-single-row/m-p/552873#M156933</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; a similar problem. I want to assign all the values to a token.&lt;/P&gt;&lt;P&gt;&amp;lt;condition label="All"&amp;gt;&lt;BR /&gt;&amp;lt;set token="Tok_all"&amp;gt;"All the values should be should be assigned here"&amp;lt;/set&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/condition&amp;gt;&lt;/P&gt;&lt;P&gt;also the values should be delimited with double quotes. (eg: "a","b","c")I tried a lot and i am not able to reach to the solution. do you have any solution for this?&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 06:18:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-multiple-rows-into-comma-separated-single-row/m-p/552873#M156933</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2021-05-25T06:18:04Z</dc:date>
    </item>
  </channel>
</rss>

