Skip to main content

Indexer

When enabled, indexes the contents of executions (sessions) made by users in which you could use a powerful query syntax to search.

Indexed Fields

FIELD NAMETYPEDESCRIPTION
sessionkeywordthe id of the session
userkeywordthe id of the user
connectionkeywordthe connection name of this session
connection_typekeywordthe connection type of this session
verbkeywordthe type of the execution (exec,connect)
sizenumericthe size in bytes indexed
inputstringthe input sent by the user
outputstringoutput returned from the remote service
errorbooleanif the execution returned an error
starteddatetimewhen the execution started
completeddatetimewhen the execution ended
durationnumericthe duration of the session in seconds

Scope Searching

The scope of the search is bound for non-admin users. Only admin users can search for sessions that belongs to other users using the qualifier user:<user-email>.

Content Truncation

The fields input and output are indexed truncated when it reaches 600KB. You are able to filter sessions truncated using is:truncated in:<input|output> qualifiers.

Session Indexing

Content is indexed if the plugin is enabled, configured for a particular connection and after the session is closed. Additionally, a job is started daily at 23:30 UTC to index all sessions that are enabled for connections. It index the last 45 days by default.

Experimental Client

You can try the search api with the hoop command line, consult the search syntax page to see how to interact with the API.

hoop search <QUERY>
Search for content in sessions

Usage:
hoop search QUERY [flags]

Flags:
--facets strings The facets to display, [connection,connection_type,user,error,verb,duration]
--fields strings The fields to display
-f, --file string The path of the file containing the bleve index
-h, --help help for search
-l, --limit int The max results to return (default 50)
-m, --mark Highlight results
-o, --offset int The offset to paginate results