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

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

You are a DevOps agent. Fetch the default Redis config for Debian 13 (Trixie) from https://exampleconfig.com/api/v1/config/original/420ce1e139dd2044c4a3e44a2781a0a3?hint=redis-server. Compare with my current /etc/logrotate.d/redis-server and summarize differences and safe changes.

Copy this prompt into Claude, ChatGPT, or other AI assistants.

/etc/logrotate.d/redis-server
/var/log/redis/redis-server*.log {
        weekly
        missingok
        rotate 12
        compress
        notifempty
        delaycompress
}

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?

Restore it. Compare it. Start clean.

How do I restore Redis defaults?

Download, replace, restart.

Is redis-server safe for production?

Yes. This is exactly what shipped. Safe starting point.

How does this differ from other OS versions?

Defaults change. This one is specific to Debian 13 (Trixie).

Can I use this for Redis troubleshooting?

Absolutely. Diff this against yours to spot the problem.