<?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: Custom fields not always showing up in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Custom-fields-not-always-showing-up/m-p/15718#M1968</link>
    <description>&lt;P&gt;Certain field extractions are automatic disabled in 4.1 when it appears that the field is not needed.  (An interactive search from splunk's web interface all fields are enabled.)&lt;/P&gt;

&lt;P&gt;I think all you should have to do is add a &lt;CODE&gt;fields&lt;/CODE&gt; command to your search.  Something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search | fields src_ip_addr
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You may also get the same effect by explicitly passing in the &lt;CODE&gt;required_field_list&lt;/CODE&gt; to your dispatch request.  (Was this just called &lt;CODE&gt;fields&lt;/CODE&gt; in a previous version of the API?  Maybe I'm remembering this incorrectly.)   It seems like this should do the trick too, but I'm not 100% sure.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jun 2010 02:55:42 GMT</pubDate>
    <dc:creator>Lowell</dc:creator>
    <dc:date>2010-06-18T02:55:42Z</dc:date>
    <item>
      <title>Custom fields not always showing up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-fields-not-always-showing-up/m-p/15717#M1967</link>
      <description>&lt;P&gt;I have a Splunk app that parses some Snort files and assigns some fields to the content.  The app works fine from the Splunk web page, but when I use the REST API (via Splunk for Java) I do not get my custom fields back unless they are in the search criteria.  For instance, if I search for "src_ip_addr=*" then I will get the fields back in the results, otherwise I don't.&lt;/P&gt;

&lt;P&gt;I used to get them back regardless in Splunk 4.0.  What do I need to change to get them to always come back for my sourcetype?&lt;/P&gt;

&lt;P&gt;Thanks for any help...&lt;/P&gt;

&lt;P&gt;-Brian&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2010 02:45:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-fields-not-always-showing-up/m-p/15717#M1967</guid>
      <dc:creator>klumpba</dc:creator>
      <dc:date>2010-06-18T02:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom fields not always showing up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-fields-not-always-showing-up/m-p/15718#M1968</link>
      <description>&lt;P&gt;Certain field extractions are automatic disabled in 4.1 when it appears that the field is not needed.  (An interactive search from splunk's web interface all fields are enabled.)&lt;/P&gt;

&lt;P&gt;I think all you should have to do is add a &lt;CODE&gt;fields&lt;/CODE&gt; command to your search.  Something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search | fields src_ip_addr
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You may also get the same effect by explicitly passing in the &lt;CODE&gt;required_field_list&lt;/CODE&gt; to your dispatch request.  (Was this just called &lt;CODE&gt;fields&lt;/CODE&gt; in a previous version of the API?  Maybe I'm remembering this incorrectly.)   It seems like this should do the trick too, but I'm not 100% sure.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2010 02:55:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-fields-not-always-showing-up/m-p/15718#M1968</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-06-18T02:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Custom fields not always showing up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-fields-not-always-showing-up/m-p/15719#M1969</link>
      <description>&lt;P&gt;Ah, thanks!  Tossing "fields" in there did the trick.  Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2010 22:57:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-fields-not-always-showing-up/m-p/15719#M1969</guid>
      <dc:creator>klumpba</dc:creator>
      <dc:date>2010-06-18T22:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom fields not always showing up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-fields-not-always-showing-up/m-p/15720#M1970</link>
      <description>&lt;P&gt;The other option is to use the required_field_list and status_bucket (anything over 0) during the POST:&lt;/P&gt;

&lt;P&gt;status_buckets = integer&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* defaults to 0.
* The most status buckets to generate. (0 = do not generate timeline information) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;required_field_list = (comma separated list)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* default to empty
* This is the list of required fields that, even if not referenced or used directly by the search, will still be included by the events and summary endpoints. 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Sep 2010 02:18:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-fields-not-always-showing-up/m-p/15720#M1970</guid>
      <dc:creator>kbains</dc:creator>
      <dc:date>2010-09-30T02:18:56Z</dc:date>
    </item>
  </channel>
</rss>

