gort
gort copied to clipboard
Idea: A `gort logs` command to allow easier access to audit logs
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 thefrom
date/time - If
--to
specified: the amount of time backwards from theto
date/time - Else, the amount of time backwards from now
- If
-
-f
-- Follow
-
This will require the following changes:
- Support in the DAL
- Support in the service
- Support in the CLI client
- New commands