I‘m using Logwatch for reporting on unusual items in syslog. I’ve central logserver up and running. All other Linux servers send logs to a remote loghost called log.example.com. How do I configure Logwatch on the central log server so that it will send daily logs messages in a single e-mail?

logwatch is system log analyzer and reporter. It will go through your logs for a given period of time and make a report in he areas that you wish with the detail that you wish.

Logwatch is being used for Linux and many types of UNIX. Logwatch will separate entries by hostname, if you set SplitHosts to yes. Make sure the option MultiEmail is set to no in order to send a single e-mail message.

Step #1: Configuration Logwatch On The Central Log Server

You need to edit the /etc/logwatch/conf/logwatch.conf file on the central log server. Edit the file using vi text editor, enter:
# vi /etc/logwatch/conf/logwatch.conf
Update / add settings as follows:

SplitHosts = yes
HostLimit = no
MultiEmail = no

Step # 2: Disable Logwatch On Other Servers

Now you’ve a central logserver which has been configured to report on logs received from all systems. You need to disable logwatch cron job on on all other boxes:
# mv /etc/cron.daily/0logwatch /path/to/backup
Alternatively, you can simply remove the logwatch package:
# rpm -e logwatch

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

  • $1.6 Billion: All-Time ICO Funding Climbs as Record $500 Million Invested in July
  • Bitcoin Poker Site Operator to Pay $25,000 Fine
  • Bitmain’s New Miner Is Drawing Criticism from Early Users
  • Mining Roundup: New Viper Tests and Bitmain’s Debut Cloud Mining Service
  • Bitcoin Researcher Ed Felten Named White House Tech Officer
  • Quebec Lures Cryptocurrency Miners as China Sours on Industry
  • GitKraken 2.7 Released with few Improvements and New Feature
  • What is IPSEC and how it works
  • ABA to IRS: Create Safe Harbor for Forked Cryptos
  • Install MySQL on CentOS 7.5
  • Gracefully Restart Nginx Web Server After Changes Made In a Config File
  • FreeBSD Install wget Utility To Download Files From Internet
  • DigitalTangible Launches Mail-Order Gold-to-Bitcoin Trading Service
  • UK Government Should Appoint ‘Chief Blockchain Officer’ Says Lawmaker
  • Japan’s Crypto Exchanges Self-Regulate In Wake of $500 Million Hack
  • SXI LLC Company
    SXI.IO is a global Blockchain software company, specialized in developing white label crypto exchange platforms , Wallet platforms, ICO platforms, Token Erc20 .....
    Fully Managed VPS Fully Managed VPS Fully Managed VPS

    You Might Also Enjoy NewS Post

    Best Free Web Hosting 2020

    Free Hosting 1GB $0.00 USD/mo Disk space 1GB Traffic 10GB/Month Domains 2 Plesk Cpanel Databases 10 Free 12 Month https://my.sxi.io/cart.php?a=add&pid=196

    02/05/2020 READ MORE

    Download Windows Templates for Virtualizor KVM

    Download any of client OS template to the location in Node ( /var/virtualizor/Xen or KVM according to the virtualization). http://mirror.softaculous.com/virtualizor/templates/windows-2003-x86.img.gz http://mirror.softaculous.com/virtualizor/templates/windows_2003R264.img.gz http://mirror.softaculous.com/virtualizor/templates/windows-2008r2.img.gz http://mirror.softaculous.com/virtualizor/templates/windows-2012server.img.gz http://mirror.softaculous.com/virtualizor/templates/windows-2003-x86.img.gz http://mirror.softaculous.com/virtualizor/templates/windows_2003R264.img.gz http://mirror.softaculous.com/virtualizor/templates/windows-2008r2.img.gz http://mirror.softaculous.com/virtualizor/templates/windows-2012server.img.gz http://mirror.softaculous.com/virtualizor/templates/windows-2012r2.img.gz http://mirror.softaculous.com/virtualizor/templates/windows-2016.img.gz For...

    23/04/2020 READ MORE