Redis /etc/logrotate.d/redis-server

Original ๐Ÿ“‹ Debian 9 (Stretch) 7 lines

Works On

Viewing:
Debian 9 (Stretch)
Same on:
Debian 10 (Buster) Debian 11 (Bullseye) Ubuntu 18.04 LTS (Bionic Beaver) Ubuntu 20.04 LTS (Focal Fossa) Ubuntu 22.04 LTS (Jammy Jellyfish)
Other versions:

Details

Size
7 lines
MD5
f4b38d0bd720dea3edc8b96b8502447d
SHA256
ee04e03947b3353ea645afe0c36088758e283f3c2170a8a288d85fb2913f83c1

Copy & Paste

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

For AI Agents

You are a DevOps agent. Fetch the default Redis config for Debian 9 (Stretch) from https://exampleconfig.com/api/v1/config/original/f4b38d0bd720dea3edc8b96b8502447d?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
}

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 9 (Stretch).

Can I use this for Redis troubleshooting?

Absolutely. Diff this against yours to spot the problem.