Application Framework Reference

Splunk API

getEventCount()

The getEventCount() method gets the current count of available events within the context current search job.

Synopsis

count = getEventCount()

Return Value

Integer

Number of events available within the context search job.

Example

var context = this.getContext();var search  = context.get("search");
var eventCount = search.getEventCount();
alert('count = ' + escape(toString(eventCount)));
 

See Also

getEventAvailableCount()
setSelectedEventAvailableCount()
setSelectedEventCount()
Splunk.Context
Splunk.Job.getEventCount()