Dashboards & Visualizations

How can I change the number of rows per page based on a drop-down menu selection?

tgdvopab
Path Finder

I want to have a drop-down menu which can change the displayed number of rows.
My drop-down looks like:

  <input type="dropdown" token="token_number_of_rows" searchWhenChanged="true">
    <label>Select number of rows</label>
    <choice value="10">10</choice>
    <choice value="15">15</choice>
    <choice value="20">20</choice>
    <choice value="25">25</choice>
    <choice value="30">30</choice>
    <choice value="35">35</choice>
    <choice value="40">40</choice>
    <choice value="45">45</choice>
    <choice value="50">50</choice>
    <default>20</default>
  </input>

And I want to change the value below with the the value of the drop-down:

option name="count">$noofrows$

But I receive the following error message:

XML Syntax Error: invalid literal for int() with base 10: '$token_number_of_rows$'

Is there a way to fix this problem?
Thanks! 🙂

jmallorquin
Builder

Hi,

You can set in the panel de number 10000 and in the query filter the eventes with |head $token_number_of_rows$

Hope i help you.

tgdvopab
Path Finder

Thanks this worked for me.
Unfortunately I cant navigate through the other pages.
Only the ones who are included in the "head" are present.

0 Karma

tgdvopab
Path Finder

the dropdown in xml should look as the following:
option name="count">$token_number_of_rows$

0 Karma

earakam
Path Finder

Hi
has this been solved? because i'm getting the same error.

0 Karma

tgdvopab
Path Finder

no sorry, it has not been sovled until today

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...