<?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 How to match portion of string between two fields in splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-portion-of-string-between-two-fields-in-splunk/m-p/550922#M156316</link>
    <description>&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;field1=ADOBE INC.&lt;/P&gt;&lt;P&gt;field2=ADOBE SYSTEMS&amp;amp;sep1; INCORPORATED&lt;/P&gt;&lt;P&gt;i want to match this as both fields containing "ADOBE" in string, i am a advanced beginner to splunk&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have tried below condition in my splunk search but no luck(did not work)&lt;/P&gt;&lt;P&gt;..........| eval results= if(like(field1,"%".field2."%"),"Yes","No")&lt;/P&gt;&lt;P&gt;Please help and it is appreciated.&lt;/P&gt;&lt;P&gt;Thank You:)&lt;/P&gt;</description>
    <pubDate>Fri, 07 May 2021 21:45:47 GMT</pubDate>
    <dc:creator>obais9346</dc:creator>
    <dc:date>2021-05-07T21:45:47Z</dc:date>
    <item>
      <title>How to match portion of string between two fields in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-portion-of-string-between-two-fields-in-splunk/m-p/550922#M156316</link>
      <description>&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;field1=ADOBE INC.&lt;/P&gt;&lt;P&gt;field2=ADOBE SYSTEMS&amp;amp;sep1; INCORPORATED&lt;/P&gt;&lt;P&gt;i want to match this as both fields containing "ADOBE" in string, i am a advanced beginner to splunk&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have tried below condition in my splunk search but no luck(did not work)&lt;/P&gt;&lt;P&gt;..........| eval results= if(like(field1,"%".field2."%"),"Yes","No")&lt;/P&gt;&lt;P&gt;Please help and it is appreciated.&lt;/P&gt;&lt;P&gt;Thank You:)&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 21:45:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-portion-of-string-between-two-fields-in-splunk/m-p/550922#M156316</guid>
      <dc:creator>obais9346</dc:creator>
      <dc:date>2021-05-07T21:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to match portion of string between two fields in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-portion-of-string-between-two-fields-in-splunk/m-p/550924#M156317</link>
      <description>&lt;P&gt;You won't get a match because field2 does not exist in field1, but also field1 doesn't exist in field2, but if field1 was just "ADOBE" it would match&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval field1="ADOBE"
| eval field2="ADOBE SYSTEMS INCORPORATED"
| eval result=if(like(field2,"%".field1."%"),"Yes","No")&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 07 May 2021 22:52:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-portion-of-string-between-two-fields-in-splunk/m-p/550924#M156317</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-07T22:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to match portion of string between two fields in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-portion-of-string-between-two-fields-in-splunk/m-p/550927#M156319</link>
      <description>&lt;P&gt;Thanks for making me understand&lt;/P&gt;&lt;P&gt;But my requirement is to match&amp;nbsp;&lt;/P&gt;&lt;P&gt;field1=ADOBE INC.&lt;/P&gt;&lt;P&gt;field2=ADOBE SYSTEMS&amp;amp;sep1; INCORPORATED&lt;/P&gt;&lt;P&gt;How do i achieve this?&lt;/P&gt;&lt;P&gt;thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 23:12:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-portion-of-string-between-two-fields-in-splunk/m-p/550927#M156319</guid>
      <dc:creator>obais9346</dc:creator>
      <dc:date>2021-05-07T23:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to match portion of string between two fields in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-portion-of-string-between-two-fields-in-splunk/m-p/550935#M156320</link>
      <description>&lt;P&gt;Are you expecting these to fields to appear equal in some way? If so, what criterion do you want to use to say that they are equal?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 06:40:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-portion-of-string-between-two-fields-in-splunk/m-p/550935#M156320</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-08T06:40:24Z</dc:date>
    </item>
  </channel>
</rss>

