<?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 table matches and associated fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-table-matches-and-associated-fields/m-p/144440#M40189</link>
    <description>&lt;P&gt;Based on your search, I assume there is a field with name 'query' in your events.&lt;BR /&gt;
Try following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="firewall"  dst_ip OR scr_ip  NOT &lt;A href="https://community.splunk.com/www.google.com" target="test_blank"&gt;www.google.com&lt;/A&gt; |lookup bad_actors.csv query OUTPUT referringGroup attackType | where isnotnull(referreingGroup)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 Nov 2013 21:38:00 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2013-11-15T21:38:00Z</dc:date>
    <item>
      <title>Lookup table matches and associated fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-table-matches-and-associated-fields/m-p/144438#M40187</link>
      <description>&lt;P&gt;I have a rather large lookup table of IP addresses and domain names.  I keep adding to this list as we get advisories from various groups.  The list has gotten so large that I forget what some of them were for, so I have begun to place (in comma delimited form) referring group (aka FBI, SANS, etc.) and what type of attack it is a part of (pony, struts2, etc.).  My lookup table works fine, but how do I get the other two entries to be included when I get a hit on an address?&lt;/P&gt;

&lt;P&gt;Here is what I have:&lt;BR /&gt;
index="firewall"  dst_ip OR scr_ip( [|inputlookup bad_actors.csv|rename host as query | fields query] ) NOT &lt;A href="http://www.google.com" target="_blank"&gt;www.google.com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;*the NOT &lt;A href="http://www.google.com" target="_blank"&gt;www.google.com&lt;/A&gt; is my sanity checker I put in my tables to make sure things are working correctly.&lt;/P&gt;

&lt;P&gt;Obviously the search is going to bring up any hits I may get and I can obviously put it into to a report, but I need to know how to get the second and third fields in there to make it useful.&lt;/P&gt;

&lt;P&gt;Thanks for looking!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:17:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-table-matches-and-associated-fields/m-p/144438#M40187</guid>
      <dc:creator>Armyeric</dc:creator>
      <dc:date>2020-09-28T15:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup table matches and associated fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-table-matches-and-associated-fields/m-p/144439#M40188</link>
      <description>&lt;P&gt;Change &lt;CODE&gt;'fields query'&lt;/CODE&gt; to &lt;CODE&gt;'fields query referringGroup attackType'&lt;/CODE&gt;.  The last two fields should match whatever is in the header of bad_actors.csv.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2013 17:24:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-table-matches-and-associated-fields/m-p/144439#M40188</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2013-11-15T17:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup table matches and associated fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-table-matches-and-associated-fields/m-p/144440#M40189</link>
      <description>&lt;P&gt;Based on your search, I assume there is a field with name 'query' in your events.&lt;BR /&gt;
Try following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="firewall"  dst_ip OR scr_ip  NOT &lt;A href="https://community.splunk.com/www.google.com" target="test_blank"&gt;www.google.com&lt;/A&gt; |lookup bad_actors.csv query OUTPUT referringGroup attackType | where isnotnull(referreingGroup)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Nov 2013 21:38:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-table-matches-and-associated-fields/m-p/144440#M40189</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-11-15T21:38:00Z</dc:date>
    </item>
  </channel>
</rss>

