<?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 group by country and concatenate the cities into one row? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-by-country-and-concatenate-the-cities-into-one-row/m-p/314792#M160050</link>
    <description>&lt;P&gt;wow thanks I was doing stats by Country but not getting anywhere. Never heard of nomv command.&lt;BR /&gt;
Thank you so much.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jul 2017 19:36:57 GMT</pubDate>
    <dc:creator>maximusdm</dc:creator>
    <dc:date>2017-07-17T19:36:57Z</dc:date>
    <item>
      <title>How to group by country and concatenate the cities into one row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-by-country-and-concatenate-the-cities-into-one-row/m-p/314790#M160048</link>
      <description>&lt;P&gt;giving the folowing scenario:&lt;/P&gt;

&lt;P&gt;...&lt;BR /&gt;
| table Country City Population&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt;     Country       City        Population
&amp;gt;     Spain     Madrid      2,456,000
&amp;gt;     Spain     Barcelona   3,222,000
&amp;gt;     Spain     Valencia    1,111,000
&amp;gt;     England       London      9,222,000
&amp;gt;     England       Oxford      1,211,000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I display the same results but grouping by Country and concatenating the cities and population?&lt;BR /&gt;
Something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Spain   Madrid(2,456,000), Barcelona(3,222,000), Valencia(1,111,000)
England London(9,222,000), Oxford(1,211,000)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks for the help&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 19:07:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-by-country-and-concatenate-the-cities-into-one-row/m-p/314790#M160048</guid>
      <dc:creator>maximusdm</dc:creator>
      <dc:date>2017-07-17T19:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to group by country and concatenate the cities into one row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-by-country-and-concatenate-the-cities-into-one-row/m-p/314791#M160049</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | table Country City Population
| eval Population=City."(".Population.")"
| stats values(Population) as Population by Country delim=","
| nomv Population
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jul 2017 19:10:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-by-country-and-concatenate-the-cities-into-one-row/m-p/314791#M160049</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-07-17T19:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to group by country and concatenate the cities into one row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-by-country-and-concatenate-the-cities-into-one-row/m-p/314792#M160050</link>
      <description>&lt;P&gt;wow thanks I was doing stats by Country but not getting anywhere. Never heard of nomv command.&lt;BR /&gt;
Thank you so much.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 19:36:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-by-country-and-concatenate-the-cities-into-one-row/m-p/314792#M160050</guid>
      <dc:creator>maximusdm</dc:creator>
      <dc:date>2017-07-17T19:36:57Z</dc:date>
    </item>
  </channel>
</rss>

