<?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 do I get 1 row per value in a basic search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-1-row-per-value-in-a-basic-search/m-p/167972#M47880</link>
    <description>&lt;P&gt;++&lt;/P&gt;

&lt;P&gt;If all you want is to isolate the values of &lt;CODE&gt;randomField&lt;/CODE&gt;, then you simply need to pipe to &lt;CODE&gt;table&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=core host="hostname" elementType=ET1 | table randomField
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 04 Mar 2015 06:14:23 GMT</pubDate>
    <dc:creator>emiller42</dc:creator>
    <dc:date>2015-03-04T06:14:23Z</dc:date>
    <item>
      <title>How do I get 1 row per value in a basic search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-1-row-per-value-in-a-basic-search/m-p/167970#M47878</link>
      <description>&lt;P&gt;with the following search &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=core host="hostname" elementType=ET1 | stats values(randomField)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;my output looks something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;values(randomField)
117440512
117440515
117440516
117440517
117440519
117440520
117440521
117440530
117440531
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if i download this in the csv format it will all all appear in 2 rows. I want to be able to have the &lt;CODE&gt;values(randomField)&lt;/CODE&gt; on the 1st row and then 1 row per each subsequent value (e.g. &lt;CODE&gt;117440512&lt;/CODE&gt; on row 2, &lt;CODE&gt;117440515&lt;/CODE&gt; on row 3 ).&lt;/P&gt;

&lt;P&gt;How can i alter my search to achieve this?&lt;/P&gt;

&lt;P&gt;similar question asked &lt;A href="http://answers.splunk.com/answers/179955/convert-single-row-values-to-multiple-rows.html"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 02:35:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-1-row-per-value-in-a-basic-search/m-p/167970#M47878</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2015-03-04T02:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get 1 row per value in a basic search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-1-row-per-value-in-a-basic-search/m-p/167971#M47879</link>
      <description>&lt;P&gt;Is there any reason why you arent using the &lt;CODE&gt;table&lt;/CODE&gt; command with a &lt;CODE&gt;dedup&lt;/CODE&gt; following it?&lt;/P&gt;

&lt;P&gt;Using values will force it to create a multi value field with distinct values which will give the output on one line.&lt;BR /&gt;
Using table with dedup will give the unique output in individual rows&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 02:50:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-1-row-per-value-in-a-basic-search/m-p/167971#M47879</guid>
      <dc:creator>ramdaspr</dc:creator>
      <dc:date>2015-03-04T02:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get 1 row per value in a basic search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-1-row-per-value-in-a-basic-search/m-p/167972#M47880</link>
      <description>&lt;P&gt;++&lt;/P&gt;

&lt;P&gt;If all you want is to isolate the values of &lt;CODE&gt;randomField&lt;/CODE&gt;, then you simply need to pipe to &lt;CODE&gt;table&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=core host="hostname" elementType=ET1 | table randomField
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Mar 2015 06:14:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-1-row-per-value-in-a-basic-search/m-p/167972#M47880</guid>
      <dc:creator>emiller42</dc:creator>
      <dc:date>2015-03-04T06:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get 1 row per value in a basic search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-1-row-per-value-in-a-basic-search/m-p/167973#M47881</link>
      <description>&lt;P&gt;@ramdaspr tks &lt;CODE&gt;...| table randomField | dedup randomField&lt;/CODE&gt; this worked for me.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2015 01:30:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-1-row-per-value-in-a-basic-search/m-p/167973#M47881</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2015-03-06T01:30:28Z</dc:date>
    </item>
  </channel>
</rss>

