<?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: Error in 'lookup' command: Must specify one or more lookup fields. in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566901#M8505</link>
    <description>&lt;P&gt;Rule is the field name.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Sep 2021 17:30:54 GMT</pubDate>
    <dc:creator>neelesh_tiwari</dc:creator>
    <dc:date>2021-09-13T17:30:54Z</dc:date>
    <item>
      <title>Error in 'lookup' command: Must specify one or more lookup fields.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566510#M8494</link>
      <description>&lt;P&gt;I have a lookup table with CVE listed which I dont want to be in our report so we have made the lookup table and adding it to the search&amp;nbsp;&lt;/P&gt;&lt;P&gt;| table Severity, "EC2 Instance ID", "EC2 Instance Name", "Rules Package", Rule, CreatedAt, Links, title, description, recommendation, numericSeverity | lookup ignore_cve.csv&lt;/P&gt;&lt;P&gt;But I am getting an error that "&amp;nbsp;Error in 'lookup' command: Must specify one or more lookup fields."&lt;/P&gt;&lt;P&gt;So Do I have add something else after&amp;nbsp;ignore_cve.csv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help.@lookup&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 18:59:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566510#M8494</guid>
      <dc:creator>neelesh_tiwari</dc:creator>
      <dc:date>2021-09-09T18:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'lookup' command: Must specify one or more lookup fields.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566517#M8496</link>
      <description>&lt;P&gt;You probably want something like&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=xyz NOT [ inputlookup ignore_cve.csv ] | table ....&lt;/LI-CODE&gt;&lt;P&gt;lookup is intended for 'translating' things, like key in, value out.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 19:24:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566517#M8496</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2021-09-09T19:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'lookup' command: Must specify one or more lookup fields.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566829#M8497</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199268"&gt;@s2_splunk&lt;/a&gt;&amp;nbsp;Thanks for your response and yes this is what I am looking for but seems one more error I am getting "&amp;nbsp;&lt;SPAN&gt;Error in 'table' command: Invalid argument: 'CVE Number"..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CVE Number is my column name and table with vulnerabilities which I dont want to be in my search.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Neelesh Tiwari&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 11:10:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566829#M8497</guid>
      <dc:creator>neelesh_tiwari</dc:creator>
      <dc:date>2021-09-13T11:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'lookup' command: Must specify one or more lookup fields.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566833#M8498</link>
      <description>&lt;P&gt;I have followed the below article.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-quot-Error-in-inputlookup-command-Invalid/m-p/227023" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-quot-Error-in-inputlookup-command-Invalid/m-p/227023&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Added this to my search :&lt;/P&gt;&lt;P&gt;NOT [|inputlookup ignore_cve.csv | fields CVE Number, DateAdded, Reason, CVSS Score]&lt;/P&gt;&lt;P&gt;But again getting this error :&amp;nbsp;&lt;SPAN&gt;Error in 'table' command: Invalid argument: 'DateAdded=2021-09-09'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 11:19:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566833#M8498</guid>
      <dc:creator>neelesh_tiwari</dc:creator>
      <dc:date>2021-09-13T11:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'lookup' command: Must specify one or more lookup fields.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566892#M8499</link>
      <description>&lt;P&gt;Try adding quotes to that field&amp;nbsp; "CVE Number" name or remove the space from the csv header? Without seeing the exact layout of your csv file and the current query, it's difficult to provide more advice. Maybe share header row and first couple of lines of your csv?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 16:33:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566892#M8499</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2021-09-13T16:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'lookup' command: Must specify one or more lookup fields.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566894#M8500</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neelesh_tiwari_0-1631551830486.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15969i753DC43BB7AEBC24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neelesh_tiwari_0-1631551830486.png" alt="neelesh_tiwari_0-1631551830486.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199268"&gt;@s2_splunk&lt;/a&gt;&amp;nbsp;here is the csv file for your reference and also I will try the suggestion, keep you updated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 16:51:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566894#M8500</guid>
      <dc:creator>neelesh_tiwari</dc:creator>
      <dc:date>2021-09-13T16:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'lookup' command: Must specify one or more lookup fields.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566896#M8501</link>
      <description>&lt;P&gt;I am sharing the query with you here so kindly advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`aws-inspector-findings` serviceAttributes.assessmentRunArn="*" `aws-inspector-rex-arn` | search (accountId="*") (region="*")| dedup arn| search (severity="*")| spath OUTPUT=agentId assetAttributes.agentId | where isnotnull(agentId)| eval CreatedAt=substr(createdAt, 1, 19) | join type="left" serviceAttributes.rulesPackageArn [search `aws-inspector-runs` arn="*" | dedup rulesPackages{}.arn | rename rulesPackages{}.arn as packageArn, rulesPackages{}.name as packageName| eval row=mvzip(packageArn, packageName, "|") | mvexpand row | rex field=row "(?&amp;lt;packageArn&amp;gt;.*?)\|(?&amp;lt;packageName&amp;gt;.*)" | table packageArn packageName | rename packageArn as "serviceAttributes.rulesPackageArn"]| rename packageName as "Rules Package"| eval Links = if(isnotnull(agentId), "&amp;lt;a id=topology_link&amp;gt;Show in Topology&amp;lt;/a&amp;gt; | &amp;lt;a id=ec2_link&amp;gt;Show Instance Details&amp;lt;/a&amp;gt;", "") | sort -numericSeverity | join agentId type="left" [search earliest=-1d `aws-description-resource((aws_account_id="*"), (region="*") , "*")` | rename id as agentId ] | rename severity as Severity, id as Rule, agentId as "EC2 Instance ID", tags.Name as "EC2 Instance Name"| fillnull value="N/A" | table Severity, "EC2 Instance ID", "EC2 Instance Name", "Rules Package", Rule, CreatedAt, Links, title, description, recommendation, numericSeverity | search NOT [|inputlookup ignore_cve.csv]&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 16:55:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566896#M8501</guid>
      <dc:creator>neelesh_tiwari</dc:creator>
      <dc:date>2021-09-13T16:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'lookup' command: Must specify one or more lookup fields.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566897#M8502</link>
      <description>&lt;P&gt;I have added this "&amp;nbsp;&lt;SPAN&gt;| search NOT [|inputlookup ignore_cve.csv]" but I am still getting all the CVE's which I dont want in my report.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 16:56:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566897#M8502</guid>
      <dc:creator>neelesh_tiwari</dc:creator>
      <dc:date>2021-09-13T16:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'lookup' command: Must specify one or more lookup fields.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566898#M8503</link>
      <description>&lt;P&gt;What field name from this search do you want to match against which field name in the lookup?&lt;/P&gt;&lt;P&gt;In general:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;yourSearchReturning &amp;lt;matchField&amp;gt;&amp;gt; NOT [| inputlookup lookupfile.csv | fields &amp;lt;fieldToMatch&amp;gt; | rename &amp;lt;fieldToMatch&amp;gt; as &amp;lt;matchField&amp;gt;] &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course you only have to rename if the field name in your event search is different from the one in the lookup file.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 17:14:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566898#M8503</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2021-09-13T17:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'lookup' command: Must specify one or more lookup fields.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566900#M8504</link>
      <description>&lt;P&gt;What is the field name of the CVE in your event results?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 17:25:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566900#M8504</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2021-09-13T17:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'lookup' command: Must specify one or more lookup fields.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566901#M8505</link>
      <description>&lt;P&gt;Rule is the field name.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 17:30:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566901#M8505</guid>
      <dc:creator>neelesh_tiwari</dc:creator>
      <dc:date>2021-09-13T17:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'lookup' command: Must specify one or more lookup fields.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566902#M8506</link>
      <description>&lt;P&gt;OK, so rename your field from the lookup to "Rule":&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;yourSearch&amp;gt; NOT [|inputlookup ignore_cve.csv | rename "CVE Number" as Rule | fields Rule]&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Sep 2021 17:39:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566902#M8506</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2021-09-13T17:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'lookup' command: Must specify one or more lookup fields.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566903#M8507</link>
      <description>&lt;P class="lia-align-left"&gt;I have used this query at the end of the search and it worked.&lt;/P&gt;&lt;P class="lia-align-left"&gt;| join type=left Rule [inputlookup ignore_cve.csv | eval flag="0"] | search NOT(flag=0) | where isnull(flag)&lt;/P&gt;&lt;P class="lia-align-left"&gt;I also tried your option which you have suggested and please find the result below.&lt;/P&gt;&lt;P class="lia-align-left"&gt;NOT [| inputlookup ignore_cve.csv | fields Rule | rename Rule as CVE] but I am still getting the error though I have used "CVE"&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 17:41:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566903#M8507</guid>
      <dc:creator>neelesh_tiwari</dc:creator>
      <dc:date>2021-09-13T17:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'lookup' command: Must specify one or more lookup fields.</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566904#M8508</link>
      <description>&lt;P&gt;You need to ensure that the inputlookup subsearch returns a field called "Rule", not CVE.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The field/column you want to match in your lookup is named "CVE Number", so you need to rename that to "Rule" for the NOT condition to work against your events.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NOT [|inputlookup ignore_cve.csv | rename "CVE Number" as Rule | fields Rule]&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Sep 2021 17:55:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Error-in-lookup-command-Must-specify-one-or-more-lookup-fields/m-p/566904#M8508</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2021-09-13T17:55:53Z</dc:date>
    </item>
  </channel>
</rss>

