<?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: Two fields (same value), fill in third field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Two-fields-same-value-fill-in-third-field/m-p/372584#M162976</link>
    <description>&lt;P&gt;How are the values &lt;CODE&gt;NT1&lt;/CODE&gt; and &lt;CODE&gt;NT2&lt;/CODE&gt; determined for the last two events in your example output? &lt;/P&gt;</description>
    <pubDate>Sun, 11 Feb 2018 16:59:58 GMT</pubDate>
    <dc:creator>micahkemp</dc:creator>
    <dc:date>2018-02-11T16:59:58Z</dc:date>
    <item>
      <title>Two fields (same value), fill in third field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-fields-same-value-fill-in-third-field/m-p/372583#M162975</link>
      <description>&lt;P&gt;My dataset has three fields from two different data sources. Two fields are identical (hostnames with different field names). One dataset has a third field that I would like to fill in. Example:&lt;/P&gt;

&lt;P&gt;sourcetype .   hostname1   computer1 .   domain&lt;BR /&gt;
source1 .         host1 .                                    NT1&lt;BR /&gt;
source1 .         host2                                      NT2&lt;BR /&gt;
source2                                   host1&lt;BR /&gt;
source2                                   host2&lt;/P&gt;

&lt;P&gt;Want to it to be:&lt;/P&gt;

&lt;P&gt;sourcetype .   hostname1   computer1 .   domain&lt;BR /&gt;
source1 .         host1 .              host1            NT1&lt;BR /&gt;
source1 .         host2                host2            NT2&lt;BR /&gt;
source2           host1                host1            NT1&lt;BR /&gt;
source2           host2                host2 .          NT2&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2018 06:21:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-fields-same-value-fill-in-third-field/m-p/372583#M162975</guid>
      <dc:creator>rocarril</dc:creator>
      <dc:date>2018-02-11T06:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Two fields (same value), fill in third field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-fields-same-value-fill-in-third-field/m-p/372584#M162976</link>
      <description>&lt;P&gt;How are the values &lt;CODE&gt;NT1&lt;/CODE&gt; and &lt;CODE&gt;NT2&lt;/CODE&gt; determined for the last two events in your example output? &lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2018 16:59:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-fields-same-value-fill-in-third-field/m-p/372584#M162976</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-11T16:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Two fields (same value), fill in third field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-fields-same-value-fill-in-third-field/m-p/372585#M162977</link>
      <description>&lt;P&gt;| eval Domain=case(&lt;BR /&gt;
    hostname1="host1" AND computername1="host1",  "NT1", &lt;BR /&gt;
    hostname1="host2" AND computername1="host2",  "NT2") &lt;/P&gt;

&lt;P&gt;Same can achieve via lookup if you have large no of values to be created.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 05:14:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-fields-same-value-fill-in-third-field/m-p/372585#M162977</guid>
      <dc:creator>Kwip</dc:creator>
      <dc:date>2018-02-12T05:14:13Z</dc:date>
    </item>
  </channel>
</rss>

