stack kb discover-sessions search-discover-sessions cli command
elastic stack kb discover-sessions search-discover-sessions [options]
Search Discover sessions
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--pagenumber- The page of results to return.
--per-pagenumber- The number of results to return per page.
--querystring- Full-text search (
simple_query_string) overtitleanddescription. All terms must match. -
A tag ID to include. Accepts a single tag ID or multiple tag IDs. When multiple are specified, Discover sessions matching any of the tag IDs are included.
Repeatable: pass
--tagsmultiple times to supply more than one value -
A tag ID to exclude. Accepts a single tag ID or multiple tag IDs. When multiple are specified, Discover sessions matching any of the tag IDs are excluded.
Repeatable: pass
--excluded-tagsmultiple times to supply more than one value --tag-namesstring[]-
A tag name to include. Accepts a single tag name or multiple tag names. When multiple are specified, Discover sessions matching any of the tag names are included. If the same name is shared by multiple tags, sessions matching any of those tags are included.
Repeatable: pass
--tag-namesmultiple times to supply more than one value --excluded-tag-namesstring[]-
A tag name to exclude. Accepts a single tag name or multiple tag names. When multiple are specified, Discover sessions matching any of the tag names are excluded. If the same name is shared by multiple tags, sessions matching any of those tags are excluded.
Repeatable: pass
--excluded-tag-namesmultiple times to supply more than one value --input-filestring- path to a JSON file to use as command input
--dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--no-validate- skip input validation and send the request as-is
--output-fieldsstring- comma-separated list of fields to include in output (dot-notation supported)
--output-templatestring- Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
--json-
output as JSON