Setup logwatch » Historie » Version 2
Jeremias Keihsler, 05.09.2024 09:06
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 9.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 | dnf install logwatch |
||
18 | </code></pre> |
||
19 | |||
20 | h2. Configure |
||
21 | |||
22 | 2 | Jeremias Keihsler | the default output is to stdout |
23 | the cron.daily call is using the option @--output mail@ |
||
24 | |||
25 | if you still want to override default output from stdout to mail then |
||
26 | 1 | Jeremias Keihsler | <pre><code class="bash"> |
27 | vim /etc/logwatch/conf/logwatch.conf |
||
28 | </code></pre> |
||
29 | <pre> |
||
30 | # Local configuration options go here (defaults are in /usr/share/logwatch/default.conf/logwatch.conf) |
||
31 | Output = mail |
||
32 | </pre> |
||
33 | |||
34 | h3. reduce noise in output |
||
35 | |||
36 | see also https://bugzilla.redhat.com/show_bug.cgi?id=1231364#c38 |
||
37 | Just for the records: logwatch uses Perl style regexes in @ignore.conf@ . So look at |
||
38 | |||
39 | <pre><code class="bash"> |
||
40 | man 1 perlre |
||
41 | </code></pre> |
||
42 | |||
43 | <pre><code class="bash"> |
||
44 | vim /etc/logwatch/conf/ignore.conf |
||
45 | </code></pre> |
||
46 | <pre> |
||
47 | ###### REGULAR EXPRESSIONS IN THIS FILE WILL BE TRIMMED FROM REPORT OUTPUT ##### |
||
48 | #JKE 2022-06-06 |
||
49 | libpod-.*\.scope: (Succeeded|Consumed) |
||
50 | session-.*\.scope: (Succeeded|Consumed) |
||
51 | </pre> |