<?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: Compare the values from two fields ( one is from a lookup) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Compare-the-values-from-two-fields-one-is-from-a-lookup/m-p/522063#M147195</link>
    <description>&lt;P&gt;Try logon country in single quotes (as it is a field name) and remove double quotes from Country since it is also a field name (without spaces in)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where 'logon country' != Country&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 17:16:33 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2020-09-29T17:16:33Z</dc:date>
    <item>
      <title>Compare the values from two fields ( one is from a lookup)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-the-values-from-two-fields-one-is-from-a-lookup/m-p/522047#M147187</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;Trying to build a query and struggling in "comparing" two fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially this is what i am trying to do&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) I have logs from our online email service which has the usual details ( time , source ip , email address and source logon country etc )&lt;/P&gt;&lt;P&gt;2) I have a lookup in Splunk with the common Active directory details ( name, title , country etc )&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i am trying to do is to get a search to show me the logons where the two Country fields dont match&amp;nbsp;&lt;/P&gt;&lt;P&gt;ex ( UserA logged on from Germany, his AD Details show the user is based in Germany therefore i dont want to know)&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what i have so far :&amp;nbsp;&lt;/P&gt;&lt;P&gt;index="email"&lt;BR /&gt;| lookup adusers Email AS Username OUTPUT DisplayName Title Country&lt;BR /&gt;| where "logon country" != "Country"&lt;BR /&gt;| table Username "Source IP" "logon country" DisplayName Title Country&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "Where" statement doesn't , any ideas on how to get this working ( if its possible of course) .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:45:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-the-values-from-two-fields-one-is-from-a-lookup/m-p/522047#M147187</guid>
      <dc:creator>ng87</dc:creator>
      <dc:date>2020-09-29T16:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Compare the values from two fields ( one is from a lookup)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-the-values-from-two-fields-one-is-from-a-lookup/m-p/522058#M147192</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/58984"&gt;@ng87&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;di you tried with "search" instead "where"?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:57:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-the-values-from-two-fields-one-is-from-a-lookup/m-p/522058#M147192</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-29T16:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Compare the values from two fields ( one is from a lookup)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-the-values-from-two-fields-one-is-from-a-lookup/m-p/522060#M147193</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Yes i tried the below :&lt;/P&gt;&lt;P&gt;|&lt;SPAN&gt;&amp;nbsp;search "logon country" != "Country"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Didn't work.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:01:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-the-values-from-two-fields-one-is-from-a-lookup/m-p/522060#M147193</guid>
      <dc:creator>ng87</dc:creator>
      <dc:date>2020-09-29T17:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Compare the values from two fields ( one is from a lookup)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-the-values-from-two-fields-one-is-from-a-lookup/m-p/522063#M147195</link>
      <description>&lt;P&gt;Try logon country in single quotes (as it is a field name) and remove double quotes from Country since it is also a field name (without spaces in)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where 'logon country' != Country&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:16:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-the-values-from-two-fields-one-is-from-a-lookup/m-p/522063#M147195</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-29T17:16:33Z</dc:date>
    </item>
  </channel>
</rss>

