<?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 How to exclude results that start with specific text in a specific field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-that-start-with-specific-text-in-a/m-p/444043#M125938</link>
    <description>&lt;P&gt;I am trying to find a list of issues in a ticketing system that include a specific keyword that also excludes a list of computer names that start with specific letters that also reside in specific locations but cant figure it out. This is what I have so far. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=SOURCE IssueImLookingFor* AND assignment_group_name="Group1" OR "Group2" OR "Group3" NOT Location=("Location1" OR "Location2" OR "Location3")
| search exclude (WorkstationName!=ABC-* OR BCD-* OR CDE-* OR 123-*) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 27 Jun 2019 18:26:26 GMT</pubDate>
    <dc:creator>elloyd4</dc:creator>
    <dc:date>2019-06-27T18:26:26Z</dc:date>
    <item>
      <title>How to exclude results that start with specific text in a specific field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-that-start-with-specific-text-in-a/m-p/444043#M125938</link>
      <description>&lt;P&gt;I am trying to find a list of issues in a ticketing system that include a specific keyword that also excludes a list of computer names that start with specific letters that also reside in specific locations but cant figure it out. This is what I have so far. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=SOURCE IssueImLookingFor* AND assignment_group_name="Group1" OR "Group2" OR "Group3" NOT Location=("Location1" OR "Location2" OR "Location3")
| search exclude (WorkstationName!=ABC-* OR BCD-* OR CDE-* OR 123-*) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Jun 2019 18:26:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-that-start-with-specific-text-in-a/m-p/444043#M125938</guid>
      <dc:creator>elloyd4</dc:creator>
      <dc:date>2019-06-27T18:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude results that start with specific text in a specific field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-that-start-with-specific-text-in-a/m-p/444044#M125939</link>
      <description>&lt;P&gt;Instead of &lt;CODE&gt;NOT Location=&lt;/CODE&gt; you want to use &lt;CODE&gt;Location!=&lt;/CODE&gt;. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
And you should chain it like &lt;CODE&gt;Location!=1 OR Location!=2 ...&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Skalli&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 18:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-that-start-with-specific-text-in-a/m-p/444044#M125939</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2019-06-27T18:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude results that start with specific text in a specific field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-that-start-with-specific-text-in-a/m-p/444045#M125940</link>
      <description>&lt;P&gt;Hello Skalli,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        Thanks for your help. The "Location!=" vs. NOT Location= did not work in my favor, but your advise lead me down a path to type out each value one at a time and that worked for me. It may be a more difficult way to do it, but NotePad++ was able to make quick work of the formatting. Thanks again for your help!
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Answer:&lt;BR /&gt;
     sourcetype=SOURCE IssueImLookingFor* AND assignment_group_name="Group1" OR assignment_group_name="Group2" OR assignment_group_name="Group3" NOT Location="Location1" NOT Location="Location2" NOT Location="Location3" NOT WorkstationName=ABC-* NOT WorkstationName=BCD-* NOT WorkstationName=CDE-* NOT WorkstationName=123-*&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:04:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-results-that-start-with-specific-text-in-a/m-p/444045#M125940</guid>
      <dc:creator>elloyd4</dc:creator>
      <dc:date>2020-09-30T01:04:32Z</dc:date>
    </item>
  </channel>
</rss>

