<?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 check if stringa in stingb in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/check-if-stringa-in-stingb/m-p/415354#M167807</link>
    <description>&lt;P&gt;how can i make a case condition to check if StingA is in StringB?&lt;/P&gt;

&lt;P&gt;for example StingA is "xxx.com." StingB is: "a.xxx.com."&lt;/P&gt;</description>
    <pubDate>Sun, 19 Aug 2018 10:50:31 GMT</pubDate>
    <dc:creator>mcohen13</dc:creator>
    <dc:date>2018-08-19T10:50:31Z</dc:date>
    <item>
      <title>check if stringa in stingb</title>
      <link>https://community.splunk.com/t5/Splunk-Search/check-if-stringa-in-stingb/m-p/415354#M167807</link>
      <description>&lt;P&gt;how can i make a case condition to check if StingA is in StringB?&lt;/P&gt;

&lt;P&gt;for example StingA is "xxx.com." StingB is: "a.xxx.com."&lt;/P&gt;</description>
      <pubDate>Sun, 19 Aug 2018 10:50:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/check-if-stringa-in-stingb/m-p/415354#M167807</guid>
      <dc:creator>mcohen13</dc:creator>
      <dc:date>2018-08-19T10:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: check if stringa in stingb</title>
      <link>https://community.splunk.com/t5/Splunk-Search/check-if-stringa-in-stingb/m-p/415355#M167808</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval match=if(like(fieldB,fieldA),1,0) | search match=1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 19 Aug 2018 11:28:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/check-if-stringa-in-stingb/m-p/415355#M167808</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-08-19T11:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: check if stringa in stingb</title>
      <link>https://community.splunk.com/t5/Splunk-Search/check-if-stringa-in-stingb/m-p/415356#M167809</link>
      <description>&lt;P&gt;if the list of domains are not in a field but in a lookup table, how does that change the query?&lt;/P&gt;

&lt;P&gt;for example:&lt;BR /&gt;
i have a list of domain in a lookup table&lt;BR /&gt;
and i have a list of domain in a field&lt;/P&gt;

&lt;P&gt;and i want to check if the list of domains in the field are in the lookup table&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 06:36:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/check-if-stringa-in-stingb/m-p/415356#M167809</guid>
      <dc:creator>mcohen13</dc:creator>
      <dc:date>2018-08-20T06:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: check if stringa in stingb</title>
      <link>https://community.splunk.com/t5/Splunk-Search/check-if-stringa-in-stingb/m-p/415357#M167810</link>
      <description>&lt;P&gt;In that case...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rename domain as domainFromIndex 
| inputlookup lookupName domain as domain OUTPUTNEW domainFromLookup
| eval match=if(domainFromIndex=domainFromLookup,1,0)
| where match=1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Aug 2018 11:38:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/check-if-stringa-in-stingb/m-p/415357#M167810</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-08-20T11:38:44Z</dc:date>
    </item>
  </channel>
</rss>

