1 |
diff -Nur e-smith-openssh-2.6.0.old/root/etc/e-smith/templates/etc/rsyslog.conf/32sshd e-smith-openssh-2.6.0/root/etc/e-smith/templates/etc/rsyslog.conf/32sshd |
2 |
--- e-smith-openssh-2.6.0.old/root/etc/e-smith/templates/etc/rsyslog.conf/32sshd 1969-12-31 19:00:00.000000000 -0500 |
3 |
+++ e-smith-openssh-2.6.0/root/etc/e-smith/templates/etc/rsyslog.conf/32sshd 2021-02-18 23:11:58.454000000 -0500 |
4 |
@@ -0,0 +1,6 @@ |
5 |
+ |
6 |
+#sshd |
7 |
+:programname, isequal, "sshd" /var/log/sshd/sshd.log |
8 |
+:programname, isequal, "sshd" stop |
9 |
+ |
10 |
+ |
11 |
diff -Nur e-smith-openssh-2.6.0.old/root/etc/logrotate.d/sshd e-smith-openssh-2.6.0/root/etc/logrotate.d/sshd |
12 |
--- e-smith-openssh-2.6.0.old/root/etc/logrotate.d/sshd 1969-12-31 19:00:00.000000000 -0500 |
13 |
+++ e-smith-openssh-2.6.0/root/etc/logrotate.d/sshd 2021-02-18 23:13:02.453000000 -0500 |
14 |
@@ -0,0 +1,13 @@ |
15 |
+/var/log/sshd/sshd.log |
16 |
+{ |
17 |
+ missingok |
18 |
+ notifempty |
19 |
+ sharedscripts |
20 |
+ delaycompress |
21 |
+ su root root |
22 |
+ create 600 root root |
23 |
+ postrotate |
24 |
+ /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true |
25 |
+ endscript |
26 |
+} |
27 |
+ |