<?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 the output of 2 different fields into one single field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-output-of-2-different-fields-into-one-single/m-p/318085#M95167</link>
    <description>&lt;P&gt;If you always want the two fields to be combined, and they won't both be populated at once, you could make a field alias to rename field1 as field2 or vice versa. May be a slightly more useful/easy solution if it applies.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Mar 2018 20:03:05 GMT</pubDate>
    <dc:creator>justinw</dc:creator>
    <dc:date>2018-03-09T20:03:05Z</dc:date>
    <item>
      <title>How to combine the output of 2 different fields into one single field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-output-of-2-different-fields-into-one-single/m-p/318082#M95164</link>
      <description>&lt;P&gt;I have two fields I would like to combine into one field. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  field1      |    field2    |      combined field
1.    Bob                                      Bob
2.                   Jeff                     Jeff
3.                   Jack                     Jack
4.    Frank                                   Frank
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Only one field is ever populated at any one time so it is a bit redundant to have two fields that hold very similar information. These should just be combined into a single field.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 18:14:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-output-of-2-different-fields-into-one-single/m-p/318082#M95164</guid>
      <dc:creator>snix</dc:creator>
      <dc:date>2017-02-24T18:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine the output of 2 different fields into one single field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-output-of-2-different-fields-into-one-single/m-p/318083#M95165</link>
      <description>&lt;P&gt;Okay just found the answer on this post:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/432887/how-to-combine-common-fields-from-search-results-i.html?utm_source=typeahead&amp;amp;utm_medium=newquestion&amp;amp;utm_campaign=no_votes_sort_relev"&gt;https://answers.splunk.com/answers/432887/how-to-combine-common-fields-from-search-results-i.html?utm_source=typeahead&amp;amp;utm_medium=newquestion&amp;amp;utm_campaign=no_votes_sort_relev&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This is the line I needed to get the output I am looking for:&lt;BR /&gt;
&lt;CODE&gt;eval "New Field Name"=coalesce(field1,field2)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 18:19:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-output-of-2-different-fields-into-one-single/m-p/318083#M95165</guid>
      <dc:creator>snix</dc:creator>
      <dc:date>2017-02-24T18:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine the output of 2 different fields into one single field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-output-of-2-different-fields-into-one-single/m-p/318084#M95166</link>
      <description>&lt;P&gt;@snix - Glad you found the answer to your question. Please don't forget to "Accept" your answer to resolve this post so that others can easily find it, in case they run into the same type of problem. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 18:31:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-output-of-2-different-fields-into-one-single/m-p/318084#M95166</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-02-24T18:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine the output of 2 different fields into one single field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-output-of-2-different-fields-into-one-single/m-p/318085#M95167</link>
      <description>&lt;P&gt;If you always want the two fields to be combined, and they won't both be populated at once, you could make a field alias to rename field1 as field2 or vice versa. May be a slightly more useful/easy solution if it applies.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 20:03:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-output-of-2-different-fields-into-one-single/m-p/318085#M95167</guid>
      <dc:creator>justinw</dc:creator>
      <dc:date>2018-03-09T20:03:05Z</dc:date>
    </item>
  </channel>
</rss>

