<?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: Maximum output of fieldsummary (or table *) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Maximum-output-of-fieldsummary-or-table/m-p/366079#M165305</link>
    <description>&lt;P&gt;Try something like this... &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | rename _time as time 
 | fields - _*
 | rename time as _time 
 | fields * 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;rename&lt;/CODE&gt; lines are only required if you have a &lt;CODE&gt;_time&lt;/CODE&gt; value you want to retain.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;For table &lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Table"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Table&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Truncated results&lt;/STRONG&gt;&lt;BR /&gt;
The &lt;CODE&gt;table&lt;/CODE&gt; command truncates the number of results returned based on settings in the &lt;CODE&gt;limits.conf&lt;/CODE&gt; file. In the &lt;CODE&gt;[search]&lt;/CODE&gt; stanza, if the value for the &lt;CODE&gt;truncate_report&lt;/CODE&gt; parameter is &lt;CODE&gt;1&lt;/CODE&gt;, the number of results returned is truncated.&lt;/P&gt;

&lt;P&gt;The number of results is controlled by the &lt;CODE&gt;max_count&lt;/CODE&gt; parameter in the &lt;CODE&gt;[search]&lt;/CODE&gt; stanza. If &lt;CODE&gt;truncate_report&lt;/CODE&gt; is set to &lt;CODE&gt;0&lt;/CODE&gt;, the &lt;CODE&gt;max_count&lt;/CODE&gt; parameter is not applied.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2017 17:01:39 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-11-10T17:01:39Z</dc:date>
    <item>
      <title>Maximum output of fieldsummary (or table *)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Maximum-output-of-fieldsummary-or-table/m-p/366078#M165304</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have a large data set with lots of fields and I want that in a table. However this is not working correctly.&lt;BR /&gt;
When I test  with | fieldsummary I also get strange results.&lt;/P&gt;

&lt;P&gt;First I select data&lt;/P&gt;

&lt;P&gt;sourcetype=senssordata sensortype="sensortypeA"  | fieldsummary&lt;/P&gt;

&lt;P&gt;Gives me all fields related to this selection of one sensortype. The majority of the fields are parameter names, for example: PARA1, PARA2, PARA3, etc...&lt;/P&gt;

&lt;P&gt;When I transform this in a table by using &lt;BR /&gt;
sourcetype=senssordata sensortype="sensortypeA"  | table *&lt;BR /&gt;
The same fields are presented in the table.&lt;/P&gt;

&lt;P&gt;Now I add more sensortypes to my search&lt;/P&gt;

