<?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: Does lookup command support OR Boolean operation? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Does-lookup-command-support-OR-Boolean-operation/m-p/286997#M86878</link>
    <description>&lt;P&gt;&lt;CODE&gt;lookup&lt;/CODE&gt; does not, but you may be able to achieve what you're looking for by using a KV Store instead.&lt;/P&gt;

&lt;P&gt;See this link for configuring a KV Store from a CSV file:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/Knowledge/ConfigureKVstorelookups"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.2/Knowledge/ConfigureKVstorelookups&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And see this link for examples of using a where clause with the KV Store (in the "Filters and queries" section):&lt;/P&gt;

&lt;P&gt;&lt;A href="http://dev.splunk.com/view/SP-CAAAEZH"&gt;http://dev.splunk.com/view/SP-CAAAEZH&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2016 13:49:54 GMT</pubDate>
    <dc:creator>kbarker302</dc:creator>
    <dc:date>2016-07-29T13:49:54Z</dc:date>
    <item>
      <title>Does lookup command support OR Boolean operation?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-lookup-command-support-OR-Boolean-operation/m-p/286996#M86877</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I have events in index 1 and I have lookup table 1 created from a CSV file. I want to lookup events from index 1 in lookup table 1 by following a hierarchical logic:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;lookup where tail number OR flight ID OR operator matches&lt;/LI&gt;
&lt;LI&gt;AND lookup where airport matches&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;My search currently looks like this and it works. Is there a way to simplify it so that one lookup checks tail number then flight id then operator?&lt;BR /&gt;
index=index1&lt;BR /&gt;
| lookup lookuptable1 id as tailNo airport as iataAirport OUTPUT start_date/time as start_date&lt;BR /&gt;
| lookup lookuptable1 id as flightId airport as iataAirport OUTPUTNEW start_date/time as start_date&lt;BR /&gt;
| lookup lookuptable1 id as operator airport as iataAirport OUTPUTNEW start_date/time as start_date&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:25:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-lookup-command-support-OR-Boolean-operation/m-p/286996#M86877</guid>
      <dc:creator>vpao</dc:creator>
      <dc:date>2020-09-29T10:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Does lookup command support OR Boolean operation?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-lookup-command-support-OR-Boolean-operation/m-p/286997#M86878</link>
      <description>&lt;P&gt;&lt;CODE&gt;lookup&lt;/CODE&gt; does not, but you may be able to achieve what you're looking for by using a KV Store instead.&lt;/P&gt;

&lt;P&gt;See this link for configuring a KV Store from a CSV file:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/Knowledge/ConfigureKVstorelookups"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.2/Knowledge/ConfigureKVstorelookups&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And see this link for examples of using a where clause with the KV Store (in the "Filters and queries" section):&lt;/P&gt;

&lt;P&gt;&lt;A href="http://dev.splunk.com/view/SP-CAAAEZH"&gt;http://dev.splunk.com/view/SP-CAAAEZH&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 13:49:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-lookup-command-support-OR-Boolean-operation/m-p/286997#M86878</guid>
      <dc:creator>kbarker302</dc:creator>
      <dc:date>2016-07-29T13:49:54Z</dc:date>
    </item>
  </channel>
</rss>

