modify logrotate rule

This commit is contained in:
zhangnan 2024-10-28 17:27:16 +08:00 committed by root
parent 6d8077cdd1
commit c25c9fa6d1
2 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,27 @@
From 0d3323d13797f3f9d3124e3938787d2573bf249d Mon Sep 17 00:00:00 2001
From: zhangnan <zhangnan134@huawei.com>
Date: Mon, 28 Oct 2024 17:32:49 +0800
Subject: [PATCH] modify logrotate rule
---
config/logrotate | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/config/logrotate b/config/logrotate
index f54e7b3..e855118 100644
--- a/config/logrotate
+++ b/config/logrotate
@@ -1,8 +1,9 @@
/var/log/sysSentry/*.log {
- nocompress
+ compress
missingok
notifempty
copytruncate
rotate 2
size +4096k
+ hourly
}
--
2.33.0

View File

@ -4,7 +4,7 @@
Summary: System Inspection Framework
Name: sysSentry
Version: 1.0.2
Release: 62
Release: 63
License: Mulan PSL v2
Group: System Environment/Daemons
Source0: https://gitee.com/openeuler/sysSentry/releases/download/v%{version}/%{name}-%{version}.tar.gz
@ -78,6 +78,7 @@ Patch65: ai_block_io-support-absolute-threshold-lower-limit.patch
Patch66: ai_block_io-fix-some-config-parameters-parse-bug.patch
Patch67: fix-alarm_info-newline-break-error.patch
Patch68: get_alarm-d-abnomal-display.patch
Patch69: modify-logrotate-rule.patch
BuildRequires: cmake gcc-c++
BuildRequires: python3 python3-setuptools
@ -349,6 +350,12 @@ rm -rf %{buildroot}
%attr(0550,root,root) %{python3_sitelib}/sentryCollector/__pycache__/collect_plugin*
%changelog
* Mon Oct 28 2024 zhangnan <zhangnan134@huawei.com> - 1.0.2-63
- Type:bugfix
- CVE:NA
- SUG:NA
- DES:modify logrotate rule
* Mon Oct 28 2024 jinsaihang <jinsaihang@h-partners.com> - 1.0.2-62
- Type:bugfix
- CVE:NA