Application Framework Reference

Splunk API

getSearchId()

The getSearchId() getter method gets the current job search identifier.

Synopsis

searchID = getSearchId()

Return Value

String

Current job search identifier.

Example

var context = this.getContext();
var search = context.get('search');
console.log('Search ID: ' + search.job.getSearchId());
 

See Also

getSearch()
getSID()
setSearchId()
setSID()