<?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: Values function separator in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Values-function-separator/m-p/58633#M14368</link>
    <description>&lt;P&gt;I want to add a "comma" in my result&lt;/P&gt;

&lt;P&gt;host1,host2&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2013 09:54:23 GMT</pubDate>
    <dc:creator>ERICKWONG</dc:creator>
    <dc:date>2013-09-10T09:54:23Z</dc:date>
    <item>
      <title>Values function separator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Values-function-separator/m-p/58631#M14366</link>
      <description>&lt;P&gt;My query is the following&lt;BR /&gt;
index="_internal" | table host | stats values(host)&lt;/P&gt;

&lt;P&gt;output:&lt;BR /&gt;&lt;BR /&gt;
values(host)&lt;BR /&gt;&lt;BR /&gt;
host1&lt;BR /&gt;&lt;BR /&gt;
host2&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
I want the output is the following&lt;/P&gt;

&lt;P&gt;output:&lt;BR /&gt;&lt;BR /&gt;
values(host)&lt;BR /&gt;&lt;BR /&gt;
host1,&lt;BR /&gt;&lt;BR /&gt;
host2&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
Is there any method to do ?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2013 09:41:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Values-function-separator/m-p/58631#M14366</guid>
      <dc:creator>ERICKWONG</dc:creator>
      <dc:date>2013-09-10T09:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Values function separator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Values-function-separator/m-p/58632#M14367</link>
      <description>&lt;P&gt;The first row is a header row so it'd be misleading to put an actual field value there. You can rename the text in the header if you want:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | stats values(host) as someothername
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(I removed the table command in your search because you don't need it)&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2013 09:47:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Values-function-separator/m-p/58632#M14367</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-09-10T09:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Values function separator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Values-function-separator/m-p/58633#M14368</link>
      <description>&lt;P&gt;I want to add a "comma" in my result&lt;/P&gt;

&lt;P&gt;host1,host2&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2013 09:54:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Values-function-separator/m-p/58633#M14368</guid>
      <dc:creator>ERICKWONG</dc:creator>
      <dc:date>2013-09-10T09:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Values function separator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Values-function-separator/m-p/58634#M14369</link>
      <description>&lt;P&gt;I want to add a "comma" in my result&lt;/P&gt;

&lt;P&gt;host1,host2&lt;/P&gt;

&lt;P&gt;Is there any function to do?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2013 09:55:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Values-function-separator/m-p/58634#M14369</guid>
      <dc:creator>ERICKWONG</dc:creator>
      <dc:date>2013-09-10T09:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Values function separator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Values-function-separator/m-p/58635#M14370</link>
      <description>&lt;P&gt;So, you want to have one row of comma-separated values instead of separate ones? If so, you could do&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | stats values(host) as somename | eval somename=mvjoin(somename,",")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Sep 2013 10:30:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Values-function-separator/m-p/58635#M14370</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-09-10T10:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Values function separator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Values-function-separator/m-p/58636#M14371</link>
      <description>&lt;P&gt;index=_internal | stats values(host) as somename | eval somename=mvjoin(somename,",")&lt;/P&gt;

&lt;P&gt;It works@@, Thx~&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 01:32:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Values-function-separator/m-p/58636#M14371</guid>
      <dc:creator>ERICKWONG</dc:creator>
      <dc:date>2013-09-11T01:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Values function separator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Values-function-separator/m-p/58637#M14372</link>
      <description>&lt;P&gt;Is there any method to add a line break between?&lt;BR /&gt;
Not only a comma.&lt;/P&gt;

&lt;P&gt;output:&lt;BR /&gt;
host1,&lt;BR /&gt;
host2,&lt;BR /&gt;
host3&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 06:13:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Values-function-separator/m-p/58637#M14372</guid>
      <dc:creator>ERICKWONG</dc:creator>
      <dc:date>2013-09-11T06:13:30Z</dc:date>
    </item>
  </channel>
</rss>

