<?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: checking list of email domains appear in a field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/checking-list-of-email-domains-appear-in-a-field/m-p/414374#M174351</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;if you have a lookup with a field watch and lets say the value of "yes" and "no", you can use the &lt;CODE&gt;| lookup&lt;/CODE&gt; command &lt;/P&gt;

&lt;P&gt;like this : &lt;CODE&gt;| lookup check.csv recipient OUTPUT watch&lt;/CODE&gt; you could add &lt;CODE&gt;| fields recipient watch&lt;/CODE&gt; (assuming the field with the domains within the check.csv is called recipient)&lt;/P&gt;

&lt;P&gt;then you can search for the value yes within the field watch &lt;CODE&gt;your search| lookup check.csv recipient OUTPUT watch | fields recipient watch | where watch="yes"&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Nov 2018 14:22:32 GMT</pubDate>
    <dc:creator>dkeck</dc:creator>
    <dc:date>2018-11-29T14:22:32Z</dc:date>
    <item>
      <title>checking list of email domains appear in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/checking-list-of-email-domains-appear-in-a-field/m-p/414373#M174350</link>
      <description>&lt;P&gt;I have a field (recipient) which contains all the recipients that an email was sent to.  I also have a lookupcsv file with field (watch) which list of domain address to look for e.g. gmail.com&lt;/P&gt;

&lt;P&gt;How can I check to see if a domain from the lookup csv appears anywhere within the recipient field - I need it as a filter so I can do work with the remainder of the records data &lt;/P&gt;

&lt;P&gt;I have gotten closet using&lt;BR /&gt;
 |join recipient [|inputlookup check.csv  |rename watch as recipient|fields recipient] &lt;/P&gt;

&lt;P&gt;but it is not returning enough matches.&lt;/P&gt;

&lt;P&gt;Many thanks for any pointers&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 14:02:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/checking-list-of-email-domains-appear-in-a-field/m-p/414373#M174350</guid>
      <dc:creator>ChrisCLewis</dc:creator>
      <dc:date>2018-11-29T14:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: checking list of email domains appear in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/checking-list-of-email-domains-appear-in-a-field/m-p/414374#M174351</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;if you have a lookup with a field watch and lets say the value of "yes" and "no", you can use the &lt;CODE&gt;| lookup&lt;/CODE&gt; command &lt;/P&gt;

&lt;P&gt;like this : &lt;CODE&gt;| lookup check.csv recipient OUTPUT watch&lt;/CODE&gt; you could add &lt;CODE&gt;| fields recipient watch&lt;/CODE&gt; (assuming the field with the domains within the check.csv is called recipient)&lt;/P&gt;

&lt;P&gt;then you can search for the value yes within the field watch &lt;CODE&gt;your search| lookup check.csv recipient OUTPUT watch | fields recipient watch | where watch="yes"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 14:22:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/checking-list-of-email-domains-appear-in-a-field/m-p/414374#M174351</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2018-11-29T14:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: checking list of email domains appear in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/checking-list-of-email-domains-appear-in-a-field/m-p/414375#M174352</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;Can you try this ?&lt;/P&gt;

&lt;P&gt;Extract Domain from the recipient field and join with the  Check.csv . Try the below query &lt;/P&gt;

&lt;P&gt;| rex field=Recipient "\@(?[^.]*)" | eval Found= "N" | table Recipient Domain | join Domain [ | inputlookup Check.csv | eval Found="Y"  | table Domain Found] &lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 20:02:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/checking-list-of-email-domains-appear-in-a-field/m-p/414375#M174352</guid>
      <dc:creator>tmuthuk</dc:creator>
      <dc:date>2018-11-29T20:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: checking list of email domains appear in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/checking-list-of-email-domains-appear-in-a-field/m-p/414376#M174353</link>
      <description>&lt;P&gt;please accept answer if it was helpful &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 08:49:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/checking-list-of-email-domains-appear-in-a-field/m-p/414376#M174353</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2018-12-06T08:49:22Z</dc:date>
    </item>
  </channel>
</rss>

