Splunk Search

How to make table row count 100 over?

cucuro11
Explorer

Hello, All

In Splunk Enterprise 8.0.1,
I searched "index=_internal | table _raw" and Visualization with Table.

I'd like to make Table rows over 100. But How to I can't find.

Is there a way to remove this limitation and visualize more than 100 rows?

0 Karma
1 Solution

vnravikumar
Champion

Hi

Check the below sample, here i had specified 200 rows in javascript

<dashboard script="pagesize.js">
  <label>table</label>
  <row>
    <panel>
      <table id="rk">
        <search>
          <query>index=_internal | table _raw</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</dashboard>

javascript:

require([
    "jquery", 
    "splunkjs/mvc", 
    "splunkjs/mvc/tableview",
    "splunkjs/mvc/simplexml/ready!"], function($, mvc, TableView) {
        var myTable = mvc.Components.get('rk');
        myTable.getVisualization(function(tableview) {
            tableview.settings.set("pageSize", 200);
        });
    });

View solution in original post

vnravikumar
Champion

Hi

Check the below sample, here i had specified 200 rows in javascript

<dashboard script="pagesize.js">
  <label>table</label>
  <row>
    <panel>
      <table id="rk">
        <search>
          <query>index=_internal | table _raw</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</dashboard>

javascript:

require([
    "jquery", 
    "splunkjs/mvc", 
    "splunkjs/mvc/tableview",
    "splunkjs/mvc/simplexml/ready!"], function($, mvc, TableView) {
        var myTable = mvc.Components.get('rk');
        myTable.getVisualization(function(tableview) {
            tableview.settings.set("pageSize", 200);
        });
    });

Levi
Observer

oh!!! good job, Perfect solution to my problem.Thanks!

0 Karma

cucuro11
Explorer

thank you. It's done...!!! 🙂 Good!.
Thank you for your help.

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...