cub audit tail
cub audit tail
Print audit events as they are recorded
Synopsis
Print the audit events of the organization as they are recorded, one line each, until interrupted. It starts with the events recorded from now on.
An event's OccurredAt is when the transaction of the write it records started, and the event is seen only once that transaction commits. So each poll looks again over the minute before the server's time at the last poll, and prints only the events not printed yet. The event of a write whose transaction took longer than that minute is not printed.
Examples:
# Follow every audit event
cub audit tail
# Follow the refused writes
cub audit tail --where "Outcome = 'Denied'"
cub audit tail [flags]
Options
-h, --help help for tail
--include-hidden string[="*"] Also select hidden entities, to list or to act on: those hidden for the given HiddenReasons, comma-separated, as in --include-hidden=BackingUnit, or for any reason but Archived when given no value or "*". ConfigHub/YAML Units, which hold the configuration of other entities, are hidden with the reason BackingUnit. Archived entities are selected only when the reasons name Archived, as in --include-hidden=Archived or --include-hidden='*,Archived'. A --where naming entities by Slug or ID lists them whether hidden or not, but a bulk operation acts on archived ones only when --include-hidden names Archived
--where string Filter expression using SQL-inspired syntax. Supports conjunctions with AND. String operators: =, !=, <, >, <=, >=, LIKE, NOT LIKE, ILIKE, ~~, !~~, ~, ~*, !~, !~*. Pattern matching with LIKE/ILIKE uses % and _ wildcards. Regex operators (~, ~*, !~, !~*) support POSIX regular expressions. A related entity is referenced by prefix, as in "UpstreamUnit.Slug = 'base'"; when the reference names a list, a * segment matches any element, as in "FromLink.*.Slug = 'upgrade-app'". Examples: "Slug LIKE 'app-%'", "DisplayName ILIKE '%backend%'", "Slug ~ '^[a-z]+-[0-9]+$'". 'cub <entity> explain --where' lists the attributes an entity's expressions can name
Options inherited from parent commands
--context string The context to use for this command
--debug Debug output
SEE ALSO
- cub audit - Audit event commands