logrotate
logrotate copied to clipboard
Dockerized Logrotate. Attach, Compress, Rotate!
Hello, we would like to use * to match all potential candidates, the reason is our service might generate logs with timestamp as suffix. Thank you.
Any way to log rotate a subfolder of a volume? I've tried: ``` volumes: - /var/lib/docker/volumes/wp_docker_litespeed_lsws_sites/_data/localhost/wp_logs:/var/log/wp ``` and `LOGS_DIRECTORIES: "/var/lib/docker/containers /var/log/docker /var/lib/docker/volumes /var/log/wp"`
Hi I'm not sure if this container is abandonware or not, but I just discovered and implemented it, and it seems perfect for me with one small exception. I have...
executing: /bin/bash -c /usr/bin/logrotate.d/update-logrotate.sh; /usr/sbin/logrotate --state=/logrotate-status/logrotate.status /usr/bin/logrotate.d/logrotate.conf find: "/var/log/docker: No such file or directory find: /var/log/nginx": No such file or directory ``` ├── docker-compose.yml └── logs ├── file.log └── nginx...
I will stop supporting and implementing Docker images starting in early 2019. Repositories will be transferred to blacklabelops-legacy and archived for read only purpose. The following repositories and images are...
I'm using this in my docker-compose.yml: ``` logrotate: image: "blacklabelops/logrotate" volumes: - /var/lib/docker/containers:/var/lib/docker/containers environment: - LOGS_DIRECTORIES=/var/lib/docker/containers - LOGROTATE_INTERVAL=hourly - LOGROTATE_COPIES=7 - LOGROTATE_SIZE=10M - LOGROTATE_COMPRESSION=compress ``` I don't see any compression...
`-L` option is missing in `find` invocation in that script.
In reference to: https://github.com/blacklabelops/logrotate/issues/25 **Problem use case** Say a given log file has no user/group mapping present in the `logrotate` container. `logrotate` will attempt to rotate the file as `root`....
I want to rotate log files right now with `-e "LOGROTATE_PARAMETERS=f"`. But it's inoperative.
Standard init linux error showed up. I updated entry point from #!/bin/bash to #!/bin/sh as it works for many people but it didn't work for me. Any suggestion to solve...