ELK搭建问题

ELK安装问题:

1、此时不应有 \Java\jdk1.8.0_25

解决方案:安装时C:\Program Files (x86)有空格,换一个没有空格的安装路径

2、
D:\ELK\logstash-2.3.2\bin>logstash agent -f config/log4j_to_es.conf
io/console not supported; tty will not be manipulated
�[31mtranslation missing: en.logstash.runner.configuration.file-not-found {:leve
l=>:error}�[0m
The signal HUP is in use by the JVM and will not work correctly on this platform

修改配置文件在bin目录下

3、D:\ELK\logstash-2.4.0\bin>logstash agent -f log4j_to_es.conf
�[31mfetched an invalid config {:config=>"?input {\n log4j {\n mode => "ser
ver"\n host => "localhost"\n port => 16311\n }\n}\nfilter {\n}\noutput
{\n elasticsearch {\n action => "index" #The operation on ES\n
hosts => "localhost:9200" #ElasticSearch host, can be array.\n index
=> "applog" #The index to write data to.\n }\n}\n", :reason=>"Expecte
d one of #, input, filter, output at line 1, column 1 (byte 1) after ", :level=>
:error}�[0m
The signal HUP is in use by the JVM and will not work correctly on this platform

编码方式改为utf-8 无BOM

4、
compile group: 'net.logstash.logback', name: 'logstash-logback-encoder', version: '4.7'

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 1、ELK平台介绍 在搜索ELK资料的时候,发现这篇文章比较好,于是摘抄一小段:以下内容来自:http://bai...
    螺旋上升的世界阅读 3,045评论 0 20
  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 134,886评论 18 139
  • “翠兰,油茶准备好了吗?”阮慕言一边缝制着手边的素罗白绢,一边问着贴身丫鬟翠兰,“王爷的船今儿个就要回来,我可不...
    果木木阅读 335评论 2 2
  • Tomcat是目前比较流行的开源且免费的Web应用服务器,在我的电脑上第一次安装Tomcat,再经过网上教程和自己...
    xmwyong阅读 10,172评论 0 12