-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
consul logs by default to STDOUT which is captured by systemd on newer systems. On a sysv-init based system - like EL6 - we redirect that to our own logfile. Which then just grows continously. As enabling logging to syslog in consul does not silence output to stdout, we would now log twice. So on these systems we should logrotate that logfile to avoid growing the file endless.
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/var/log/consul { | ||
weekly | ||
missingok | ||
rotate 4 | ||
compress | ||
copytruncate | ||
notifempty | ||
create 600 consul consul | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters