Setup logwatch » Historie » Version 2
Jeremias Keihsler, 06.06.2022 16:33
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 | yum install logwatch |
||
18 | </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 | |||
35 | <pre><code class="bash"> |
||
36 | vim /etc/logwatch/conf/ignore.conf |
||
37 | </code></pre> |
||
38 | <pre> |
||
39 | ###### REGULAR EXPRESSIONS IN THIS FILE WILL BE TRIMMED FROM REPORT OUTPUT ##### |
||
40 | #JKE 2022-06-06 |
||
41 | libpod-.*\.scope: (Succeeded|Consumed) |
||
42 | session-.*\.scope: (Succeeded|Consumed) |
||
43 | </pre> |