In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
R & D feedback graylog log shows garbled code (as shown below). The first reaction is that it is caused by the character set.
Check the system environment character set
[root@apiVM-007 ~] # locale
LANG=zh_CN.GB18030
LC_CTYPE= "zh_CN.GB18030"
LC_NUMERIC= "zh_CN.GB18030"
LC_TIME= "zh_CN.GB18030"
LC_COLLATE= "zh_CN.GB18030"
LC_MONETARY= "zh_CN.GB18030"
LC_MESSAGES= "zh_CN.GB18030"
LC_PAPER= "zh_CN.GB18030"
LC_NAME= "zh_CN.GB18030"
LC_ADDRESS= "zh_CN.GB18030"
LC_TELEPHONE= "zh_CN.GB18030"
LC_MEASUREMENT= "zh_CN.GB18030"
LC_IDENTIFICATION= "zh_CN.GB18030"
LC_ALL=
View log file encoding format
Check the logstash manual and find that it is configurable, public codec plug-in character set
Https://www.elastic.co/guide/en/logstash/5.6/plugins-codecs-multiline.html
Modify the configuration as follows, restart logstash, and solve the problem.
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.