<?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 to exclude equal values at the same field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-equal-values-at-the-same-field/m-p/164543#M186037</link>
    <description>&lt;P&gt;Do you mean to say if the value for the field CaminhoCompleto is greater than 1 then you should exclude that event from the result&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jul 2014 20:11:05 GMT</pubDate>
    <dc:creator>strive</dc:creator>
    <dc:date>2014-07-30T20:11:05Z</dc:date>
    <item>
      <title>How to exclude equal values at the same field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-equal-values-at-the-same-field/m-p/164542#M186036</link>
      <description>&lt;P&gt;Hello Splunkers,&lt;/P&gt;

&lt;P&gt;I need a little help to exclude similar values at the same field in a search: &lt;/P&gt;

&lt;P&gt;....| search ComputadorNome="PCSD-FA5-TI11" | eval CaminhoCompleto=Caminho+ArquivoInfectado | stats count by ComputadorNome, TextoResultado, UsuarioLogado, CaminhoCompleto, TipoScan &lt;/P&gt;

&lt;P&gt;I need that all results that have similar values at field called "CaminhoCompleto" are not displayed at the result.&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   Field 1------Caminhocompleto-------Field3---- 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;1       123              ABC                098 &lt;BR /&gt;
2       324              ABC                987 &lt;BR /&gt;
3       234              CBA                678&lt;/P&gt;

&lt;P&gt;In this case the line 1 and 2 would be excluded from the result, because the field Caminhocompleto have the value ABC appearing more than one time.&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Igor Abreu&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 19:18:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-equal-values-at-the-same-field/m-p/164542#M186036</guid>
      <dc:creator>iabreu</dc:creator>
      <dc:date>2014-07-30T19:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude equal values at the same field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-equal-values-at-the-same-field/m-p/164543#M186037</link>
      <description>&lt;P&gt;Do you mean to say if the value for the field CaminhoCompleto is greater than 1 then you should exclude that event from the result&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 20:11:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-equal-values-at-the-same-field/m-p/164543#M186037</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-30T20:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude equal values at the same field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-equal-values-at-the-same-field/m-p/164544#M186038</link>
      <description>&lt;P&gt;No, I said "1" just to exemplify, I mean that if the field "CaminhoCompleto" have any equal values, all events will not be showed. For exemple:&lt;/P&gt;

&lt;P&gt;Field 1------Caminhocompleto-------Field3----&lt;BR /&gt;
  123             ABC                098&lt;BR /&gt;
  324             ABC                987&lt;BR /&gt;
  234             CBA                678&lt;/P&gt;

&lt;P&gt;In this case the line 1 and 2 would be excluded from the result, because the field Caminhocompleto have the value ABC appearing more than one time.&lt;/P&gt;

&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 20:41:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-equal-values-at-the-same-field/m-p/164544#M186038</guid>
      <dc:creator>iabreu</dc:creator>
      <dc:date>2014-07-30T20:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude equal values at the same field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-equal-values-at-the-same-field/m-p/164545#M186039</link>
      <description>&lt;P&gt;You want to exclude these entries (with more than 1 similar values) before the stats itself?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 20:48:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-equal-values-at-the-same-field/m-p/164545#M186039</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-07-30T20:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude equal values at the same field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-equal-values-at-the-same-field/m-p/164546#M186040</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;P&gt;If you want to filter those results after stats.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search ComputadorNome="PCSD-FA5-TI11" | eval CaminhoCompleto=Caminho+ArquivoInfectado | stats count by ComputadorNome, TextoResultado, UsuarioLogado, CaminhoCompleto, TipoScan | evenstats count as tempcount by CaminhoCompleto | where tempcount=1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Before stats&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | search ComputadorNome="PCSD-FA5-TI11" | eval CaminhoCompleto=Caminho+ArquivoInfectado | evenstats count as tempcount by CaminhoCompleto | where tempcount=1 | stats count by ComputadorNome, TextoResultado, UsuarioLogado, CaminhoCompleto, TipoScan
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Jul 2014 20:52:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-equal-values-at-the-same-field/m-p/164546#M186040</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-07-30T20:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude equal values at the same field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-equal-values-at-the-same-field/m-p/164547#M186041</link>
      <description>&lt;P&gt;Yeah, exactly.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 20:54:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-equal-values-at-the-same-field/m-p/164547#M186041</guid>
      <dc:creator>iabreu</dc:creator>
      <dc:date>2014-07-30T20:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude equal values at the same field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-equal-values-at-the-same-field/m-p/164548#M186042</link>
      <description>&lt;P&gt;The 2nd query should help.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 20:58:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-equal-values-at-the-same-field/m-p/164548#M186042</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-07-30T20:58:16Z</dc:date>
    </item>
  </channel>
</rss>

