From 589e1bac3a2443927b4fc40a71bf44000e140f02 Mon Sep 17 00:00:00 2001 From: JakeConnors376W <46732192+JakeConnors376W@users.noreply.github.com> Date: Mon, 4 Mar 2019 11:17:19 -0800 Subject: [PATCH] Imrpove wording --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 58db2b1..6e271d7 100644 --- a/README.md +++ b/README.md @@ -1175,7 +1175,7 @@ logwatch's configuration file `/usr/share/logwatch/default.conf/logwatch.conf` s sudo chmod -x /etc/cron.daily/00logwatch.* ``` -1. By default, unless you changed it, logwatch sends output to `stdout`. Since the end goal is to get a daily e-mail, we need to change the output type that logwatch uses to send e-mail instead. We could do this through the configuration file above but that would apply to every time it is run -- even when we run it manually and want to see the output to the screen. Instead, we'll change the cron job that executes logwatch to send e-mail. That way, when we run it manually we'll still get output to `stdout` and when cron runs it we'll get an e-mail. We'll also make sure it checks for all services, and change the output format to html so it's easier to read regardless of what the configuration file says. In the file `/etc/cron.daily/00logwatch` find the execute line and change it to this: +1. By default, logwatch outputs to `stdout`. Since the goal is to get a daily e-mail, we need to change the output type that logwatch uses to send e-mail instead. We could do this through the configuration file above, but that would apply to every time it is run -- even when we run it manually and want to see the output to the screen. Instead, we'll change the cron job that executes logwatch to send e-mail. This way, when run manually, we'll still get output to `stdout` and when run by cron, it'll send an e-mail. We'll also make sure it checks for all services, and change the output format to html so it's easier to read regardless of what the configuration file says. In the file `/etc/cron.daily/00logwatch` find the execute line and change it to: ``` /usr/sbin/logwatch --output mail --format html --mailto root --mailfrom root --range yesterday --service all @@ -2571,4 +2571,4 @@ For any questions, comments, concerns, feedback, or issues, submit a [new issue] See [LICENSE](LICENSE.txt) for the full license. -([Table of Contents](#table-of-contents)) \ No newline at end of file +([Table of Contents](#table-of-contents))