做了几周的测试,踩了无数的坑,总结一下,全是干货,给大家分享~一、ELK实用知识点总结1、编码转换问题这个问题,主要就是中文乱码。input中的codec=>plain转码:codec => plain { charset => "GB2312"}将GB2312的文本编码,转为UTF-8的编码。也可以在filebeat中实现编码的转换(推荐):filebeat.prospectors:- input_type: log paths: - c:UsersAdministratorDesktopperformanceTrace.txt encoding: GB23122、删除多余日志中的多余行logstash filter中drop删除:if ([message] =~ "^20.*- task request,.*,start time.*") { #用正则需删除的多余行 drop {} }日志示例:2018-03-20 10:44:01,523 [33]DEBUG Debug - task request,task Id:1cbb72f1-a5ea-4e73-957c-6d20e9e12a7a,start time:2018-03-20 10:43:59 #需删除的行-- Request String :{"UserName":"15046699923","Pwd":"ZYjyh727","DeviceType":2,"DeviceId":
………………………………