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.
maxCount = getMaxCount()
Maximum number of results that each of the search job status buckets can contain.
var context = this.getContext();var search = context.get("search"); var maxCount = search.getMaxCount(); alert('maxCount = ' + escape(toString(maxCount)));