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
Currently audit logs are written to the database, but access to them requires querying the table directly. A
gort logscommand would be very helpful.gort:auditorpermission.--from <date>-- Start date/time--to <date>-- End date/time--duration <time>--fromspecified: the amount of time forward from thefromdate/time--tospecified: the amount of time backwards from thetodate/time-f-- FollowThis will require the following changes: