In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today Xiaobian to share with you how to configure rsyslog collection server under centos related knowledge points, detailed content, clear logic, I believe most people still know too much about this knowledge, so share this article for everyone to refer to, I hope you read this article after harvest, let's learn about it together.
rsyslog is a logging system that is more powerful than syslog and can output logs to files, databases, and other programs.
environment configuration
centos6 system client1: 192.168.1.33
centos7 system client2: 192.168.1.44
centos7 system master: 192.168.1.55
Configure server master
First: Enable UDP/TCP for transport
vim /etc/rsyslog.conf# Provides UDP syslog reception #If UDP is enabled for transmission, uncomment the following two lines #ModLoad imudp$UDPServerRun 514# Provides TCP syslog reception #If TCP is enabled for transmission, uncomment the following two lines #$ModLoad imtcp#$InputTCPServerRun 514
Second: Restart the rsyslog service
systemctl restart rsyslog configuration client client
First: Distinguish UDP/TCP transport
vim /etc/rsyslog.conf*.* @192.168.31.55:514 #Server uses @@ if TCP transport is enabled,@ if UDP is enabled
Second: Restart the rsyslog service
systemctl restart rsyslog/etc/init.d/rsyslog restart Tests whether the service is able to send client-side system logs back to the master
First: uninterrupted output system log files on the server side
tailf /var/log/messages
Second: Use logger to generate test log information on the client side (and check the server output to determine whether the log has been collected through the network)
logger "this is ce shi xing xi" above is "how to configure rsyslog log collection server under centos" all the contents of this article, thank you for reading! I believe everyone has a great harvest after reading this article. Xiaobian will update different knowledge for everyone every day. If you want to learn more knowledge, please pay attention to 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.