Logwatch, as its name implies, is a software dedicated to monitoring Linuxlog files (log files. After installation, you can send the host log analysis file to the specified mailbox every day. Why? This saves the time and energy for administrators to manually view logs. And every day (or even more frequently
Logwatch, as its name implies, is a software that monitors Linux log Files. After installation, you c
Original: HTTP://SEANLOOK.COM/2014/08/23/LINUX-LOGWATCH-USAGE/1. IntroducedWhen maintaining a Linux server, it is often necessary to review the logs of various services in the system to check the server's operational status. such as login history, mail, software installation and other logs. It is very inconvenient for the system administrator to check each one, and most of the time, this is a passive check, that is, only when the system is found to be
1. Introduce
When maintaining a Linux server, it is often necessary to look at the logs of the various services in the system to check the running state of the server. such as login history, mail, software installation and other logs. It's very inconvenient for a system administrator to check it out, and most of the time it's a passive check that only when you find the system running an exception can you think of the log to get information about the exception. So how to actively, centralized an
Use logwatch to monitor log files in Linux
Linux operating systems and many applications create special files to record their running events. These files are often called "logs ". These system logs or specific application log files are essential tools for understanding the behavior of operating systems or third-party applications or troubleshooting. However, log files are not as readable as they are "clear" or "easy. Analyzing original log files manu
Use logwatch to monitor log files in Linux
Linux operating systems and many applications create special files to record their running events. These files are often called "logs ". These system logs or specific application log files are essential tools for understanding the behavior of operating systems or third-party applications or troubleshooting. However, log files are not as readable as they are "clear" or "easy. Analyzing original log files manua
Are you still manually checking logs when installing Logwatch? Then you are OUT. Now Logwatch has been able to customize an exclusive log push for you, eliminating the hassle of manually viewing logs, saving administrators time and energy. Logwatch, as its name implies, is a software dedicated to monitoring log files. After installation, you can send the host log
Logwatch, as its name implies, is a software that monitors Linux log Files. After installation, you can send the host log analysis file to the specified mailbox every day. Why? This saves the time and energy for administrators to manually view logs. And can receive logs accurately every day (or even more frequently. In this way, you can understand the security of your servers.
The following installation method applies to all RPM Linux distributions (s
Hello everyone, today we will talk about how to install the Logwatch software on the Ubuntu 15.04 operating system, which can also be installed on a variety of Linux and Unix-like systems. Logwatch is a customizable log analysis and log monitoring report generation system that generates detailed reports that you want to follow based on log files for a period of time. It is easy to install, easy to configure
Install Logwatch on Centos7 and use the msmtp mail client to send server monitoring and analysis logs
###########################
# DATE 2016-07-29 #
# Authur by Denilas Yeung #
###########################
1. Install msmtp
Download msmtp: http://jaist.dl.sourceforge.net/project/msmtp/msmtp/1.6.5/msmtp-1.6.5.tar.xz
Because the file format is xz, the decompression method is:
# Xz-d msmtp-1.6.5.tar.xz
# Tar xvf msmtp-1.6.5.tar
# Cd msmtp-1.6.5
#./Configu
"description"Logwatch is a log analysis tool developed using PerlLogwatch can analyze the log files of Linux and automatically send mail to relevant handlers to customize the requirementsThe mail function of the Logwatch is sent by mail server that comes with the host system, such as Sendmail,postfix,qmail, etc.ConfigurationBecause the system already supports the service by default, it is as simple as the c
administrators to observe many different types of system logs without using command lines.
◆ V Log Analysis
LogWatch
Logwatch is used to parse system logs, locate any data that may indicate security risks or system errors, and send an email to the specified address. Logwatch and RetHat Enterprise Linux are released together. The following is a summary from the P
whether the network status can be properly connected, such as DNS and gateway.
30 users # Who | WC-lRun the following command to check whether there are too many login users (for example, more than 50): # uptime
31 system logs # Cat/var/log/rflogview/* errorsYou can also search for some exception keywords to check whether there are any error records, for example:# Grep-I error/var/log/messages# Grep-I fail/var/log/messages
32 core logs # dmesgCheck for abnormal error records
33 system time # da
. send and receive emails ① write emails and send emails [root @ bj ~] # Mail-s "oracle" oracle test mail for oracle !!! Cc: The root Cc function is the shortcut key ctl + d ② to receive emails [root @ bj ~] # Mail Mail version 8.1 6/6/93. Type? For help. "/var/spool/mail/root": 5 messages 5 new> N 1 logwatch@localhost.l Thu Feb 2119:21 43/1563 "Logwatch for node1 (Linux) "N 2logwatch@localhost.l Fri Feb 22
and gateway.30 users # who | wc-lRun the following command to check whether there are too many login users (for example, more than 50): # uptime31 system logs # cat/var/log/rflogview/* errorsYou can also search for some exception keywords to check whether there are any error records, for example:# Grep-I error/var/log/messages# Grep-I fail/var/log/messages32 core logs # dmesgCheck for abnormal error records33 system time # dateCheck whether the system time is correct34. Number of opened files #
error records to search for exception keywords, such as:# grep-i Error/var/log/messages# grep-i Fail/var/log/messages# egrep-i ' Error|warn '/var/log/messages View system exceptions32 Core Log # DMESGCheck for abnormal error logging33 System Time # DateCheck that the system time is correct34 Number of open files # Lsof | Wc-lCheck whether the total number of open files is too large35 Days Log # Logwatch–print configuration/etc/log.d/logwatch.conf, se
/messages view system exceptions
32 core logs # dmesg
Check for abnormal error records
34. Number of opened files # lsof | wc-l
Check whether there are too many open files
35 logs # logwatch? Print configuration/etc/log. d/logwatch. conf, set Mailto as your email address, and start the mail service (sendmail or postfix), so that you can receive the log report every day.
By default,
, more than 250)27. Number of processes that can be run # vmwtat 1 5The column shows the number of processes that can be run. Check whether the number exceeds 4 times the system logic CPU.28 process # top-id 1Check for abnormal Processes29 check whether the network status can be properly connected, such as DNS and gateway.30 users # who | wc-lRun the following command to check whether there are too many login users (for example, more than 50): # uptime31 system logs # cat/var/log/rflogview/* err
50) can also use the command: # uptime31 System Log # Cat/var/log/rflogview/*errorsCheck for abnormal error records or search for some exception keywords, for example:# grep-i Error/var/log/messages# grep-i Fail/var/log/messages# egrep-i ' Error|warn '/var/log/messages View system exceptions32 Core Log # DMESGCheck for abnormal error logging33 System Time # DateCheck system time is correct34 Number of open files # Lsof | Wc-lCheck that the total number of open files is too large35 Days Log #
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.