ansible-redis icon indicating copy to clipboard operation
ansible-redis copied to clipboard

Consider logrotate for redis logs when not sent to syslog

Open life5ign opened this issue 2 years ago • 0 comments

Thanks, great project!

I'd like to separate my redis logs from syslog, since I monitor that with Loki, and the sheer volume of redis logs in syslog swamps out the other stuff I want to query. So, it would be useful to use a different log location (currently possible here), but it would need to be rotated.

Have you considered this as a feature, perhaps using another role for the purpose (EDIT: https://github.com/nickhammond/ansible-logrotate), or is there some feature in redis I don't know about that keeps the log file down to size? Does the current alternate log file grow to an unbounded size, risking bricking the system?

life5ign avatar May 12 '23 17:05 life5ign