- remove another xntpd service logs

- add sshd logs with two spaces after the date tag
This commit is contained in:
Ivana Varekova 2007-04-13 13:48:56 +00:00
parent 03b34c7d95
commit 11079669c9
3 changed files with 31 additions and 1 deletions

11
logwatch-7.3.4-sshd.patch Normal file
View File

@ -0,0 +1,11 @@
--- logwatch-7.3.4/scripts/shared/onlyservice.pom 2005-12-01 00:52:27.000000000 +0100
+++ logwatch-7.3.4/scripts/shared/onlyservice 2007-04-13 15:15:15.000000000 +0200
@@ -20,7 +20,7 @@
}
while (defined($ThisLine = <STDIN>)) {
- if ($ThisLine =~ m/^... .. ..:..:.. [^ ]* $ServiceName\[[0123456789]*\]: /io) {
+ if ($ThisLine =~ m/^... .. ..:..:..[ ]*[^ ]* $ServiceName\[[0123456789]*\]: /io) {
print $ThisLine;
}
elsif ($ThisLine =~ m/^... .. ..:..:.. [^ ]* [^ ]*\[[0123456789]*\]: \[ID [0-9]+ $ServiceName/io) {

View File

@ -0,0 +1,11 @@
--- logwatch-7.3.4/scripts/services/xntpd.pom 2007-04-13 15:22:15.000000000 +0200
+++ logwatch-7.3.4/scripts/services/xntpd 2007-04-13 15:38:30.000000000 +0200
@@ -106,7 +106,7 @@
($ThisLine =~ m/signal_no_reset: signal \d+ had flags \d+/) or
($ThisLine =~ /Deleting interface \#[0-9] [^,]*, [^,]*, interface stats: received=.*, sent=.*, dropped=.*, active_time=.* secs/) or
($ThisLine =~ /Invalid argument/) or
- ($ThisLine =~ /Listening on interface #[0-9]* (vmnet[0-9]|eth[0-9]|lo), [0-9a-z:.]+\#[0-9]* Enabled/) or
+ ($ThisLine =~ /Listening on interface #[0-9]* (vmnet[0-9]|eth[0-9]|lo|tun[0-9]), [0-9a-z:.]+\#[a-z0-9]* Enabled/) or
($ThisLine =~ /Listening on interface #[0-9]* wildcard, [0-9a-z:.]+\#[0-9]* Disabled/)
) {
# Ignore these

View File

@ -1,7 +1,7 @@
Summary: A log file analysis program
Name: logwatch
Version: 7.3.4
Release: 5%{?dist}
Release: 6%{?dist}
License: MIT
Group: Applications/System
URL: http://www.logwatch.org/
@ -11,6 +11,8 @@ Patch2: logwatch-7.3.1-vsftpd.patch
Patch3: logwatch-7.3.4-pam_unix.patch
Patch4: logwatch-7.3.4-secure.patch
Patch5: logwatch-7.3.4-xntpd.patch
Patch6: logwatch-7.3.4-sshd.patch
Patch7: logwatch-7.3.4-xntpd2.patch
Requires: textutils sh-utils grep mailx
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -29,6 +31,8 @@ of the package on many systems.
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%build
@ -142,6 +146,10 @@ rm -rf %{buildroot}
%doc License project/CHANGES
%changelog
* Fri Apr 13 2007 Ivana Varekova <varekova@redhat.com> 7.3.4-6
- remove another xntpd service logs
- add sshd logs with two spaces after the date tag
* Tue Apr 10 2007 Ivana Varekova <varekova@redhat.com> 7.3.4-5
- logwatch will ignore more useless secure logs