In Splunk 6.x, XML no longer works; instead, you must modify the JS.
I modified the JS in the following file:
share/splunk/search_mrsparkle/exposed/js/build/searchpage.js
First I de-minified the JS. Searching the file, I find:
this.children.count = new s({
modelAttribute: "display.prefs.events.count",
model: this.model.content,
items: [{
value: "10",
label: _("10 Per Page").t()
}, {
value: "20",
label: _("20 Per Page").t()
}, {
value: "50",
label: _("50 Per Page").t()
}],
save: !2,
elastic: !0,
menuWidth: "narrow",
toggleClassName: "btn-pill",
popdownOptions: {
attachDialogTo: "body"
}
I modify this to read:
this.children.count = new s({
modelAttribute: "display.prefs.events.count",
model: this.model.content,
items: [{
value: "10",
label: _("10 Per Page").t()
}, {
value: "20",
label: _("20 Per Page").t()
}, {
value: "50",
label: _("50 Per Page").t()
}, {
value: "100",
label: _("100 Per Page").t()
}, {
value: "250",
label: _("250 Per Page").t()
}],
save: !4,
elastic: !0,
menuWidth: "narrow",
toggleClassName: "btn-pill",
popdownOptions: {
attachDialogTo: "body"
}
In other words, I add 100 and 250 as options, and I make 250 the standard option. I then minify the JS file. (I realize it may be possible to modify files in the views directory, e.g., share/splunk/search_mrsparkle/exposed/js/views/search/results/eventspane/controls/Master.js, in order to add the improved selections, but I have not tested it.)
Once I restart splunkd and splunkweb, and of course make certain to flush the cache on the browser, the 250 options appears.
I modified my $SPLUNK_HOME/etc/apps/*/local/savesearches.conf as well as the one in $SPLUNK_HOME/etc/system/local to include, at the top,
[default]
display.prefs.events.count = 250
which seems to have reset searches to use 250 as the default display. I modified individual saved searches as needed, and I have also gone through viewstates.conf and modified the mysterious, apparently-undocumented Count* lines to 250 instead of their default 50.
However, to date, I have not been able to get my standard search page to pre-select 250 as the default; it always comes up as the standard 50 per page. At the moment, I use "?display.prefs.events.count=250" appended to the URL of the bookmarked search page to force the page into default display of 250 results per page, and wouldn't mind hearing if someone has managed to get the default search page to work without this workaround.
... View more