Skip to content

Fix logrotate for nginx#1380

Merged
Gabriella439 merged 1 commit intomasterfrom
gabriella/fix_logging
Jun 12, 2024
Merged

Fix logrotate for nginx#1380
Gabriella439 merged 1 commit intomasterfrom
gabriella/fix_logging

Conversation

@Gabriella439
Copy link
Copy Markdown
Contributor

Roughly four years ago the default log directory for nginx changed from /var/spool/nginx/logs to /var/log/nginx:

NixOS/nixpkgs#85862

This caused /var/log/nginx/access.log to accumulate four years worth of logs (currently ≈27 GB at the time of this writing).

The fix is to update the logrotate script to point to the new log directory.

I also went ahead and simplified the postrotate script

Roughly four years ago the default log directory for `nginx` changed
from `/var/spool/nginx/logs` to `/var/log/nginx`:

NixOS/nixpkgs#85862

This caused `/var/log/nginx/access.log` to accumulate four years worth
of logs (currently ≈27 GB at the time of this writing).

The fix is to update the `logrotate` script to point to the new log
directory.
@Gabriella439 Gabriella439 merged commit 4895b7c into master Jun 12, 2024
@Gabriella439 Gabriella439 deleted the gabriella/fix_logging branch June 12, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants