Application Framework Reference

Splunk API

toString()

The toString() method gets the current search as a string, for textual representation of the search.

Synopsis

search = toString()

Return Value

String

Current search, as either full search with intentions or base search.

Example

var context = this.getContext();var search  = context.get("search");
alert(escape(search.toString()));
 

See Also

getBaseSearch()