Menu

Tree [88df91] master 7.13 /
 History

HTTPS access


File Date Author Commit
 conf 2025-06-23 Orion Poplawski Orion Poplawski [36eb45] [logstash] Remove script - needs update to Logw...
 doc 2022-10-08 Jason Pyeron Jason Pyeron [4cc503] [syslog-ng] add XML support
 lib 2022-02-07 bjorn bjorn [6473fa] [Logwatch.pm,named,secure] Setting global defau...
 scheduler 2019-10-30 bjorn bjorn [e8ca7f] [systemd.conf] Removed --mailto option, per Amish.
 scripts 4 days ago bjorn bjorn [88df91] [logwatch] Preparation for Release 7.13
 HOWTO-Customize-LogWatch 2025-01-10 Orion Poplawski Orion Poplawski [892b3e] Remove trailing whitespace
 LICENSE 2021-01-03 bjorn bjorn [276a78] [LICENSE, conf/html/footer] Updated Copyright n...
 README 2025-01-10 Orion Poplawski Orion Poplawski [892b3e] Remove trailing whitespace
 amavis-logwatch.1 2025-01-10 Orion Poplawski Orion Poplawski [892b3e] Remove trailing whitespace
 ignore.conf.5 2010-05-11 Mike Tremaine Mike Tremaine [1aebee] New man pages from Ivana and mysql and http-err...
 install_logwatch.sh 2025-01-10 Orion Poplawski Orion Poplawski [892b3e] Remove trailing whitespace
 logwatch.8 2025-04-06 bjorn bjorn [ca25f6] [logwatch.8] Clarified use of debug.
 logwatch.conf.5 2018-12-27 bjorn bjorn [cb0baf] Corrected file names under FILES
 logwatch.spec 4 days ago bjorn bjorn [88df91] [logwatch] Preparation for Release 7.13
 override.conf.5 2010-05-11 Mike Tremaine Mike Tremaine [1aebee] New man pages from Ivana and mysql and http-err...
 postfix-logwatch.1 2025-01-10 Orion Poplawski Orion Poplawski [892b3e] Remove trailing whitespace

Read Me

What is Logwatch?

Logwatch is a customizable, pluggable log-monitoring system.  It will go
through your logs for a given period of time and make a report in the areas
that you wish with the detail that you wish.

Perl 5.8 or newer is recommended to run Logwatch. [But it will work with 5.6.1+]

------------------------------------------------------------------

How do I install it?

An rpm file is available.  The following describes how to install if you
prefer to install from the source tar file:

The simplest setup is to follow the default configurations.
Simply make a directory (/usr/share/logwatch) and copy the
scripts, conf, and lib directories into that directory.
You will also need to make the /etc/logwatch dir if you want to make
configuration changes without having to modify the default config files.

The steps to follow to get the default setup going are something like this.
[However we recommend using the install_logwatch.sh script when possible.]

Untar logwatch.
cd logwatch-x.x
mkdir /etc/logwatch
mkdir /etc/logwatch/scripts
mkdir /etc/logwatch/conf
mkdir /etc/logwatch/conf/logfiles
mkdir /etc/logwatch/conf/services
touch /etc/logwatch/conf/logwatch.conf
touch /etc/logwatch/conf/ignore.conf
touch /etc/logwatch/conf/override.conf

mkdir /usr/share/logwatch
mkdir /usr/share/logwatch/dist.conf
mkdir /usr/share/logwatch/dist.conf/logfiles
mkdir /usr/share/logwatch/dist.conf/services

mv conf/ /usr/share/logwatch/default.conf
mv scripts/ /usr/share/logwatch/scripts
mv lib /usr/share/logwatch/lib

mkdir /var/cache/logwatch
ln -s /usr/share/logwatch/scripts/logwatch.pl /etc/cron.daily/0logwatch
ln -s /usr/share/logwatch/scripts/logwatch.pl /usr/sbin/logwatch

Instead of cron you may also use systemd timer unit for scheduled runs:
mv logwatch.service /etc/systemd/system
mv logwatch.timer /etc/systemd/system
systemd enable logwatch.timer

This is only a suggestion and if you look at the logwatch.pl script and the
logwatch.conf file you will see that you can configure the system layout in many
different ways.

See also the file HOWTO-Customize-LogWatch for more information.

------------------------------------------------------------------

How do I use it?

Well, it should pretty much work on its own, sending you an
email every night.  For more configuration options, run
'logwatch --help' or edit  /usr/share/logwatch/default.conf/logwatch.conf
or /etc/logwatch/logwatch.conf.

See the file HOWTO-Customize-LogWatch for more information.

You can also use it from the command line (as documented in the
man page).

------------------------------------------------------------------

If you want me to add support for a new set of log entries, please
email me all the log entries you can from that service from as many
machines as possible!  Or, better yet, read the HOWTO-Customize-LogWatch
and write your own!

------------------------------------------------------------------

Mailing lists available!

Logwatch Development List:
   For discussion about Logwatch development.
   To Subscribe:  visit https://lists.sourceforge.net/lists/listinfo/logwatch-devel
   Send Mail To:  logwatch-devel@lists.sourceforge.net

------------------------------------------------------------------

Please send suggestions, bug reports, and patches to:
logwatch-devel@lists.sourceforge.net

Please ask questions at:
logwatch@kaybee.org

------------------------------------------------------------------

AUTHOR CONTACT INFORMATION:
   Kirk Bauer <kirk@kaybee.org>
   http://www.kaybee.org/kirk/

Newest releases can be found at:
   https://sourceforge.net/projects/logwatch/files/

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.