Redis /etc/logrotate.d/redis

Original 📋 Alpine Linux v3.21 4 lines

Works On

Viewing:
Alpine Linux v3.21
Same on:
Other versions:

Details

Size
4 lines
MD5
405016645cf56e005c37492d172a0a3e
SHA256
07b96ef6d16e7be1612c3af210e685b62a062ae235d2872985aa4fed8643c257
/etc/logrotate.d/redis
/var/log/redis/*.log {
   notifempty
   missingok
}

Copy & Paste

curl:
curl https://exampleconfig.com/api/v1/config/original/405016645cf56e005c37492d172a0a3e?hint=redis
wget:
wget -O redis https://exampleconfig.com/api/v1/config/original/405016645cf56e005c37492d172a0a3e?hint=redis

For AI Agents

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/405016645cf56e005c37492d172a0a3e?hint=redis' /><config><app>Redis</app><os>Alpine Linux v3.21</os><location>/etc/logrotate.d/redis</location><lines>4</lines><md5>405016645cf56e005c37492d172a0a3e</md5><sha256>07b96ef6d16e7be1612c3af210e685b62a062ae235d2872985aa4fed8643c257</sha256></config></prompt>

Paste into Claude, ChatGPT, or any AI assistant.

Install Redis

Alpine Linux

sudo apk add redis

Debian

sudo apt update && sudo apt install redis-server

Ubuntu

sudo apt update && sudo apt install redis-server

File Location

File Path
/etc/logrotate.d/redis
Directory
/etc/logrotate.d/
Significance
System-wide configuration directory
Description
Files in /etc/ contain system-wide configuration settings that affect all users.

FAQ

When should I use this redis?

Use it to restore a missing default, confirm what shipped, or diff against your current Redis config.

How do I restore Redis defaults?

Download the file, back up the current one in /etc/logrotate.d/redis, replace it, then reload or restart Redis.

Is redis safe for production?

It is the vendor default for Alpine Linux v3.21. Treat it as a baseline and review security and performance settings before production use.

How does this differ from other OS versions?

Defaults vary by distro and version. This copy matches Alpine Linux v3.21.

Can I use this for Redis troubleshooting?

Yes. Diff it against yours to find drift, then restore only the sections you need.