Dashboards & Visualizations

How can I improve the performance of dropdown load on dashboards?

egid_la
Explorer

I'm currently running Splunk 6.5.3

I created a form which is designed to present business codes based on an input multi select.

I used a search which returns results on last 24 hours but it slow.(~ 3000 business codes)

I tried to use the inputlookup command to retrieve the data instead of the current search but it still slow on last 24 hours. (~ 3000 business codes)

I guess it's related to the size because if i change time to 4 hours, it's faster.

How can i improve the performance of drop down load on dashboards?

0 Karma
1 Solution

Runals
Motivator

When you say you used a lookup command are you saying the query behind the multi select is doing | inputlookup .... ? I'd generally recommend having a scheduled search run that populates that lookup to keep it updated and query from there. This would make the process of finding the business codes much faster vs having to extract the information from the raw data. From what you mention though there could be an issue as the UI tries to iterate over the 3k options.

View solution in original post

0 Karma

niketn
Legend

@egid_la for community to assist you with performance tune your multi select you would need to provide your current search (with mocked up field names if required).

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

egid_la
Explorer

| inputlookup business_codes.csv
| stats by PART
| table PART

business_codes

AXX
BXX
CXX
DXX
EXX
...
(~ 3000 results)

0 Karma

niketn
Legend

You are showing values as business_codes but stats and table use field as PART. Not sure which one is correct, but hoping you are interested in business_codes have you tried dedup command?

| inputlookup business_codes.csv 
| dedup business_codes 
| table business_codes 
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

egid_la
Explorer

Yes excuse me,

| inputlookup business_codes.csv
| rename PART AS business_codes
| stats by business_codes
| table business_codes

business_codes
AXX
BXX
CXX
DXX
EXX
...
(~ 3000 results)

0 Karma

egid_la
Explorer

Same result for dedup

0 Karma

niketn
Legend

How about the following:

| inputlookup business_codes.csv
| table PART
| dedup PART
| rename PART as business_codes

Here, rename is done after dedup.
You dont have to stress too much since you already have a solution that works 🙂

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

egid_la
Explorer

Ok i know now thanks

0 Karma

Runals
Motivator

When you say you used a lookup command are you saying the query behind the multi select is doing | inputlookup .... ? I'd generally recommend having a scheduled search run that populates that lookup to keep it updated and query from there. This would make the process of finding the business codes much faster vs having to extract the information from the raw data. From what you mention though there could be an issue as the UI tries to iterate over the 3k options.

0 Karma

egid_la
Explorer

Yes it's | inputlookup.
I tried scheduled search it's faster.
Thanks

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi egid_la,
when I have so many items I prefer to use a text box instead of dropdown.
Eventually putting *before and after input.

In this way there aren't problems in loading.
To have more performaces I suggest to use a lookup or a txidx file (txcollect).

Bye.
Giuseppe

0 Karma

egid_la
Explorer

What do you mean by putting *before and after input ?
Thanks

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi egid_la,
to take a substring with * vefore and after, something like this:

<input type="text" token="filter">
  <label>Filter</label>
  <initialValue></initialValue>
  <prefix>*</prefix>
  <suffix>*</suffix>
</input>

Bye.
Giuseppe

0 Karma

egid_la
Explorer

Hi cusello,

It's clear now

Bye

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...