&lt;P&gt;sourcetype=senssordata sensortype IN ("sensortypeA", "sensortypeB","sensortypeC" | fieldsummary&lt;BR /&gt;
Still no problem. (also the table * works fine)&lt;BR /&gt;
I receive more PARAx fields because not every sensortype has the same parameter set.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;However when I select more sensortypes it start to go wrong&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;sourcetype=senssordata sensortype IN ("sensortypeA", ....."sensortypeZ" | fieldsummary&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Some PARA values that were in the initial fieldsummary outputs are gone.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The table output also fails:&lt;BR /&gt;
sourcetype=senssordata sensortype IN ("sensortypeA", ....."sensortypeZ"  | table *&lt;BR /&gt;
The fields presented in the fieldsummary are in the table but it is also incomplete.&lt;/P&gt;

&lt;P&gt;Is it possible that both fieldsummary and table* can retrieve a maximum number of extracted fields. It looks like a limit around 100 fields. And can this limit be adjusted?&lt;/P&gt;

&lt;P&gt;[EDIT] After some extra testing,&lt;BR /&gt;
Again with sourcetype=senssordata sensortype IN ("sensortypeA", ....."sensortypeZ" | fieldsummary&lt;/P&gt;

&lt;P&gt;I know for sure that I'm missing fields. For example PARA2 is missing in this fieldsummary (as it is available when the search is limited to only a few sensortypes) &lt;/P&gt;

&lt;P&gt;However, when I adjust the query to&lt;BR /&gt;
sourcetype=senssordata sensortype IN ("sensortypeA", ....."sensortypeZ"  | fields PARA2 | fieldsummary&lt;BR /&gt;
Then PARA2 is back again (and only PARA2 because I did not select more)&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 15:50:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Maximum-output-of-fieldsummary-or-table/m-p/366078#M165304</guid>
      <dc:creator>FrankSPL</dc:creator>
      <dc:date>2017-11-10T15:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum output of fieldsummary (or table *)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Maximum-output-of-fieldsummary-or-table/m-p/366079#M165305</link>
      <description>&lt;P&gt;Try something like this... &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | rename _time as time 
 | fields - _*
 | rename time as _time 
 | fields * 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;rename&lt;/CODE&gt; lines are only required if you have a &lt;CODE&gt;_time&lt;/CODE&gt; value you want to retain.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;For table &lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Table"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Table&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Truncated results&lt;/STRONG&gt;&lt;BR /&gt;
The &lt;CODE&gt;table&lt;/CODE&gt; command truncates the number of results returned based on settings in the &lt;CODE&gt;limits.conf&lt;/CODE&gt; file. In the &lt;CODE&gt;[search]&lt;/CODE&gt; stanza, if the value for the &lt;CODE&gt;truncate_report&lt;/CODE&gt; parameter is &lt;CODE&gt;1&lt;/CODE&gt;, the number of results returned is truncated.&lt;/P&gt;

&lt;P&gt;The number of results is controlled by the &lt;CODE&gt;max_count&lt;/CODE&gt; parameter in the &lt;CODE&gt;[search]&lt;/CODE&gt; stanza. If &lt;CODE&gt;truncate_report&lt;/CODE&gt; is set to &lt;CODE&gt;0&lt;/CODE&gt;, the &lt;CODE&gt;max_count&lt;/CODE&gt; parameter is not applied.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 17:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Maximum-output-of-fieldsummary-or-table/m-p/366079#M165305</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-11-10T17:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum output of fieldsummary (or table *)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Maximum-output-of-fieldsummary-or-table/m-p/366080#M165306</link>
      <description>&lt;P&gt;Thanks for your response however it does not lead to an answer. &lt;BR /&gt;
I did try the rename _time part but that does not seem to make much difference.&lt;/P&gt;

&lt;P&gt;The limits parts seems interesting but if I read it correctly the max_count is NOT applied when truncate_report is set to 0, which seems to be the default setting. There is no custom limits.conf that changed this default so I assume this limit is not the one I'm hitting.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:45:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Maximum-output-of-fieldsummary-or-table/m-p/366080#M165306</guid>
      <dc:creator>FrankSPL</dc:creator>
      <dc:date>2020-09-29T16:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum output of fieldsummary (or table *)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Maximum-output-of-fieldsummary-or-table/m-p/366081#M165307</link>
      <description>&lt;P&gt;I found out myself!  I was hitting the kv limit of 100 (max 100 automated field extractions)&lt;/P&gt;

&lt;P&gt;limit.conf&lt;BR /&gt;
[kv]&lt;BR /&gt;
limit = 1000&lt;/P&gt;

&lt;P&gt;For info:&lt;BR /&gt;
I did some more testing&lt;BR /&gt;
sourcetype=senssordata sensortype= "sensortypeA" | fieldsummaryo&lt;BR /&gt;
versus&lt;BR /&gt;
sourcetype=senssordata sensortype= "*" | where   sensortype= "sensortypeA" | fieldsummary&lt;BR /&gt;
does also give a different output.&lt;/P&gt;

&lt;P&gt;On step back.&lt;BR /&gt;
sourcetype=senssordata sensortype= "sensortypeA"&lt;BR /&gt;
versus&lt;BR /&gt;
sourcetype=senssordata sensortype= "*" | where   sensortype= "sensortypeA"&lt;/P&gt;

&lt;P&gt;Also lists a different list of automated field extractions!&lt;/P&gt;

&lt;P&gt;At the end I fount out the defaut behaviour of splunk is to limit the amount of automated field extractions to 100 !&lt;/P&gt;

&lt;P&gt;I adjusted this in the limits.conf to 1000 and now everything seems to work.&lt;BR /&gt;
All different behavior can be explained by selection various sensortypes and hitting the 100 sooner or later. At the end I have +/- 550 different parameter types / field extractions.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Nov 2017 09:34:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Maximum-output-of-fieldsummary-or-table/m-p/366081#M165307</guid>
      <dc:creator>FrankSPL</dc:creator>
      <dc:date>2017-11-12T09:34:27Z</dc:date>
    </item>
  </channel>
</rss>

