commands()
Table of Contents
Definition
commands() takes a search string or a column containing a search string as an argument. The function returns a list of commands used in the search string as a multivalued column.
Examples
The following example returns commands that has been used in the example query search foo | stats count | sort count.
| makeresults
| eval x=commands("search foo | stats count | sort count")