<?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: Lookup/Inputlookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Inputlookup/m-p/431108#M123230</link>
    <description>&lt;P&gt;I have lookup named attacker_ip.csv which is having more then two fields clientIpAddress,status etc. I need to match filed "IP_Address" from my search events to the field "ClientIpAddress" in csv and return table of those events for which IP got matched&lt;/P&gt;

&lt;P&gt;My search is below-&lt;/P&gt;

&lt;P&gt;index=prod* sourcetype=log4j API_Client:* | eval Impersonator_Uuid=if(isnotnull(impersonatorUuid),impersonatorUuid,"NA") &lt;BR /&gt;
|inputlookup attacker_ip.csv clientIpAddress AS IP_Address &lt;/P&gt;

&lt;P&gt;which is not working..&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:17:03 GMT</pubDate>
    <dc:creator>rajuljain2605</dc:creator>
    <dc:date>2020-09-30T00:17:03Z</dc:date>
    <item>
      <title>Lookup/Inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Inputlookup/m-p/431106#M123228</link>
      <description>&lt;P&gt;I have run a search query in Splunk which return all the events contained "API call" initiated from some "IP_address" . I have one lookup attacker_ip.csv which contain blacklisted IP. I need to compare "IP_address" from search result to "attacker_ip" in attacker.csv. And print all the events for which "IP" matched.&lt;/P&gt;

&lt;P&gt;Please help...&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:16:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-Inputlookup/m-p/431106#M123228</guid>
      <dc:creator>rajuljain2605</dc:creator>
      <dc:date>2020-09-30T00:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup/Inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Inputlookup/m-p/431107#M123229</link>
      <description>&lt;P&gt;if you share the search and lookup headers, it would help. Also, in your lookup, always have atleast 2 columns, say, attacker_ip,status. The status can be whitelist (or valid etc..)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  index=yoursearch  IP_address=*  | inputlookup attacker_ip.csv  IP_address AS attacker_ip OUPUT status | where status=whitelist  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above will return matched results (IP matches between events and lookup)&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 14:00:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-Inputlookup/m-p/431107#M123229</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-04-25T14:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup/Inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Inputlookup/m-p/431108#M123230</link>
      <description>&lt;P&gt;I have lookup named attacker_ip.csv which is having more then two fields clientIpAddress,status etc. I need to match filed "IP_Address" from my search events to the field "ClientIpAddress" in csv and return table of those events for which IP got matched&lt;/P&gt;

&lt;P&gt;My search is below-&lt;/P&gt;

&lt;P&gt;index=prod* sourcetype=log4j API_Client:* | eval Impersonator_Uuid=if(isnotnull(impersonatorUuid),impersonatorUuid,"NA") &lt;BR /&gt;
|inputlookup attacker_ip.csv clientIpAddress AS IP_Address &lt;/P&gt;

&lt;P&gt;which is not working..&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:17:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-Inputlookup/m-p/431108#M123230</guid>
      <dc:creator>rajuljain2605</dc:creator>
      <dc:date>2020-09-30T00:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup/Inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Inputlookup/m-p/431109#M123231</link>
      <description>&lt;P&gt;if you run the search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=prod* sourcetype=log4j API_Client:* | eval Impersonator_Uuid=if(isnotnull(impersonatorUuid),impersonatorUuid,"NA")  | fillnull value="N/A" "IP_Address"  | stats count by "IP_Address" , are you seeing valid IPs? If so, then you can run index=prod* sourcetype=log4j API_Client:* "IP_Address"=* | eval Impersonator_Uuid=if(isnotnull(impersonatorUuid),impersonatorUuid,"NA") |inputlookup attacker_ip.csv ClientIpAddress AS "IP_Address"   it should give you matched results.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Pls note that the field names are case sensitive and assume no space between IP and _?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 08:43:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-Inputlookup/m-p/431109#M123231</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-04-26T08:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup/Inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Inputlookup/m-p/431110#M123232</link>
      <description>&lt;P&gt;@rajuljain2605,&lt;/P&gt;

&lt;P&gt;Try this search query:  &lt;CODE&gt;&amp;lt;query to get data from Splunk index&amp;gt; | search [| inputlookup attacker_ip.csv  | rename attacker_ip AS IP_address]&lt;/CODE&gt;.&lt;BR /&gt;
This query gives you all events where IP address is blacklisted in csv file.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2019 08:17:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-Inputlookup/m-p/431110#M123232</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-06-09T08:17:41Z</dc:date>
    </item>
  </channel>
</rss>

