<?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: Is there a way to search where 4 letters in FieldA NotMatch FieldB? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-search-where-4-letters-in-FieldA-NotMatch/m-p/621411#M14516</link>
    <description>&lt;P&gt;If your problem is resolved, then please click the "Accept as Solution" button to help future readers.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Nov 2022 21:03:32 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-11-18T21:03:32Z</dc:date>
    <item>
      <title>Is there a way to search where 4 letters in FieldA NotMatch FieldB?</title>
      <link>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-search-where-4-letters-in-FieldA-NotMatch/m-p/620785#M14505</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;
&lt;P&gt;So if I have two fields with really random set of text, no similarities except the red text.&amp;nbsp; Does have the 'red' fonts in similarity as below.&lt;/P&gt;
&lt;P&gt;In this case, is there a way to search to say when first four letters in FieldA exists in FieldB, exclude?&lt;/P&gt;
&lt;P&gt;This would be very easy in powershell or python.&amp;nbsp; I am medium splunk user as well, but not sure how I'd do this in splunk.&lt;/P&gt;
&lt;P&gt;This would be very helpful..&amp;nbsp; Your help is appreciated in advance.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="383"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="177.547px" height="25px"&gt;FieldA&lt;/TD&gt;
&lt;TD width="204.453px" height="25px"&gt;FieldB&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="177.547px" height="25px"&gt;&lt;FONT color="#FF0000"&gt;Comp&lt;/FONT&gt;lete&lt;/TD&gt;
&lt;TD width="204.453px" height="25px"&gt;Exch.&lt;FONT color="#FF0000"&gt;Comp&lt;/FONT&gt;lete&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="177.547px" height="25px"&gt;&lt;FONT color="#FF0000"&gt;NotC&lt;/FONT&gt;omplete&lt;/TD&gt;
&lt;TD width="204.453px" height="25px"&gt;apps.&lt;FONT color="#FF0000"&gt;NotC&lt;/FONT&gt;@&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="177.547px" height="25px"&gt;&lt;FONT color="#FF0000"&gt;Sati&lt;/FONT&gt;sftesting&lt;/TD&gt;
&lt;TD width="204.453px" height="25px"&gt;&lt;FONT color="#FF0000"&gt;Sati&lt;/FONT&gt;apps&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Mon, 14 Nov 2022 18:54:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-search-where-4-letters-in-FieldA-NotMatch/m-p/620785#M14505</guid>
      <dc:creator>aikn061</dc:creator>
      <dc:date>2022-11-14T18:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to search where 4 letters in FieldA NotMatch FieldB?</title>
      <link>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-search-where-4-letters-in-FieldA-NotMatch/m-p/620808#M14506</link>
      <description>&lt;P&gt;See if this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval exclString=substr(FieldA, 1, 4)
| where NOT match(FieldB, exclString)&lt;/LI-CODE&gt;&lt;P&gt;EDIT: I fixed this answer to exclude rather than include matches.&amp;nbsp; Thanks,&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 00:51:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-search-where-4-letters-in-FieldA-NotMatch/m-p/620808#M14506</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-11-15T00:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to search where 4 letters in FieldA NotMatch FieldB?</title>
      <link>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-search-where-4-letters-in-FieldA-NotMatch/m-p/620810#M14507</link>
      <description>&lt;P&gt;Or the minimalist one liner&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; - but turning round the logic to exclude rather than include those matching items&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where !match(FieldB, substr(FieldA, 1, 4))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 22:29:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-search-where-4-letters-in-FieldA-NotMatch/m-p/620810#M14507</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-11-14T22:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to search where 4 letters in FieldA NotMatch FieldB?</title>
      <link>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-search-where-4-letters-in-FieldA-NotMatch/m-p/621407#M14515</link>
      <description>&lt;P&gt;Both methods do work - Thanks RichGalloway and Bowesmana&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 19:24:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-search-where-4-letters-in-FieldA-NotMatch/m-p/621407#M14515</guid>
      <dc:creator>aikn061</dc:creator>
      <dc:date>2022-11-18T19:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to search where 4 letters in FieldA NotMatch FieldB?</title>
      <link>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-search-where-4-letters-in-FieldA-NotMatch/m-p/621411#M14516</link>
      <description>&lt;P&gt;If your problem is resolved, then please click the "Accept as Solution" button to help future readers.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 21:03:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-search-where-4-letters-in-FieldA-NotMatch/m-p/621411#M14516</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-11-18T21:03:32Z</dc:date>
    </item>
  </channel>
</rss>

