<?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 Why is my lookup search returning error &amp;quot;All of the fields in the lookup table are specified as lookups, leaving no destination fields&amp;quot;? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-lookup-search-returning-error-quot-All-of-the-fields/m-p/281455#M84916</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I am a Splunk noob, and I am trying to make a lookup work. Specifically, I am creating a lookup table of IP addresses, which I then want to compare to my outbound firewall connections which target the IPs in the lookup.&lt;/P&gt;

&lt;P&gt;Sample from the lookup CSV (file named bad_guys.csv):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Mal_IPs,
12.34.56.78,
22.33.44.55,
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample Search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="cisco:asa" [lookup bad_guys.csv Mal_IPs as dest_ip]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I run this search, I get the following error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error in 'lookup' command: All of the fields in the lookup table are specified as lookups, leaving no destination fields.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Pretty sure I am doing something bone-headed, but can't seem to figure out what it is.  Any ideas?  Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2016 21:20:20 GMT</pubDate>
    <dc:creator>shanesmith30286</dc:creator>
    <dc:date>2016-12-14T21:20:20Z</dc:date>
    <item>
      <title>Why is my lookup search returning error "All of the fields in the lookup table are specified as lookups, leaving no destination fields"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-lookup-search-returning-error-quot-All-of-the-fields/m-p/281455#M84916</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I am a Splunk noob, and I am trying to make a lookup work. Specifically, I am creating a lookup table of IP addresses, which I then want to compare to my outbound firewall connections which target the IPs in the lookup.&lt;/P&gt;

&lt;P&gt;Sample from the lookup CSV (file named bad_guys.csv):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Mal_IPs,
12.34.56.78,
22.33.44.55,
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample Search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="cisco:asa" [lookup bad_guys.csv Mal_IPs as dest_ip]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I run this search, I get the following error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error in 'lookup' command: All of the fields in the lookup table are specified as lookups, leaving no destination fields.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Pretty sure I am doing something bone-headed, but can't seem to figure out what it is.  Any ideas?  Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 21:20:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-lookup-search-returning-error-quot-All-of-the-fields/m-p/281455#M84916</guid>
      <dc:creator>shanesmith30286</dc:creator>
      <dc:date>2016-12-14T21:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my lookup search returning error "All of the fields in the lookup table are specified as lookups, leaving no destination fields"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-lookup-search-returning-error-quot-All-of-the-fields/m-p/281456#M84917</link>
      <description>&lt;P&gt;Not a bone-headed question, there is a fix and what you did was what I started off doing as well.&lt;/P&gt;

&lt;P&gt;The challenge is that when using the lookup command with a lookup that has a single value in it, you need to have an OUTPUT defined otherwise, it does not have anything to show for the lookup that it performed.&lt;/P&gt;

&lt;P&gt;In your case,  &lt;CODE&gt;| lookup bad_guys.csv Mal_IPs as dest_ip OUTPUT Mal_IPs&lt;/CODE&gt; is what I would probably do.&lt;BR /&gt;&lt;BR /&gt;
Keep in mind, that will return all relevant rows in the search whether or not a match occurs.  The next line under my lookup would likely be &lt;CODE&gt;| search Mal_IPs=*&lt;/CODE&gt; which will just return values that have a Mal_IPs in it, those will be the matches.&lt;/P&gt;

&lt;P&gt;There are other ways of doing this as well but hopefully this gets you going in the right direction.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 13:07:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-lookup-search-returning-error-quot-All-of-the-fields/m-p/281456#M84917</guid>
      <dc:creator>jstoner_splunk</dc:creator>
      <dc:date>2017-10-05T13:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my lookup search returning error "All of the fields in the lookup table are specified as lookups, leaving no destination fields"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-lookup-search-returning-error-quot-All-of-the-fields/m-p/281457#M84918</link>
      <description>&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 22:26:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-lookup-search-returning-error-quot-All-of-the-fields/m-p/281457#M84918</guid>
      <dc:creator>MuhammadAbdelAa</dc:creator>
      <dc:date>2020-02-12T22:26:14Z</dc:date>
    </item>
  </channel>
</rss>

