Redis /etc/logrotate.d/redis-server

Original 📋 Ubuntu 22.04 LTS (Jammy Jellyfish) 7 lines

Works On

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

Details

Size
7 lines
MD5
f4b38d0bd720dea3edc8b96b8502447d
SHA256
ee04e03947b3353ea645afe0c36088758e283f3c2170a8a288d85fb2913f83c1
/etc/logrotate.d/redis-server
/var/log/redis/redis-server*.log {
        weekly
        missingok
        rotate 12
        compress
        notifempty
}

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

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/f4b38d0bd720dea3edc8b96b8502447d?hint=redis-server' /><config><app>Redis</app><os>Ubuntu 22.04 LTS (Jammy Jellyfish)</os><location>/etc/logrotate.d/redis-server</location><lines>7</lines><md5>f4b38d0bd720dea3edc8b96b8502447d</md5><sha256>ee04e03947b3353ea645afe0c36088758e283f3c2170a8a288d85fb2913f83c1</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 Ubuntu 22.04 LTS (Jammy Jellyfish). 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 Ubuntu 22.04 LTS (Jammy Jellyfish).

Can I use this for Redis troubleshooting?

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