Application Framework Reference

Splunk API

getMaxCount()

The getMaxCount() method gets the search max count setting.

maxEvents maps to the splunkd REST API setting max_count , which is an optional argument specifying the maximum number of results that each of a search job's status buckets can contain. If the search is non-transforming, operates on only raw events, maxEvents has precedence. If the search is transforming, uses stats/timechart or similar, maxCount has precedence.

Synopsis

maxCount = getMaxCount()

Return Value

Integer

Maximum number of results that each of the search job status buckets can contain.

Example

var context = this.getContext();var search  = context.get("search");
var maxCount = search.getMaxCount();
alert('maxCount = ' + escape(toString(maxCount)));
 

See Also

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