When writing a program, you all like to keep the process and output results in the form of logs for your reference. Most of my friends use the open method to open a file handle and write the information in it. Today I learned to use a syslog service
1. syslog introduction syslog is an industrial standard protocol that can be used to record device logs. In UNIX systems, routers, switches, and other network devices, system logs record system events at any time. Managers can view the system
1. syslog IntroductionSyslog is an industrial standard protocol that can be used to record device logs. In UNIX systems, routers, switches, and other network devices, System logs record System events at any time. Administrators can view system
Original article address
Linux diary system is monitored by system logsProgramSyslogd is composed of the kernel log monitor klogd. The two monitoring programs are both daemon and registered as system services. In other words, we can find the
Introduction to syslog and syslog
Application of Syslog in Network Management
Syslog is an industrial standard protocol that can be used to record device logs. In UNIX systems, routers, switches, and other network devices, System logs record System
Article Source: http://blog.csdn.net/xx77009833/archive/2010/07/30/5776383.aspx
For some purposes, logging is necessary.
In a typical Linux installation,/var/log/messages contains all system messages, And/var/log/mail contains other log messages
From the current situation, syslog (System log), a long-standing log system, still occupies the most mainstream status. Due to the origin of Unix-like platforms, Syslog is the most easily available log system in a real-world application environment.
Linux saves detailed records of events that occur in the system, which are called log files or message files. You can refer to the log file to determine the current state of the system, observe the intruder trail, and look for data related to a
Syslog is the default log daemon under Linux. Any program that wants to generate log information can do so through a syslog interface.At the same time, almost all network devices can pass the SYSLOG protocol to the remote server by transmitting the
1: Introduction to syslog. conf
For different types of UNIX, standard unixlog system settings, except for some different keywords, the system's syslog. conf format is the same. Syslog uses a configurable and unified system registration program to
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.