Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Using the syslog command of linux, the system default log daemon

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail about the use of linux syslog command system default log daemon, Xiaobian think quite practical, so share to you for a reference, I hope you can read this article after harvest.

syslog is the default logging daemon on Linux. The default syslog configuration file is the/etc/syslog.conf file. Programs, daemons, and kernels provide logging information for accessing the system. Therefore, any program that wishes to generate log information can call the syslog interface to generate that information.

Almost all network devices can transmit log information to remote servers in the form of User Datagram Protocol (UDP) through syslog protocol. Remote log receiving servers must listen to UDP port 514 through syd, and process the local machine according to the configuration in syslog.conf configuration file, receive log information from accessing the system, and write specified events to specific files for background database management and response. This means that any event can be logged on to one or more servers for the backend database to analyze events on remote devices off-line.

Typically, syslog accepts messages from various functions of the system, each message including a level of importance./ The/etc/syslog.conf file tells syd how to report information based on device and message importance levels.

Syntax format: show syslog [parameter]

Common parameters:

statistics statistics error exception log memory log

Reference Example

To log information to syslog file/var/log/messages:

[root@linuxcool ~]# logger this is a test log line

Show all kernel log statistics for the system:

[root@linuxcool ~]# show syslog statistics

Display all exception log information for the system:

[root@linuxcool ~]# show system log error

Display log configuration information:

[root@linuxcool ~]# show log-config

Display memory log information:

[root@linuxcool ~]# show log memory notice About using Linux syslog command system default log daemon shared here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report