Knowledge Management

best practice for search

jangid
Builder

I have a dashboard and in this dashboard I can provide search criteria in two way.

  1. mysearch
  2. savedsearch

Which one is best approach? I can achieve my goal with both of them but just want to know is there any performance improvement?

Thanks

Tags (1)
0 Karma
1 Solution

Drainy
Champion

Saved searches always offer the best performance as Splunk will check to see if the same search is already being executed or if it has any saved results and use those.

If you just put an inline search then every time the dashboard is loaded it will execute the search, that means that if 4 users access the same dashboard it will fire 4 times. If it was a saved search then all 4 users would load the 1 set of search results.

View solution in original post

Drainy
Champion

Saved searches always offer the best performance as Splunk will check to see if the same search is already being executed or if it has any saved results and use those.

If you just put an inline search then every time the dashboard is loaded it will execute the search, that means that if 4 users access the same dashboard it will fire 4 times. If it was a saved search then all 4 users would load the 1 set of search results.

Drainy
Champion

Did you use the usehistory option I explained in another window? Also you need to schedule the search, that way it will load the search at the scheduled time and then dashboards will load the cached results and NOT run the search

0 Karma

jangid
Builder

Hi Drainy sorry to bother you again.
but there is no difference in both search.
I tried with saved search and taking same time, there is no performance improvement even if I open in multiple browser window it'll take same amount of time for all instance.

0 Karma

Drainy
Champion

Splunk will store it as you will have to change the permissions so it is available to the app or globally for it to work across all users anyway 🙂

0 Karma

jangid
Builder

Thanks Drainy,
do you mean splunk will store the result somewhere or user stored search result?

If savedsearch is good for app then is it good to create some saved search and distribute with app in default/savedsearches.conf?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Event Series: Telemetry Pipeline Management

Balancing Scale and Spend: Gaining Control Over High-Volume Metrics in Splunk Observability Cloud As ...

Kick the Tires Before You Commit: A Hands-On Tour of the Splunk Observability Cloud ...

Evaluating an enterprise observability platform usually goes like this: fill out a form, get a free trial with ...

Deep insights, no barriers: Splunk Observability Cloud Free Edition

As software delivery cycles continue to accelerate, observability shouldn’t be a luxury — it should be a ...