Application Framework Reference

Splunk API

setMaxCount()

The setMaxCount() method sets the search maxCount property, specifying the maximum number of results that each of a search job status buckets can contain.

Note: In general, the default maxCount value should not be changed. Also, if the search is dispatched with status_buckets >= 1 , the maxCount setting are ignored by splunkd.

Synopsis

setMaxCount( maxCount )

Parameters

maxCount

Integer

Maximum job status bucket results count. Default = 10,000.

Return Value

Undefined

Example

var context = this.getContext();var search  = context.get("search");
search.setMaxCount(31337);
context.set('search', search);
return context;
 

See Also

getMaxCount()
getMaxEvents()
getMaxTime()
getMinimumStatusBuckets()
setMaxEvents()
setMaxTime()
setMinimumStatusBuckets()
Splunk.Context