<?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 Match all possible matches to lookuplist in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Match-all-possible-matches-to-lookuplist/m-p/501880#M140553</link>
    <description>&lt;P&gt;index=proxy domain=*&lt;BR /&gt;
| rename domain as emotet_domain &lt;BR /&gt;
| where &lt;BR /&gt;
    [| inputlookup test&lt;BR /&gt;
    | fields emotet_domain] &lt;BR /&gt;
| stats values(emotet_domain) as emotetDomain&lt;/P&gt;

&lt;P&gt;so inside the lookup list i want to be able to match for example a threat of -- reason.com OR &lt;A href="http://www.reason.com" target="_blank"&gt;www.reason.com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;i added the matchtype option of WILDCARD(emotet_domain)  AND I have also tried WILDCARD(domain)  I am not sure whihc one will help wildcard it, but as of right now it is NOT working.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:44:16 GMT</pubDate>
    <dc:creator>rtalcik</dc:creator>
    <dc:date>2020-09-30T04:44:16Z</dc:date>
    <item>
      <title>Match all possible matches to lookuplist</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-all-possible-matches-to-lookuplist/m-p/501880#M140553</link>
      <description>&lt;P&gt;index=proxy domain=*&lt;BR /&gt;
| rename domain as emotet_domain &lt;BR /&gt;
| where &lt;BR /&gt;
    [| inputlookup test&lt;BR /&gt;
    | fields emotet_domain] &lt;BR /&gt;
| stats values(emotet_domain) as emotetDomain&lt;/P&gt;

&lt;P&gt;so inside the lookup list i want to be able to match for example a threat of -- reason.com OR &lt;A href="http://www.reason.com" target="_blank"&gt;www.reason.com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;i added the matchtype option of WILDCARD(emotet_domain)  AND I have also tried WILDCARD(domain)  I am not sure whihc one will help wildcard it, but as of right now it is NOT working.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:44:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-all-possible-matches-to-lookuplist/m-p/501880#M140553</guid>
      <dc:creator>rtalcik</dc:creator>
      <dc:date>2020-09-30T04:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Match all possible matches to lookuplist</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-all-possible-matches-to-lookuplist/m-p/501881#M140554</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=proxy domain=* [| inputlookup test | stats values(emotet_domain) as query |format]
| lookup test emotet_domain as domain OUTPUT emotet_domain
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 Mar 2020 01:30:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-all-possible-matches-to-lookuplist/m-p/501881#M140554</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-28T01:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Match all possible matches to lookuplist</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-all-possible-matches-to-lookuplist/m-p/501882#M140555</link>
      <description>&lt;P&gt;Assuming that your lookup has domain values like &lt;CODE&gt;reason.com&lt;/CODE&gt;, all you need to do is this and then it should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;inputlookup test
| eval emotet_domain = "*." . emotet_domain
| outputlookup test
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then use it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=proxy domain=*
| lookup test emotet_domain AS domain OUTPUT emotet_domain AS MATCHED
| where isnotnull(MATCHED)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 29 Mar 2020 22:39:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-all-possible-matches-to-lookuplist/m-p/501882#M140555</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-29T22:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Match all possible matches to lookuplist</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-all-possible-matches-to-lookuplist/m-p/501883#M140556</link>
      <description>&lt;P&gt;Thanks this would def help in the future, unfortunately what was below will help even better.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 00:08:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-all-possible-matches-to-lookuplist/m-p/501883#M140556</guid>
      <dc:creator>rtalcik</dc:creator>
      <dc:date>2020-03-30T00:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Match all possible matches to lookuplist</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-all-possible-matches-to-lookuplist/m-p/501884#M140557</link>
      <description>&lt;P&gt;So, what this is doing is it is searching all the events that happened and that it matches.  I need to match the latest event so it only triggers an alert.&lt;/P&gt;

&lt;P&gt;I also need to add more to it as well such as&lt;/P&gt;

&lt;P&gt;index=proxy domain=* OR index=network* src_ip=* dest_ip=*&lt;BR /&gt;
 [| inputlookup test&lt;BR /&gt;
       | stats values(emotet_domain) as query, values(emotet_ip) as IP&lt;BR /&gt;
       |format]&lt;BR /&gt;
 | lookup test emotet_domain as domain OUTPUT emotet_domain&lt;BR /&gt;
|  lookup test emotet_ip as dest_ip OUTPUT emotet_ip&lt;BR /&gt;
|  lookup test emotet_ip as src_ip OUTPUT emotet_ip&lt;/P&gt;

&lt;P&gt;will this work??&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:49:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-all-possible-matches-to-lookuplist/m-p/501884#M140557</guid>
      <dc:creator>rtalcik</dc:creator>
      <dc:date>2020-09-30T04:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Match all possible matches to lookuplist</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-all-possible-matches-to-lookuplist/m-p/501885#M140558</link>
      <description>&lt;P&gt;I see what you want.&lt;BR /&gt;
Let's ask another question.&lt;BR /&gt;
at the time, please provide Csv sample and setting.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 09:24:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-all-possible-matches-to-lookuplist/m-p/501885#M140558</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-30T09:24:55Z</dc:date>
    </item>
  </channel>
</rss>

