<?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 search for &amp;quot;*&amp;quot; (asterisk) values in a field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-quot-quot-asterisk-values-in-a-field/m-p/283576#M85698</link>
    <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | where TYPE="*"                  ***to filter rows with TYPE=*
your base search | where TYPE="***"                  ***to filter rows with TYPE=***
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 05 Apr 2016 14:55:33 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-04-05T14:55:33Z</dc:date>
    <item>
      <title>How to search for "*" (asterisk) values in a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-quot-quot-asterisk-values-in-a-field/m-p/283575#M85697</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have TYPE field, that have a value of *, **, ***.&lt;/P&gt;

&lt;P&gt;When I'm trying to |search TYPE="*" (all of the events will be shown, all of the values) &lt;BR /&gt;
and when I use  |regex TYPE="\*"  (all of the *,**,** will be shown.)&lt;/P&gt;

&lt;P&gt;I need help for searching * ,**, *** in a specific field.. &lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 07:31:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-quot-quot-asterisk-values-in-a-field/m-p/283575#M85697</guid>
      <dc:creator>kendelar</dc:creator>
      <dc:date>2016-04-05T07:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for "*" (asterisk) values in a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-quot-quot-asterisk-values-in-a-field/m-p/283576#M85698</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | where TYPE="*"                  ***to filter rows with TYPE=*
your base search | where TYPE="***"                  ***to filter rows with TYPE=***
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Apr 2016 14:55:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-quot-quot-asterisk-values-in-a-field/m-p/283576#M85698</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-04-05T14:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for "*" (asterisk) values in a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-quot-quot-asterisk-values-in-a-field/m-p/283577#M85699</link>
      <description>&lt;P&gt;Welp, just came across your question and was wondering the same thing, not great news:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Splunk SPL uses the asterisk ( * ) as a wildcard character. The backslash cannot be used to escape the asterisk in search strings.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Search/SPLandregularexpressions"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Search/SPLandregularexpressions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 04:15:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-quot-quot-asterisk-values-in-a-field/m-p/283577#M85699</guid>
      <dc:creator>ElijahLynn</dc:creator>
      <dc:date>2018-02-22T04:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for "*" (asterisk) values in a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-quot-quot-asterisk-values-in-a-field/m-p/283578#M85700</link>
      <description>&lt;P&gt;We just tried this, and indeed you can use "&lt;EM&gt;" in a `where fieldname="&lt;/EM&gt;"` query, and it will work.  No backslash required.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 22:02:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-quot-quot-asterisk-values-in-a-field/m-p/283578#M85700</guid>
      <dc:creator>sleepingstarfir</dc:creator>
      <dc:date>2019-08-01T22:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for "*" (asterisk) values in a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-quot-quot-asterisk-values-in-a-field/m-p/283579#M85701</link>
      <description>&lt;P&gt;You can also do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval has_asterisks=if(like(field, "%*%"), 1, 0)
| where has_asterisks=1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Nov 2019 17:20:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-quot-quot-asterisk-values-in-a-field/m-p/283579#M85701</guid>
      <dc:creator>johnebgood</dc:creator>
      <dc:date>2019-11-15T17:20:39Z</dc:date>
    </item>
  </channel>
</rss>

