<?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 a field whose value is * in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154632#M43483</link>
    <description>&lt;P&gt;Give us a sample event that you're wanting to match, please.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2013 08:28:38 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2013-11-25T08:28:38Z</dc:date>
    <item>
      <title>How to search for a field whose value is *</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154629#M43480</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have a field whose value is "*", When i use that field value pair splunk is assuming it as a wildcard and returning all values. I am not sure how to search with such a value.&lt;/P&gt;

&lt;P&gt;Cheers&lt;BR /&gt;
mohan&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2013 07:15:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154629#M43480</guid>
      <dc:creator>mohankesireddy</dc:creator>
      <dc:date>2013-11-25T07:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a field whose value is *</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154630#M43481</link>
      <description>&lt;P&gt;Hi mohankesireddy,&lt;/P&gt;

&lt;P&gt;you can use something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YourFancySearchCommand | regex _raw="(?i)YourFieldName=\"*\""
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this will search for all &lt;CODE&gt;YourFieldName's&lt;/CODE&gt; which has a value of *&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2013 07:27:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154630#M43481</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-11-25T07:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a field whose value is *</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154631#M43482</link>
      <description>&lt;P&gt;Thanks MuS for the quick reply, I tried the above regex but it is not working. my search&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=main host=myapp sourcetype=myaccess | regex _raw="(?i)file_name=\"*\""&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I am not getting results.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2013 08:15:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154631#M43482</guid>
      <dc:creator>mohankesireddy</dc:creator>
      <dc:date>2013-11-25T08:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a field whose value is *</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154632#M43483</link>
      <description>&lt;P&gt;Give us a sample event that you're wanting to match, please.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2013 08:28:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154632#M43483</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-11-25T08:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a field whose value is *</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154633#M43484</link>
      <description>&lt;P&gt;You can use following to get only the rows which have field="*".&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your base search | regex yourfield="[*]" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Nov 2013 17:06:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154633#M43484</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-11-25T17:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a field whose value is *</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154634#M43485</link>
      <description>&lt;P&gt;You cannot use the "*" in a key value pair search, but as the two folks suggested you can use a post-filtering regex.&lt;/P&gt;

&lt;P&gt;The book recommends &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|regex ".*\*.*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But, if the value is exactly "*" then  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|regex "\*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;should work for you.&lt;/P&gt;

&lt;P&gt;Here is the search syntax doc:&lt;BR /&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Search/Aboutsearchlanguagesyntax"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/Search/Aboutsearchlanguagesyntax&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2013 17:31:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154634#M43485</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-11-25T17:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a field whose value is *</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154635#M43486</link>
      <description>&lt;P&gt;Thanks Mate it worked&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2013 23:01:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154635#M43486</guid>
      <dc:creator>mohankesireddy</dc:creator>
      <dc:date>2013-11-25T23:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a field whose value is *</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154636#M43487</link>
      <description>&lt;P&gt;Thanks for all the answers &lt;/P&gt;

&lt;P&gt;both the below searches worked&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your base search | regex yourfield="[*]"

|regex "\*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Nov 2013 23:03:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154636#M43487</guid>
      <dc:creator>mohankesireddy</dc:creator>
      <dc:date>2013-11-25T23:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a field whose value is *</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154637#M43488</link>
      <description>&lt;P&gt;Thanks for all the answers &lt;/P&gt;

&lt;P&gt;both the below searches worked&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your base search | regex yourfield="[*]"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|regex "\*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Nov 2013 23:04:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154637#M43488</guid>
      <dc:creator>mohankesireddy</dc:creator>
      <dc:date>2013-11-25T23:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a field whose value is *</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154638#M43489</link>
      <description>&lt;P&gt;Thanks for the answer it worked&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2013 23:07:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154638#M43489</guid>
      <dc:creator>mohankesireddy</dc:creator>
      <dc:date>2013-11-25T23:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a field whose value is *</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154639#M43490</link>
      <description>&lt;P&gt;No no no, you need to choose.  The price of asking a question is you have to accept an answer if you get one.  If there is more then one working answer, then you need to accept my answer.&lt;BR /&gt;
somesoni2 is not the droid you're looking for.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2013 00:49:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-a-field-whose-value-is/m-p/154639#M43490</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-11-26T00:49:10Z</dc:date>
    </item>
  </channel>
</rss>

