<?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: Exclude search events for a field containing a specific useragent. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Exclude-search-events-for-a-field-containing-a-specific/m-p/243128#M72381</link>
    <description>&lt;P&gt;A more straightforward search might be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=UV ad_UserAgent!=*Mozilla* ad_UserAgent!=*Opera* | top limit=0 ad_UserAgent
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 04 Jul 2016 07:20:07 GMT</pubDate>
    <dc:creator>dturnbull_splun</dc:creator>
    <dc:date>2016-07-04T07:20:07Z</dc:date>
    <item>
      <title>Exclude search events for a field containing a specific useragent.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-search-events-for-a-field-containing-a-specific/m-p/243126#M72379</link>
      <description>&lt;P&gt;I am attempting to create a sorted count list of useragents that customers are using to browse my website.&lt;/P&gt;

&lt;P&gt;I want to exclude certain results and only show events of unknown agents,bots,vulnerability scanners.&lt;/P&gt;

&lt;P&gt;Currently I am using the string&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;index = UV | where NOT like(ad_UserAgent,"%Mozilla%")  OR like(ad_UserAgent,"%Opera%") | stats count by ad_UserAgent | sort - count&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Is there something I am doing wrong that is still showing events that contain Mozilla and Opera?&lt;/P&gt;

&lt;P&gt;thank you for the assistance.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:07:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-search-events-for-a-field-containing-a-specific/m-p/243126#M72379</guid>
      <dc:creator>bcherdak</dc:creator>
      <dc:date>2020-09-29T10:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude search events for a field containing a specific useragent.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-search-events-for-a-field-containing-a-specific/m-p/243127#M72380</link>
      <description>&lt;P&gt;Looks like you need some parens.  Have you tried &lt;CODE&gt;... | where NOT (like(ad_UserAgent,"%Mozilla%") OR like(ad_UserAgent,"%Opera%")) | ...&lt;/CODE&gt; ?&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jul 2016 21:37:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-search-events-for-a-field-containing-a-specific/m-p/243127#M72380</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-07-03T21:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude search events for a field containing a specific useragent.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-search-events-for-a-field-containing-a-specific/m-p/243128#M72381</link>
      <description>&lt;P&gt;A more straightforward search might be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=UV ad_UserAgent!=*Mozilla* ad_UserAgent!=*Opera* | top limit=0 ad_UserAgent
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Jul 2016 07:20:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-search-events-for-a-field-containing-a-specific/m-p/243128#M72381</guid>
      <dc:creator>dturnbull_splun</dc:creator>
      <dc:date>2016-07-04T07:20:07Z</dc:date>
    </item>
  </channel>
</rss>

