From ddfe95e45d98d1e7a6496d2499e2e44a023135be Mon Sep 17 00:00:00 2001 From: "Thibault \"bui\" Koechlin" Date: Thu, 28 Apr 2022 17:19:03 +0200 Subject: [PATCH] user lumberjack rotate instead (#1492) --- config/config.yaml | 3 +++ debian/crowdsec.logrotate | 9 --------- 2 files changed, 3 insertions(+), 9 deletions(-) delete mode 100644 debian/crowdsec.logrotate diff --git a/config/config.yaml b/config/config.yaml index 79552a033..f2783dbfc 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -4,6 +4,9 @@ common: log_media: file log_level: info log_dir: /var/log/ + log_max_size: 20 + compress_logs: true + log_max_files: 10 working_dir: . config_paths: config_dir: /etc/crowdsec/ diff --git a/debian/crowdsec.logrotate b/debian/crowdsec.logrotate deleted file mode 100644 index ff1e12b7b..000000000 --- a/debian/crowdsec.logrotate +++ /dev/null @@ -1,9 +0,0 @@ -/var/log/crowdsec.log -/var/log/crowdsec_api.log -{ - rotate 4 - daily - compress - missingok - notifempty -}