<?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: Where/Search clause does not work with lookup. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Where-Search-clause-does-not-work-with-lookup/m-p/667870#M229139</link>
    <description>&lt;P&gt;The fact that you are using eval is expected but does not help identify where the problem is,&amp;nbsp;&lt;SPAN&gt;please share your data (anonymised where appropriate).&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 12:38:04 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-11-08T12:38:04Z</dc:date>
    <item>
      <title>Where/Search clause does not work with lookup.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Where-Search-clause-does-not-work-with-lookup/m-p/667849#M229132</link>
      <description>&lt;P&gt;I am&amp;nbsp; having trouble comparing the columns age and expectedAge, where the column expectedAge is a result of a lookup table. I tried the comparison with "where" as well as "search" clauses. Neither of them worked. I just simply want to select the rows where age &amp;gt; expectedAge.&lt;BR /&gt;&lt;BR /&gt;Expected behaviour :&lt;/P&gt;&lt;P&gt;Return rows where the above mentioned condition is met.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actual behaviour :&lt;/P&gt;&lt;P&gt;Returns nothing.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval age=bla..bla..bla 
| lookup "expected_age_lookup" dummy_s as s OUTPUT expected_age
| fillnull value=777 expected_age
| rename expected_age as expectedAge
| search age &amp;gt; expectedAge
| convert ctime(dummy_Time) 
| table age,s,dummy_Time,expectedAge&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I remove the lines following (and including) the where/search clause, I see the results of the lookup.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How can I achieve this correctly ?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 11:30:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Where-Search-clause-does-not-work-with-lookup/m-p/667849#M229132</guid>
      <dc:creator>sherwin_r</dc:creator>
      <dc:date>2023-11-08T11:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Where/Search clause does not work with lookup.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Where-Search-clause-does-not-work-with-lookup/m-p/667851#M229133</link>
      <description>&lt;P&gt;The where command should work assuming your data is consistent with the condition, i.e. both fields hold numerics. If it is still not working, please share your data (anonymised where appropriate).&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 11:52:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Where-Search-clause-does-not-work-with-lookup/m-p/667851#M229133</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-08T11:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Where/Search clause does not work with lookup.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Where-Search-clause-does-not-work-with-lookup/m-p/667856#M229137</link>
      <description>&lt;P&gt;The data is complete in my case, because they are evaluated fields. One thing to note is that The column age is in a float format and expectedAge is in int format (Atleast looks like that).&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 12:14:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Where-Search-clause-does-not-work-with-lookup/m-p/667856#M229137</guid>
      <dc:creator>sherwin_r</dc:creator>
      <dc:date>2023-11-08T12:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Where/Search clause does not work with lookup.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Where-Search-clause-does-not-work-with-lookup/m-p/667870#M229139</link>
      <description>&lt;P&gt;The fact that you are using eval is expected but does not help identify where the problem is,&amp;nbsp;&lt;SPAN&gt;please share your data (anonymised where appropriate).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 12:38:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Where-Search-clause-does-not-work-with-lookup/m-p/667870#M229139</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-08T12:38:04Z</dc:date>
    </item>
  </channel>
</rss>

