gort icon indicating copy to clipboard operation
gort copied to clipboard

Idea: A `gort logs` command to allow easier access to audit logs

Open clockworksoul opened this issue 2 years ago • 0 comments

Currently audit logs are written to the database, but access to them requires querying the table directly. A gort logs command would be very helpful.

  • It should only be available to users with the gort:auditor permission.
  • Possible flags:
    • --from <date> -- Start date/time
    • --to <date> -- End date/time
    • --duration <time>
      • If --from specified: the amount of time forward from the from date/time
      • If --to specified: the amount of time backwards from the to date/time
      • Else, the amount of time backwards from now
    • -f -- Follow

This will require the following changes:

  • Support in the DAL
  • Support in the service
  • Support in the CLI client
  • New commands

clockworksoul avatar Nov 16 '21 18:11 clockworksoul