1 |
diff -Nur --no-dereference smeserver-yum-2.6.0.old/root/etc/e-smith/templates/etc/rsyslog.conf/32yum smeserver-yum-2.6.0/root/etc/e-smith/templates/etc/rsyslog.conf/32yum |
2 |
--- smeserver-yum-2.6.0.old/root/etc/e-smith/templates/etc/rsyslog.conf/32yum 2022-04-17 13:58:39.463000000 -0400 |
3 |
+++ smeserver-yum-2.6.0/root/etc/e-smith/templates/etc/rsyslog.conf/32yum 2022-04-17 14:05:36.196000000 -0400 |
4 |
@@ -1,5 +1,4 @@ |
5 |
- |
6 |
- |
7 |
#yum |
8 |
-if $programname == "yum" and ( $msg startswith " Installed" or $msg startswith " Erased" or $msg startswith " Updated" ) then stop |
9 |
+if $programname startswith "yum_update_dbs" then /var/log/yum/yum-update.log |
10 |
+& stop |
11 |
|
12 |
diff -Nur --no-dereference smeserver-yum-2.6.0.old/root/etc/logrotate.d/yum-sme smeserver-yum-2.6.0/root/etc/logrotate.d/yum-sme |
13 |
--- smeserver-yum-2.6.0.old/root/etc/logrotate.d/yum-sme 1969-12-31 19:00:00.000000000 -0500 |
14 |
+++ smeserver-yum-2.6.0/root/etc/logrotate.d/yum-sme 2022-04-17 14:04:02.664000000 -0400 |
15 |
@@ -0,0 +1,15 @@ |
16 |
+/var/log/yum/yum.log { |
17 |
+ missingok |
18 |
+ notifempty |
19 |
+ maxsize 1M |
20 |
+ yearly |
21 |
+ create 0600 root root |
22 |
+} |
23 |
+/var/log/yum/yum-update.log { |
24 |
+ missingok |
25 |
+ notifempty |
26 |
+ maxsize 1M |
27 |
+ weekly |
28 |
+ create 0600 root root |
29 |
+} |
30 |
+ |