<?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: help on a text comparison fonction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/help-on-a-text-comparison-fonction/m-p/486414#M193681</link>
    <description>&lt;P&gt;You might try something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval toto=upper(toto)
| eval tata=upper(tata)
| where match(toto,'tata') OR match(tata,'toto')
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This &lt;EM&gt;should&lt;/EM&gt; do a &lt;CODE&gt;match()&lt;/CODE&gt; compare between the value of &lt;CODE&gt;toto&lt;/CODE&gt; and the value of &lt;CODE&gt;tata&lt;/CODE&gt; (using &lt;CODE&gt;tata&lt;/CODE&gt; as a regex), and vice versa&lt;/P&gt;

&lt;P&gt;Feel free to extrapolate from there how you might like to go&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2019 18:57:33 GMT</pubDate>
    <dc:creator>wmyersas</dc:creator>
    <dc:date>2019-09-26T18:57:33Z</dc:date>
    <item>
      <title>help on a text comparison fonction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-a-text-comparison-fonction/m-p/486411#M193678</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I need to compare two fields from the text characters of these two fields&lt;BR /&gt;
So I need to do something like this&lt;BR /&gt;
where toto &amp;lt;&amp;gt; tata&lt;BR /&gt;
The problem I have is the text one field is never exactly the same than in other field&lt;BR /&gt;
It means that either the fields are really different and in this case I want to display the events nor the fields are almost the same&lt;BR /&gt;
For example, if I have in one field called  "spring" and in the othe field "spring - winter" I want to consider that these fields are the same because there is spring in both&lt;BR /&gt;
Is there a solution to do this please?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 14:30:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-a-text-comparison-fonction/m-p/486411#M193678</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-09-26T14:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: help on a text comparison fonction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-a-text-comparison-fonction/m-p/486412#M193679</link>
      <description>&lt;P&gt;to be clear, do you wish to do text comparison to values or to fields?&lt;BR /&gt;
can you share some sample data?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 15:26:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-a-text-comparison-fonction/m-p/486412#M193679</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-09-26T15:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: help on a text comparison fonction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-a-text-comparison-fonction/m-p/486413#M193680</link>
      <description>&lt;P&gt;If the values in fields are constant then you may use rex , extract the required values from fields and compare it . &lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 17:03:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-a-text-comparison-fonction/m-p/486413#M193680</guid>
      <dc:creator>Anantha123</dc:creator>
      <dc:date>2019-09-26T17:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: help on a text comparison fonction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-a-text-comparison-fonction/m-p/486414#M193681</link>
      <description>&lt;P&gt;You might try something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval toto=upper(toto)
| eval tata=upper(tata)
| where match(toto,'tata') OR match(tata,'toto')
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This &lt;EM&gt;should&lt;/EM&gt; do a &lt;CODE&gt;match()&lt;/CODE&gt; compare between the value of &lt;CODE&gt;toto&lt;/CODE&gt; and the value of &lt;CODE&gt;tata&lt;/CODE&gt; (using &lt;CODE&gt;tata&lt;/CODE&gt; as a regex), and vice versa&lt;/P&gt;

&lt;P&gt;Feel free to extrapolate from there how you might like to go&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 18:57:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-a-text-comparison-fonction/m-p/486414#M193681</guid>
      <dc:creator>wmyersas</dc:creator>
      <dc:date>2019-09-26T18:57:33Z</dc:date>
    </item>
  </channel>
</rss>

