stack kb saved-objects get-saved-objects-find cli command
elastic stack kb saved-objects get-saved-objects-find --type <type> [options]
Search for saved objects
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--typestring[]required-
The saved object type or types to search for. Use multiple
typevalues to search across types.Repeatable: pass
--typemultiple times to supply more than one value --per-pagenumber- The number of items per page.
--pagenumber- The page index to return.
--searchstring- A text search string.
--default-search-operatorenum-
The boolean operator to use when combining multiple values.
Values: OR, AND
--search-fieldsstring[]-
The fields to search on.
Repeatable: pass
--search-fieldsmultiple times to supply more than one value --sort-fieldstring- The field to sort on.
--has-referencestring-
Return only saved objects that have a reference to the specified saved object(s).
Repeatable: pass
--has-referencemultiple times to supply more than one value --has-reference-operatorenum-
The boolean operator to use when combining multiple values.
Values: OR, AND
--has-no-referencestring-
Return only saved objects that do not have a reference to the specified saved object(s).
Repeatable: pass
--has-no-referencemultiple times to supply more than one value --has-no-reference-operatorenum-
The boolean operator to use when combining multiple values.
Values: OR, AND
--fieldsstring[]-
The fields to return for each saved object.
Repeatable: pass
--fieldsmultiple times to supply more than one value --filterstring- A KQL filter to apply to the search.
--aggsstring- Aggregations as a JSON string.
--namespacesstring[]-
The namespaces (spaces) to search in.
Repeatable: pass
--namespacesmultiple 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