<?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 How to display a table that shows all rows without pagination? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-a-table-that-shows-all-rows-without-pagination/m-p/388813#M113363</link>
    <description>&lt;P&gt;I need to display a table that will show all the rows without pagination. I have already tried using "showPager" option in XML but it just removed the pagination and still displays 100 rows only. Is there a way to set the row count to unlimited?&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2019 07:16:30 GMT</pubDate>
    <dc:creator>marxsabandana</dc:creator>
    <dc:date>2019-05-22T07:16:30Z</dc:date>
    <item>
      <title>How to display a table that shows all rows without pagination?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-a-table-that-shows-all-rows-without-pagination/m-p/388813#M113363</link>
      <description>&lt;P&gt;I need to display a table that will show all the rows without pagination. I have already tried using "showPager" option in XML but it just removed the pagination and still displays 100 rows only. Is there a way to set the row count to unlimited?&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 07:16:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-a-table-that-shows-all-rows-without-pagination/m-p/388813#M113363</guid>
      <dc:creator>marxsabandana</dc:creator>
      <dc:date>2019-05-22T07:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a table that shows all rows without pagination?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-a-table-that-shows-all-rows-without-pagination/m-p/388814#M113364</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Check my solution whether it helps you&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/726097/can-you-help-me-with-an-issue-with-dashboard-rows.html#answer-726848"&gt;https://answers.splunk.com/answers/726097/can-you-help-me-with-an-issue-with-dashboard-rows.html#answer-726848&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 07:51:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-a-table-that-shows-all-rows-without-pagination/m-p/388814#M113364</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-05-22T07:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a table that shows all rows without pagination?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-a-table-that-shows-all-rows-without-pagination/m-p/388815#M113365</link>
      <description>&lt;P&gt;&lt;STRONG&gt;[UPDATED Code works in 7.2.6 but not on 7.3.0]&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Just found out that while this worked in &lt;CODE&gt;7.2.6&lt;/CODE&gt;, it does not work in &lt;CODE&gt;7.3.0&lt;/CODE&gt;. Something is broken because it does not work in intended way anymore. So, Simple XML JS extension will be required to read the &lt;CODE&gt;$job.resultCount$&lt;/CODE&gt; token and render table with same number of rows and hence remove pagination.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;@marxsabandana try the following run anywhere dashboard example using &lt;STRONG&gt;Simple XML&lt;/STRONG&gt; which gets the result count from the search result using default search token &lt;CODE&gt;$job.resultCount$&lt;/CODE&gt; that needs to be populated in the table, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;done&amp;gt;
   &amp;lt;set token="tokRowsPerPage"&amp;gt;$job.resultCount$&amp;lt;/set&amp;gt;
 &amp;lt;/done&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then passes the count to the table option:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="count"&amp;gt;$tokRowsPerPage$&amp;lt;/option&amp;gt;`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: &lt;BR /&gt;
1) Post processing using search id &lt;CODE&gt;srchForTbl&lt;/CODE&gt; has been used to get the result count from search and then add the dependency of token &lt;CODE&gt;tokRowsPerPage&lt;/CODE&gt; to the table so that the table renders only after the token is set.&lt;BR /&gt;
2) I have used &lt;CODE&gt;| fields - $tokRowsPerPage$&lt;/CODE&gt; for adding token dependency to the table search however, you can use &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Search/Addcommentstosearches#Using_the_comment_macro"&gt;comment&lt;/A&gt; macro instead.&lt;BR /&gt;
3) If you know an upper limit of table with all the records you can set the same using &lt;CODE&gt;&amp;lt;init&amp;gt;&lt;/CODE&gt; section to set the token in the dashboard and &lt;CODE&gt;step 1 with post processing will not be required&lt;/CODE&gt;.&lt;BR /&gt;
4) This would work on Splunk 6.5 or higher.&lt;BR /&gt;
Following is the complete Simple XML code for the run anywhere example.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Table Pagination&amp;lt;/label&amp;gt;
  &amp;lt;search id="srchForTbl"&amp;gt;
    &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level!=INFO
| timechart span=5m count by component limit=5 useother=f
| streamstats count as sno
| fields sno *&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
    &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
    &amp;lt;done&amp;gt;
      &amp;lt;set token="tokRowsPerPage"&amp;gt;$job.resultCount$&amp;lt;/set&amp;gt;
    &amp;lt;/done&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;&amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;input type="text" token="testTextBox" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;(Testing) Rows per page based on Search Result&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;$tokRowsPerPage$&amp;lt;/default&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search base="srchForTbl"&amp;gt;
          &amp;lt;query&amp;gt;| fields - $tokRowsPerPage$&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;$tokRowsPerPage$&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please try out and confirm!&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 15:01:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-a-table-that-shows-all-rows-without-pagination/m-p/388815#M113365</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-05-22T15:01:54Z</dc:date>
    </item>
  </channel>
</rss>

