<?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: Combine 2 fields to create a new field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Combine-2-fields-to-create-a-new-field/m-p/77173#M19519</link>
    <description>&lt;P&gt;Nice answer&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2017 19:28:30 GMT</pubDate>
    <dc:creator>ssrdc</dc:creator>
    <dc:date>2017-01-19T19:28:30Z</dc:date>
    <item>
      <title>Combine 2 fields to create a new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-2-fields-to-create-a-new-field/m-p/77169#M19515</link>
      <description>&lt;P&gt;I have a search that generates a list of IP addresses and usernames by time.  I'd like to dedup the value of ip address + username.  I cannot dedup just one (ip OR username) because the IP addresses get recycled and will get reassigned to another user.  &lt;/P&gt;

&lt;P&gt;Is it possible to combine my 2 fields (ip_address + username) to create a 3rd field that I can use for dedup purposes?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2010 00:18:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-2-fields-to-create-a-new-field/m-p/77169#M19515</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2010-10-26T00:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 fields to create a new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-2-fields-to-create-a-new-field/m-p/77170#M19516</link>
      <description>&lt;P&gt;You could concatenate the fields together:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search | eval new_field = field1."-".field2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;"-"&lt;/CODE&gt; in this example is a separator -- you can use anything (or nothing) there. To just concat the fields do &lt;CODE&gt;field1.field2&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2010 00:22:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-2-fields-to-create-a-new-field/m-p/77170#M19516</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2010-10-26T00:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 fields to create a new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-2-fields-to-create-a-new-field/m-p/77171#M19517</link>
      <description>&lt;P&gt;many thanks for this tip&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2012 09:16:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-2-fields-to-create-a-new-field/m-p/77171#M19517</guid>
      <dc:creator>aleem</dc:creator>
      <dc:date>2012-03-30T09:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 fields to create a new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-2-fields-to-create-a-new-field/m-p/77172#M19518</link>
      <description>&lt;P&gt;thanks a lot. this is really useful. i've got exactly what i wanted.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2013 06:09:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-2-fields-to-create-a-new-field/m-p/77172#M19518</guid>
      <dc:creator>labani</dc:creator>
      <dc:date>2013-07-03T06:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 fields to create a new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-2-fields-to-create-a-new-field/m-p/77173#M19519</link>
      <description>&lt;P&gt;Nice answer&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 19:28:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-2-fields-to-create-a-new-field/m-p/77173#M19519</guid>
      <dc:creator>ssrdc</dc:creator>
      <dc:date>2017-01-19T19:28:30Z</dc:date>
    </item>
  </channel>
</rss>

