Splunk Search

Increase the number of values shown for selected fields

theouhuios
Motivator

Is there a way to increase the number of values shown for selected fields from 10 to 20-25? A customer has put in a request today for this and I have no clue on if this is possible.

Tags (1)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

There's no intended configuration for this... however you could touch some JavaScript inappropriately to get this:

alt text

However, changes down there likely aren't supported, certainly won't survive an update, and may have unforeseen side effects... so I'm not quite sure if you want to go down that route.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

The fetchSummary in share/splunk/search_mrsparkle/exposed/js/controllers/BaseSearch.js calls this REST endpoint http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTsearch#search.2Fjobs.2F.7Bsearch_id.7... which by default returns top 10 values per field. By adding top_count: 20 to the data passed to the REST endpoint you can make it return more values. After that change you'll have to rebuild the search page in share/splunk/search_mrsparkle/exposed/js/profiles.

Note, the 10 is also hard-coded into some views, as you can see from my screenshot: "Top 10 Values".

0 Karma

theouhuios
Motivator

Hello martin, Can you please let me know which js has to be tweaked. I will not be using this on a regular purpose. But would still like to know incase I need it once in a while.

0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...