<?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: how i can compare last 5 fields and exclude from result in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-i-can-compare-last-5-fields-and-exclude-from-result/m-p/473161#M192362</link>
    <description>&lt;P&gt;hi @saghiralmani &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search . . .. |eval test=substr(user_id_field,-5) |eventstats  count by test |where count &amp;gt; 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 16 Apr 2020 11:54:28 GMT</pubDate>
    <dc:creator>harishalipaka</dc:creator>
    <dc:date>2020-04-16T11:54:28Z</dc:date>
    <item>
      <title>how i can compare last 5 fields and exclude from result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-i-can-compare-last-5-fields-and-exclude-from-result/m-p/473159#M192360</link>
      <description>&lt;P&gt;i want to compare if last 5 digits of user ID are same don't show in result&lt;BR /&gt;
how it can be done&lt;/P&gt;

&lt;P&gt;0012345&lt;BR /&gt;
abc0012345&lt;BR /&gt;
xyx\0012345&lt;/P&gt;

&lt;P&gt;if the resulting values are above as a user ID, i want to check if last 5 values(12345) are same so it should not trigger in my search as a result of user ID&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 09:14:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-i-can-compare-last-5-fields-and-exclude-from-result/m-p/473159#M192360</guid>
      <dc:creator>saghiralmani</dc:creator>
      <dc:date>2020-04-16T09:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: how i can compare last 5 fields and exclude from result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-i-can-compare-last-5-fields-and-exclude-from-result/m-p/473160#M192361</link>
      <description>&lt;P&gt;@saghiralmani ,&lt;/P&gt;

&lt;P&gt;If you want to compare the extracted IDs against another value, try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex field=your_user_id_field "(?&amp;lt;extracted_id&amp;gt;\d{5}$)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval extracted_id=substr(your_user_id_field,-5)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Compare extracted_id against with the value&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 11:01:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-i-can-compare-last-5-fields-and-exclude-from-result/m-p/473160#M192361</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-04-16T11:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: how i can compare last 5 fields and exclude from result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-i-can-compare-last-5-fields-and-exclude-from-result/m-p/473161#M192362</link>
      <description>&lt;P&gt;hi @saghiralmani &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search . . .. |eval test=substr(user_id_field,-5) |eventstats  count by test |where count &amp;gt; 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Apr 2020 11:54:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-i-can-compare-last-5-fields-and-exclude-from-result/m-p/473161#M192362</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2020-04-16T11:54:28Z</dc:date>
    </item>
  </channel>
</rss>

