<?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 search field to multiple lookup fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Compare-search-field-to-multiple-lookup-fields/m-p/529556#M149570</link>
    <description>&lt;P&gt;I know this works, but can`t I do this within one command?&lt;BR /&gt;&lt;BR /&gt;It is stated in documentation that multiple fields can be included in the list.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Nov 2020 15:11:57 GMT</pubDate>
    <dc:creator>user2020dy</dc:creator>
    <dc:date>2020-11-16T15:11:57Z</dc:date>
    <item>
      <title>Compare search field to multiple lookup fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-search-field-to-multiple-lookup-fields/m-p/529268#M149452</link>
      <description>&lt;P&gt;I have field &lt;STRONG&gt;src_ip&lt;/STRONG&gt; in my data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My lookup fields:&lt;STRONG&gt; ip1,&amp;nbsp; ip2,&amp;nbsp; ip3, ip4,&amp;nbsp; user&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is to find matching pairs in&amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;src_ip&lt;/STRONG&gt;&lt;/EM&gt; and&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;ip1,&amp;nbsp; ip2,&amp;nbsp; ip3, ip4 &lt;/STRONG&gt;&lt;/EM&gt;and &lt;STRONG&gt;OUTPUT the name of user&lt;/STRONG&gt;, who this src_ip belongs to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do this?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 09:19:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-search-field-to-multiple-lookup-fields/m-p/529268#M149452</guid>
      <dc:creator>user2020dy</dc:creator>
      <dc:date>2020-11-13T09:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Compare search field to multiple lookup fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-search-field-to-multiple-lookup-fields/m-p/529318#M149479</link>
      <description>&lt;P&gt;You'll need to use multiple lookups to do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | lookup ip1 as src_ip output user
| lookup ip2 as src_ip outputnew user
| lookup ip3 as src_ip outputnew user
| lookup ip4 as src_ip outputnew user
...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 15:18:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-search-field-to-multiple-lookup-fields/m-p/529318#M149479</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-13T15:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Compare search field to multiple lookup fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-search-field-to-multiple-lookup-fields/m-p/529556#M149570</link>
      <description>&lt;P&gt;I know this works, but can`t I do this within one command?&lt;BR /&gt;&lt;BR /&gt;It is stated in documentation that multiple fields can be included in the list.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 15:11:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-search-field-to-multiple-lookup-fields/m-p/529556#M149570</guid>
      <dc:creator>user2020dy</dc:creator>
      <dc:date>2020-11-16T15:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Compare search field to multiple lookup fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-search-field-to-multiple-lookup-fields/m-p/529574#M149580</link>
      <description>&lt;P&gt;Yes, the lookup command supports multiple fields, but all of the fields are ANDd during the lookup.&amp;nbsp; The only way to do an OR is via multiple lookups.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 16:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-search-field-to-multiple-lookup-fields/m-p/529574#M149580</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-16T16:43:04Z</dc:date>
    </item>
  </channel>
</rss>

