Projekt

Allgemein

Profil

Setup logwatch » Historie » Version 4

Jeremias Keihsler, 03.04.2024 16:52

1 1 Jeremias Keihsler
h1. Install Procedure for logwatch
2
3
h2. Requirements
4
5
To install logwatch you will need the following:
6
* a installed and supported operating system (e.g. CentOS 8.x)
7
* root-access
8
* a fast internet connection
9
10
h2. Preliminary Note
11
12
h2. Install 
13
14
Install @logwatch@:
15
16
<pre><code class="bash">
17 4 Jeremias Keihsler
dnf install logwatch
18 1 Jeremias Keihsler
</code></pre>
19
20
h2. Configure 
21
22
override default output to stdout by
23
<pre><code class="bash">
24
vim /etc/logwatch/conf/logwatch.conf
25
</code></pre>
26
<pre>
27
# Local configuration options go here (defaults are in /usr/share/logwatch/default.conf/logwatch.conf)
28
Output = mail
29
</pre>
30 2 Jeremias Keihsler
31
h3. reduce noise in output
32
33
see also https://bugzilla.redhat.com/show_bug.cgi?id=1231364#c38
34 3 Jeremias Keihsler
Just for the records: logwatch uses Perl style regexes in @ignore.conf@ . So look at
35
36
<pre><code class="bash">
37
man 1 perlre
38
</code></pre>
39 2 Jeremias Keihsler
40
<pre><code class="bash">
41
vim /etc/logwatch/conf/ignore.conf
42
</code></pre>
43
<pre>
44
###### REGULAR EXPRESSIONS IN THIS FILE WILL BE TRIMMED FROM REPORT OUTPUT #####
45
#JKE 2022-06-06
46
libpod-.*\.scope: (Succeeded|Consumed)
47
session-.*\.scope: (Succeeded|Consumed)
48
</pre>