Splunk Search

Editable by users X and Y axis ranges

iKate
Builder

Hello, splunk experts!
Can you please advise me a way to make it posssible for the users to change ranges of X and Y axises of longtail diagram?

At the moment column diagram shows thousand of purchased items(on X axis) in descenting order by the number of purchases.

It is needed for users to change at a website where they see this statistics to choose first 30, 50, 70 items or range of items from 100-150, 150-250. This was about X axis.

And by Y axis it is needed to choose ranges: 0-500, 500-1000, >1000

Above the diagram I tried to create a table with clickable set of values where clicking any value should put this value to the search string (by using click.value2). Maybe I'm not very experienced in xml, but it didn't work.
I didn't find other way to create a table except adding to the end of the basic search a string:

...| setfields 30="30", 50="50", 70="70" | table 30 50 70 | head 1

But in my xml structure this table search replaces the main search and the diagram shows nothing.
At least how one should arrange xml modules to make this work?

Thanks in advance

0 Karma
1 Solution

iKate
Builder

Gyus, I tried to invent a bicycle! The next day this question was writen I found out that forms can completely solve my problem. Previously I used just dashboards. Now everything works pretty in the way that was described earlier.

View solution in original post

0 Karma

iKate
Builder

Gyus, I tried to invent a bicycle! The next day this question was writen I found out that forms can completely solve my problem. Previously I used just dashboards. Now everything works pretty in the way that was described earlier.

0 Karma
Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...