<?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 fields that don't match. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Comparing-fields-that-don-t-match/m-p/31126#M6414</link>
    <description>&lt;P&gt;Use &lt;CODE&gt;where&lt;/CODE&gt; and match the first and last name with the email address.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | where !(match(lower(Email),lower(First)) OR match(lower(Email),lower(Last)))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 08 Dec 2011 07:57:09 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2011-12-08T07:57:09Z</dc:date>
    <item>
      <title>Comparing fields that don't match.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-fields-that-don-t-match/m-p/31125#M6413</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I've been trying to solve this one with various hints given here already (subsearch, use of eval, etc), but haven't found an approach that works...&lt;/P&gt;

&lt;P&gt;I have a list of email addresses, as well as the first name and last name of the account owner.&lt;/P&gt;

&lt;P&gt;I'm trying to build up a list of events/entries where neither the first nor the last name appears anywhere obvious in the email address itself.&lt;/P&gt;

&lt;P&gt;By using eval, it was easy enough to split the email account name from the domain, but, what's the best way to find the following:&lt;/P&gt;

&lt;PRE&gt;
First  Last      Email
----------------------------------------
Tom     Smith     tsmith@foo.com
Jane    Doe       yellowpony@blerp.edu
Bob     Jones     bobjo@morp.com
&lt;/PRE&gt;

&lt;P&gt;What I'd like to do is have only Jane Doe show up in a query, as only her address contains neither her first name or last name.&lt;/P&gt;

&lt;P&gt;Thanks for any suggestions!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2011 07:33:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-fields-that-don-t-match/m-p/31125#M6413</guid>
      <dc:creator>howyagoin</dc:creator>
      <dc:date>2011-12-08T07:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing fields that don't match.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-fields-that-don-t-match/m-p/31126#M6414</link>
      <description>&lt;P&gt;Use &lt;CODE&gt;where&lt;/CODE&gt; and match the first and last name with the email address.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | where !(match(lower(Email),lower(First)) OR match(lower(Email),lower(Last)))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Dec 2011 07:57:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-fields-that-don-t-match/m-p/31126#M6414</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-12-08T07:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing fields that don't match.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-fields-that-don-t-match/m-p/31127#M6415</link>
      <description>&lt;P&gt;D'OH, I had tried match, but didn't think about the lower() first.  Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2011 08:40:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-fields-that-don-t-match/m-p/31127#M6415</guid>
      <dc:creator>howyagoin</dc:creator>
      <dc:date>2011-12-08T08:40:58Z</dc:date>
    </item>
  </channel>
</rss>

