<?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: Search for field with '*' in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-for-field-with/m-p/60601#M14905</link>
    <description>&lt;P&gt;Something like this should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"query" | regex _raw="(?i)query=\"*\""
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but that'll be awful inefficient since it will return all lines with "query" (presumably every record in your index for this sourcetype) then filter based on the regex. You'll be better off if you can add additional criteria to filter it, or replace the * character at index time using SEDCMD, for instance...&lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2013 22:02:27 GMT</pubDate>
    <dc:creator>jeff</dc:creator>
    <dc:date>2013-03-13T22:02:27Z</dc:date>
    <item>
      <title>Search for field with '*'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-field-with/m-p/60600#M14904</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I need to search for logs with only &lt;CODE&gt;query="*"&lt;/CODE&gt; but when I am putting in my search its fetching all the logs with &lt;CODE&gt;query="*", query="logo", query="link"&lt;/CODE&gt;, since Spluk is treating * as wildcard. So what should be the query ? My logs below :&lt;/P&gt;

&lt;P&gt;INFO 2013-03-13 14:03:15 endPoint=search,host=168.94.64.138,remoteAdress=167.209.125.121,query="*",brand_facet=All Chairs,status="Success"&lt;/P&gt;

&lt;P&gt;INFO 2013-03-13 14:07:35 endPoint=search,host=168.94.64.138,remoteAdress=167.209.125.121,query="logo",brand_facet=Logo Chairs,status="Success"&lt;/P&gt;

&lt;P&gt;INFO 2013-03-13 14:09:41 endPoint=search,host=168.94.64.138,remoteAdress=167.209.125.121,query="link",brand_facet=Link Chairs,status="Success"&lt;/P&gt;

&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2013 21:31:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-field-with/m-p/60600#M14904</guid>
      <dc:creator>Jiten009</dc:creator>
      <dc:date>2013-03-13T21:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Search for field with '*'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-field-with/m-p/60601#M14905</link>
      <description>&lt;P&gt;Something like this should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"query" | regex _raw="(?i)query=\"*\""
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but that'll be awful inefficient since it will return all lines with "query" (presumably every record in your index for this sourcetype) then filter based on the regex. You'll be better off if you can add additional criteria to filter it, or replace the * character at index time using SEDCMD, for instance...&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2013 22:02:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-field-with/m-p/60601#M14905</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2013-03-13T22:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Search for field with '*'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-field-with/m-p/60602#M14906</link>
      <description>&lt;P&gt;I'm not sure how efficient this will be, but it's worth a try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;query&amp;gt;="*" query&amp;lt;="*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Mar 2013 22:20:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-field-with/m-p/60602#M14906</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-13T22:20:05Z</dc:date>
    </item>
  </channel>
</rss>

