<?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: Using lookup table as source for search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-lookup-table-as-source-for-search/m-p/325818#M97129</link>
    <description>&lt;P&gt;Here's the syntax I use for such cases:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="network" sourcetype="cisco:asa" 
[ | inputlookup FLASHAB000089 
  | stats values(IPAddr) as src_ip 
  | format ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 08 Dec 2017 19:18:21 GMT</pubDate>
    <dc:creator>elliotproebstel</dc:creator>
    <dc:date>2017-12-08T19:18:21Z</dc:date>
    <item>
      <title>Using lookup table as source for search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-lookup-table-as-source-for-search/m-p/325817#M97128</link>
      <description>&lt;P&gt;I am looking for a way to perform a search and produce results matching search results against a lookup table or vice versa.  The scenario is a lookup table with two columns, IP &amp;amp; Description. I wish to run a search and produce results on the IP addresses that match the IP addresses in the lookup table.  My syntax is not correct on what I have been able to test, see below for the SPL I was using.   I know there must be a straight forward way to accomplish this task.  Much appreciated for any support.&lt;/P&gt;

&lt;P&gt;Thank you,&lt;BR /&gt;
Tom&lt;/P&gt;

&lt;P&gt;index="network" sourcetype="cisco:asa" | join src_ip [ search inputlookup append=t FLASHAB000089 | rename IPAddr as src_ip]&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:07:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-lookup-table-as-source-for-search/m-p/325817#M97128</guid>
      <dc:creator>tmwhitm</dc:creator>
      <dc:date>2020-09-29T17:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using lookup table as source for search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-lookup-table-as-source-for-search/m-p/325818#M97129</link>
      <description>&lt;P&gt;Here's the syntax I use for such cases:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="network" sourcetype="cisco:asa" 
[ | inputlookup FLASHAB000089 
  | stats values(IPAddr) as src_ip 
  | format ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Dec 2017 19:18:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-lookup-table-as-source-for-search/m-p/325818#M97129</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2017-12-08T19:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using lookup table as source for search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-lookup-table-as-source-for-search/m-p/325819#M97130</link>
      <description>&lt;P&gt;Just tried it and working with a control IP i added to the lookup table.  Thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 19:30:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-lookup-table-as-source-for-search/m-p/325819#M97130</guid>
      <dc:creator>tmwhitm</dc:creator>
      <dc:date>2017-12-08T19:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using lookup table as source for search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-lookup-table-as-source-for-search/m-p/325820#M97131</link>
      <description>&lt;P&gt;The syntax in the accepted answer works great but when I create a lookup table with UrLs, it does not work.  Any ideas on how to use a lookup table with UrLs?  I have SPL like this that isn't working,&lt;/P&gt;

&lt;P&gt;index="p*" [ | inputlookup UrL-Input | stats values(UrL) as url | format ] | stats count by src_ip,url,action&lt;BR /&gt;
| sort action&lt;/P&gt;

&lt;P&gt;The lookup table UrL-Input contains two columns, URL &amp;amp; Description.&lt;/P&gt;

&lt;P&gt;Any assistance is appreciated.&lt;/P&gt;

&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 19:04:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-lookup-table-as-source-for-search/m-p/325820#M97131</guid>
      <dc:creator>tmwhitm</dc:creator>
      <dc:date>2018-06-06T19:04:05Z</dc:date>
    </item>
  </channel>
</rss>

