<?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: Comparing 2 fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Comparing-2-fields/m-p/91960#M182341</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;Probably you need to remove the domain part from the referrer field, as the uri doesn't include that part. Lets say:&lt;BR /&gt;
uri: /example/page.html&lt;BR /&gt;
referrer: &lt;A href="http://www.example.com/example/page.html"&gt;http://www.example.com/example/page.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2013 11:18:35 GMT</pubDate>
    <dc:creator>gfuente</dc:creator>
    <dc:date>2013-10-14T11:18:35Z</dc:date>
    <item>
      <title>Comparing 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-2-fields/m-p/91953#M182334</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I have 2 fields that are already extracted uri and referer. I want to right a search based on if &lt;BR /&gt;
uri value =referer value. I guess i have to use eval. Can you please give me syntax?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 04:11:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-2-fields/m-p/91953#M182334</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2013-10-10T04:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-2-fields/m-p/91954#M182335</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| eval yourfield=if(uri==referer,...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Oct 2013 06:28:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-2-fields/m-p/91954#M182335</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-10-10T06:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-2-fields/m-p/91955#M182336</link>
      <description>&lt;P&gt;Is that correct? Normally &lt;CODE&gt;eval&lt;/CODE&gt; is an assignment of a value to a field.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 08:43:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-2-fields/m-p/91955#M182336</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-10-10T08:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-2-fields/m-p/91956#M182337</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;... | where uri==referer | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 08:44:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-2-fields/m-p/91956#M182337</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-10-10T08:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-2-fields/m-p/91957#M182338</link>
      <description>&lt;P&gt;Oh! No, very much incorrect. Early morning - correcting.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 09:19:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-2-fields/m-p/91957#M182338</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-10-10T09:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-2-fields/m-p/91958#M182339</link>
      <description>&lt;P&gt;Actually i tried this but did not work. i am getting no results.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2013 01:17:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-2-fields/m-p/91958#M182339</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2013-10-14T01:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-2-fields/m-p/91959#M182340</link>
      <description>&lt;P&gt;That happens if uri is never equal to referer. Check your fields.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2013 06:20:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-2-fields/m-p/91959#M182340</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-10-14T06:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-2-fields/m-p/91960#M182341</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;Probably you need to remove the domain part from the referrer field, as the uri doesn't include that part. Lets say:&lt;BR /&gt;
uri: /example/page.html&lt;BR /&gt;
referrer: &lt;A href="http://www.example.com/example/page.html"&gt;http://www.example.com/example/page.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2013 11:18:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-2-fields/m-p/91960#M182341</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2013-10-14T11:18:35Z</dc:date>
    </item>
  </channel>
</rss>

