Setup logwatch » Historie » Revision 2
Revision 1 (Jeremias Keihsler, 22.11.2022 08:53) → Revision 2/3 (Jeremias Keihsler, 22.11.2022 10:55)
h1. Setup logwatch taken from https://ubuntu.com/server/docs/logwatch <pre><code class="shell"> sudo apt install logwatch </code></pre> You will also need to manually create its temporary directory in order for it to work: <pre><code class="shell"> sudo mkdir /var/cache/logwatch </code></pre> Logwatch’s stock configuration is kept in /usr/share/logwatch/default.conf/logwatch.conf, however rather than edit our configuration changes directly to that file, the convention is to copy it into /etc for modification: <pre><code class="shell"> sudo cp /usr/share/logwatch/default.conf/logwatch.conf /etc/logwatch/conf/ </code></pre> With your favorite editor, open /etc/logwatch/conf/logwatch.conf. The uncommented lines indicate the default configuration values. First, lets customize some of the basics: <pre> Output = mail # MailTo = me@mydomain.org # MailFrom = logwatch@host1.mydomain.org # Detail = Low # Service = All </pre>