LogWatch.v7

From Access Information
Jump to: navigation, search


Installing New Server Mrepo smartd RAID Hardening YUM Crontabs LogWatch systemctl firewalld CentOS 7
Packages
Apache Bind Cacti DHCP mariadb Samba Sarg Sendmail Smokeping Rsync Work Apps
Problems VPN VPN Win Extras Bash MailScanner Horde Google CE Wake Up KVM
Other Computer Lab ISO2USB aiContact Google CE Android USB Live SRS XML

LogWatch

YUM

yum install dmraid-events-logwatch logwatch

Setup

emacs -nw /usr/share/logwatch/default.conf/logwatch.conf

THis is all you need to do! As is should work out of the box so long as the server can send emails.

In /etc/aliases, set the root address to go some where useful.

Manually

Running Logwatch Manually

It should be mentioned that you have the option to run Logwatch manually whenever you need through the command line.

Here are the available options [from the documentation]:

logwatch  [--detail  level  ] [--logfile log-file-group ] [--service service-name ] [--print]
  [--mailto address ] [--archives] [--range range  ]  [--debug  level  ]  [--save  file-name  ]
  [--logdir  directory ] [--hostname hostname ] [--splithosts] [--multiemail] [--output output-
  type ] [--numeric] [--no-oldfiles-log] [--version] [--help|--usage]

Unless you specify an option, it will be read from the configuration file.

Example:

logwatch --detail Low --mailto email@address --service ALL --range today

Running this item from the command line to email root can take a few minutes to process. If you run a tail on /var/log/maillog you should see an email leave the system to the root user (and any aliases of the root user.)

logwatch --detail Low --service ALL --range today

Running this item from the command line can take a few minutes to process.

  • Did you find this page useful?
  • Do you have an issue that you have not yet fixed?

We can do this for you.

I am available for technical support. Please follow this link. Tech Support Request.
+64-6-880-0000 : ++1-808-498-7146 : help@ai.net.nz
Getting us to help you