Chris Gondolin Logrotate
- By Chris Stratford
- Monitoring
Channel | Revision | Published | Runs on |
---|---|---|---|
latest/stable | 5 | 18 Mar 2021 | |
latest/edge | 5 | 18 Mar 2021 |
juju deploy chris-gondolin-logrotate
Deploy universal operators easily with Juju, the Universal Operator Lifecycle Manager.
Platform:
-
application_name | string
Default: logrotate
Operating name of the charm
-
compress | string
Default: compress
Whether to compress logfiles (compress or nocompress)
-
dateext | string
Default: dateext
Log rotation style (dateext or nodateext)
-
group | string
Default: adm
Logfile group
-
logfiles | string
Default: {}
Per logfile settings. This should be JSON-formatted object where each name/value pair describes a specific logfile containing any overrides from the defaults plus three additions: a mandatory "path" to the logfiles and optional "prerotate" and "postrotate" for pre- and post-rotate commands. e.g.: '{"apache2":{"path":"/var/log/apache2/*.log","period":"7","postrotate":"/etc/init.d/apache2 reload > /dev/null"}}
-
owner | string
Default: root
Logfile owner
-
period | string
Default: 365
How many logs we should keep before they get deleted
-
perms | string
Default: 0644
Logfile permissions (as chmod)
-
when | string
Default: daily
When the logs should be rotated (daily, weekly, etc.)