<?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: field value * in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/field-value/m-p/26053#M5007</link>
    <description>&lt;P&gt;the match command works but it also seems to remove any other hello_world field values that contain an asterisk *. This could be a bit of a problem. Thanks mw. Ziegfried, your solution works as desired. Thanks again.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jun 2011 09:39:46 GMT</pubDate>
    <dc:creator>Ant1D</dc:creator>
    <dc:date>2011-06-10T09:39:46Z</dc:date>
    <item>
      <title>field value *</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-value/m-p/26049#M5003</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a field named hello_world and a value of the field is *&lt;/P&gt;

&lt;P&gt;I am writing a search where the results will not include this value *.&lt;/P&gt;

&lt;P&gt;The problem is if I write for example:&lt;BR /&gt;
&lt;CODE&gt;index=my_index NOT hello_world="*"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I will get no results that have any value for field hello_world and at face value that makes sense. So how can I tell Splunk to say &lt;CODE&gt;NOT field=*&lt;/CODE&gt; (just the string/symbol) instead of &lt;CODE&gt;NOT field=*&lt;/CODE&gt; (no results at all)&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2011 14:43:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-value/m-p/26049#M5003</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2011-06-09T14:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: field value *</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-value/m-p/26050#M5004</link>
      <description>&lt;P&gt;You may need to do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my_index | where NOT match(hello_world, "\*")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jun 2011 16:50:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-value/m-p/26050#M5004</guid>
      <dc:creator>mw</dc:creator>
      <dc:date>2011-06-09T16:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: field value *</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-value/m-p/26051#M5005</link>
      <description>&lt;P&gt;You can also do simple string comparison in the where command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | where NOT hello_world="*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jun 2011 16:53:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-value/m-p/26051#M5005</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2011-06-09T16:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: field value *</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-value/m-p/26052#M5006</link>
      <description>&lt;P&gt;This is a known bug, which is present in the Release Notes' &lt;A href="http://www.splunk.com/base/Documentation/latest/ReleaseNotes/Knownissues"&gt;Known Issues &lt;/A&gt;page.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;There is no way to escape an asterisk (*) in the search language. (SPL-30079)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So you should go for the suggested workarounds...&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2011 17:15:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-value/m-p/26052#M5006</guid>
      <dc:creator>Paolo_Prigione</dc:creator>
      <dc:date>2011-06-09T17:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: field value *</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-value/m-p/26053#M5007</link>
      <description>&lt;P&gt;the match command works but it also seems to remove any other hello_world field values that contain an asterisk *. This could be a bit of a problem. Thanks mw. Ziegfried, your solution works as desired. Thanks again.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2011 09:39:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-value/m-p/26053#M5007</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2011-06-10T09:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: field value *</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-value/m-p/26054#M5008</link>
      <description>&lt;P&gt;I am good at finding Splunk bugs &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2011 09:42:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-value/m-p/26054#M5008</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2011-06-10T09:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: field value *</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-value/m-p/26055#M5009</link>
      <description>&lt;P&gt;match uses regular expressions, so you just needed to anchor it then: "where NOT match(hello_world, "^\*$")"&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2011 10:10:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-value/m-p/26055#M5009</guid>
      <dc:creator>mw</dc:creator>
      <dc:date>2011-06-10T10:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: field value *</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-value/m-p/26056#M5010</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;i know this is an old question, but i have a solution that worked for me, it is a bit hacky, but if your conscience allows you to live with that, here it is.&lt;/P&gt;

&lt;P&gt;rex mode=sed field=myfieldwithanasterisk "s/\*/ASTERISK/g"&lt;/P&gt;

&lt;P&gt;This will change the * to the word ASTERISK in the field myfieldwithanasterisk allowing you to then manipulate the field in anyway you want.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Darren&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2014 09:56:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-value/m-p/26056#M5010</guid>
      <dc:creator>darrend</dc:creator>
      <dc:date>2014-04-08T09:56:38Z</dc:date>
    </item>
  </channel>
</rss>

