Redis /etc/logrotate.d/redis-server

Original 📋 Debian 13 (Trixie) 8 lines

Works On

Viewing:
Debian 13 (Trixie)
Same on:
Debian 12 (Bookworm) Ubuntu 24.04 LTS (Noble Numbat)
Other versions:

Details

Size
8 lines
MD5
420ce1e139dd2044c4a3e44a2781a0a3
SHA256
fdf1d4461183c190594bd95e665eb3486ba3e11b93f9668cb7537b2d8944a4b4
/etc/logrotate.d/redis-server
/var/log/redis/redis-server*.log {
        weekly
        missingok
        rotate 12
        compress
        notifempty
        delaycompress
}

Copy & Paste

curl:
curl https://exampleconfig.com/api/v1/config/original/420ce1e139dd2044c4a3e44a2781a0a3?hint=redis-server
wget:
wget -O redis-server https://exampleconfig.com/api/v1/config/original/420ce1e139dd2044c4a3e44a2781a0a3?hint=redis-server

For AI Agents

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/420ce1e139dd2044c4a3e44a2781a0a3?hint=redis-server' /><config><app>Redis</app><os>Debian 13 (Trixie)</os><location>/etc/logrotate.d/redis-server</location><lines>8</lines><md5>420ce1e139dd2044c4a3e44a2781a0a3</md5><sha256>fdf1d4461183c190594bd95e665eb3486ba3e11b93f9668cb7537b2d8944a4b4</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-server
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-server?

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-server, replace it, then reload or restart Redis.

Is redis-server safe for production?

It is the vendor default for Debian 13 (Trixie). 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 Debian 13 (Trixie).

Can I use this for Redis troubleshooting?

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