mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-19 01:58:44 +08:00
* feat: add `tctl investigate` command Add a tctl subcommand that searches Teleport's Identity Security activity logs. The command exposes structured filter flags mirroring the Identity Security UI: ~19 include/exclude pairs mapping to Lucene fields (user, resource, IP, country, etc.). Multiple values on the same flag are OR'd; different flags are AND'd. `--query` accepts a raw Lucene expression for cases the structured flags can't express (wildcards, regex, OR across fields) and is mutually exclusive with the structured filters. Facets and events are fetched in parallel via errgroup. `total` is derived from the `event_type` facet on the stats endpoint, so it can drift a few percent from `len(data)` on long windows. This PR ships JSON/YAML output only. Text rendering, the geo filter, and the `--skill` flag land in the next PR in the stack. * fix: address codex suggestions * fix: update flag description