In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
In this article, the editor introduces in detail "how to build a log server in the Linux system". The content is detailed, the steps are clear, and the details are handled properly. I hope this article "how to build a log server in the Linux system" can help you solve your doubts.
1. Relp transmits logs (high-level service, information is not damaged, based on TCP protocol)
1. Server configuration
1.1.Install relp service Yum install rsyslog-relp
1.2.Edit the configuration file Vim / etc/rsyslog.conf
1.3.Open the transmission port to listen to Vim / etc/sysconfig/rsyslog
Restart the log service Service rsyslog restart
2. Client configuration
2.1.Install the relp service Yum install rsyslog-relp
2.2. Specify log transfer method Vim / etc/rsyslog.conf
2.3.Reboot log service Service rsyslog restart
3. Testing
3.1. execute Logger-t kern-p err "hello world" on the client
3.2.View server log Tail / var/log/messages
Accept success
2. Send logs in tcp mode (packets may be lost)
1. Configure the server
1.1.Modification of log configuration file Vim / etc/rsyslog.conf
1.2.Open the transmission port to listen to Vim / etc/sysconfig/rsyslog
1.3.Reboot the log service Service rsyslog restart
2. Configure the client 2.1and modify the delivery mode Vim / var/rsyslog.conf
2.2. Restart the service Service rsyslog restart
3. Testing
3.1.The client enters Logger-t kern-p err "123456789"
3.2.The server views Tail / var/log/message
Accept success
3. Send logs in udp mode
1. Configure the server
1.1.Configuring log files Vim / etc/rsyslog.conf
1.2.Open the transmission port to listen to Vim / etc/sysconfig/rsyslog
1.3.Reboot the log service Service rsyslog restart
2. Configure the client
2.1.Modification of the configuration file Vim / etc/rsyslog.conf
2.2. Restart the service Service rsyslog restart
3. Testing
3.1. enter Logger-t kern-p err "qqqqqqqqqqqqqqqq" on the client
3.2.View Vim / var/log/messages on the server
After reading this, the article "how to build a log server in Linux system" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself. If you want to know more about related articles, welcome to follow the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.