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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...