<?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 filter out search results where a field value ends with the $ character? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-search-results-where-a-field-value-ends-with/m-p/206415#M60081</link>
    <description>&lt;P&gt;I'm assuming the answer below works fine but if not try the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where NOT LIKE(field,"%$")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 22 Dec 2015 08:32:40 GMT</pubDate>
    <dc:creator>javiergn</dc:creator>
    <dc:date>2015-12-22T08:32:40Z</dc:date>
    <item>
      <title>How to filter out search results where a field value ends with the $ character?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-search-results-where-a-field-value-ends-with/m-p/206413#M60079</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;

&lt;P&gt;Am hitting a snag and need some help. So I have an index whereby we have many account names returned to us from an index. Some of these account names end in the &lt;CODE&gt;$&lt;/CODE&gt; character.&lt;/P&gt;

&lt;P&gt;I am trying to filter any events where the account name ends in &lt;CODE&gt;$&lt;/CODE&gt; out of the result set. &lt;/P&gt;

&lt;P&gt;I have tried &lt;CODE&gt;search NOT account_name = "*$"&lt;/CODE&gt; but this doesn't seem to work. I am guessing that &lt;CODE&gt;$&lt;/CODE&gt; is a reserved character or something as this works fine when filtering out other stuff not ending in a special character.&lt;/P&gt;

&lt;P&gt;Anyone got any hints for me? I would really appreciate it. &lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 14:35:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-search-results-where-a-field-value-ends-with/m-p/206413#M60079</guid>
      <dc:creator>Bytes</dc:creator>
      <dc:date>2015-12-21T14:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out search results where a field value ends with the $ character?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-search-results-where-a-field-value-ends-with/m-p/206414#M60080</link>
      <description>&lt;P&gt;Have you tried using &lt;CODE&gt;NOT "*\$"&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 15:48:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-search-results-where-a-field-value-ends-with/m-p/206414#M60080</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2015-12-21T15:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out search results where a field value ends with the $ character?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-search-results-where-a-field-value-ends-with/m-p/206415#M60081</link>
      <description>&lt;P&gt;I'm assuming the answer below works fine but if not try the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where NOT LIKE(field,"%$")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Dec 2015 08:32:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-search-results-where-a-field-value-ends-with/m-p/206415#M60081</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2015-12-22T08:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out search results where a field value ends with the $ character?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-search-results-where-a-field-value-ends-with/m-p/206416#M60082</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Thanks for your responses. I found the problem. After exploring the events that Splunk was indexing I found that the account_name atribute had two values. One of the user who created the event (what I was after) and one of the AD machine account (ending $ that I was trying to filter out). Basically when I ran your (and my) search strings they were working but all acount_name atributes had a value ending $.&lt;/P&gt;

&lt;P&gt;As such, I explored and found another atribute that only has the user name (and no machine name). Performing both your functions on that worked well.&lt;/P&gt;

&lt;P&gt;Both your answers work to do what I asked though so thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:16:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-search-results-where-a-field-value-ends-with/m-p/206416#M60082</guid>
      <dc:creator>Bytes</dc:creator>
      <dc:date>2020-09-29T08:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out search results where a field value ends with the $ character?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-search-results-where-a-field-value-ends-with/m-p/206417#M60083</link>
      <description>&lt;P&gt;This should work:&lt;/P&gt;

&lt;P&gt;account_name != "*$"&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 21:50:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-search-results-where-a-field-value-ends-with/m-p/206417#M60083</guid>
      <dc:creator>weicai88</dc:creator>
      <dc:date>2017-01-17T21:50:20Z</dc:date>
    </item>
  </channel>
</rss>

