<?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: Combining unique field values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Combining-unique-field-values/m-p/312294#M93524</link>
    <description>&lt;P&gt;Hello sahr&lt;/P&gt;

&lt;P&gt;Kindly check this similar question.&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/49394/merge-two-fields-into-one-field.html"&gt;https://answers.splunk.com/answers/49394/merge-two-fields-into-one-field.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope it helps!&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 20 Oct 2017 04:11:48 GMT</pubDate>
    <dc:creator>lloydknight</dc:creator>
    <dc:date>2017-10-20T04:11:48Z</dc:date>
    <item>
      <title>Combining unique field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combining-unique-field-values/m-p/312293#M93523</link>
      <description>&lt;P&gt;I have the following problem I would like to solve&lt;/P&gt;

&lt;P&gt;Numbers1        Numbers 2&lt;BR /&gt;
1                                 6&lt;BR /&gt;
2                                 7&lt;BR /&gt;
3                                 8&lt;BR /&gt;
4                                 9&lt;BR /&gt;
5                                 10 &lt;/P&gt;

&lt;P&gt;I want to concatenate so it will be like this&lt;BR /&gt;
Number_combined&lt;BR /&gt;
1&lt;BR /&gt;
2&lt;BR /&gt;
3&lt;BR /&gt;
4&lt;BR /&gt;
5&lt;BR /&gt;
6&lt;BR /&gt;
7&lt;BR /&gt;
8&lt;BR /&gt;
9&lt;BR /&gt;
10&lt;/P&gt;

&lt;P&gt;I have tried field aliases, mvjoin, coalescence, eval with the (.) but still can't seem to figure it out.&lt;/P&gt;

&lt;P&gt;Help please.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 03:15:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combining-unique-field-values/m-p/312293#M93523</guid>
      <dc:creator>sahr</dc:creator>
      <dc:date>2017-10-20T03:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Combining unique field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combining-unique-field-values/m-p/312294#M93524</link>
      <description>&lt;P&gt;Hello sahr&lt;/P&gt;

&lt;P&gt;Kindly check this similar question.&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/49394/merge-two-fields-into-one-field.html"&gt;https://answers.splunk.com/answers/49394/merge-two-fields-into-one-field.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope it helps!&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 04:11:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combining-unique-field-values/m-p/312294#M93524</guid>
      <dc:creator>lloydknight</dc:creator>
      <dc:date>2017-10-20T04:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Combining unique field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combining-unique-field-values/m-p/312295#M93525</link>
      <description>&lt;P&gt;So I was able to solve it with the help of a good friend. I used |makeresults command to just test it.&lt;/P&gt;

&lt;P&gt;| makeresults &lt;BR /&gt;
| eval numbers=random() &lt;BR /&gt;
| eval numbers2=random() &lt;BR /&gt;
| eval numbers3=random() &lt;BR /&gt;
| fillnull value="" numbers numbers2 numbers3 &lt;BR /&gt;
| eval test=numbers.".".numbers2.".".numbers3 &lt;BR /&gt;
| eval testing=split(test,".")&lt;/P&gt;

&lt;P&gt;I used the random() function to just generate some random numbers&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;So imagine numbers 1=123&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;So imagine numbers 2=456&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;So imagine numbers 3=789&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;fillnull fills in the values from the fields we are using&lt;BR /&gt;
we eval to basically combine the fields&lt;BR /&gt;
then finally we split by the delimiter/separator(in this case ".") we used in our previous eval&lt;/P&gt;

&lt;P&gt;I hope I explained this well.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 04:12:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combining-unique-field-values/m-p/312295#M93525</guid>
      <dc:creator>sahr</dc:creator>
      <dc:date>2017-10-20T04:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Combining unique field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combining-unique-field-values/m-p/312296#M93526</link>
      <description>&lt;P&gt;Thanks a lot @lloydknight. I was able to figure it out using the same concept. I just missed a couple of steps. &lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Sahr&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 04:14:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combining-unique-field-values/m-p/312296#M93526</guid>
      <dc:creator>sahr</dc:creator>
      <dc:date>2017-10-20T04:14:19Z</dc:date>
    </item>
  </channel>
</rss>

