Logstash配置安装
Posted wudequn
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Logstash配置安装相关的知识,希望对你有一定的参考价值。
logstash配置
http.host:
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.username:
xpack.monitoring.elasticsearch.password:
xpack.monitoring.elasticsearch.url:
在bin文件下面新建logstash.conf
input rabbitmq host => "rabbitmqip地址" subscription_retry_interval_seconds => "5" exchange => "log.msg.direct" queue => "log.queue.direct" durable => "true" key => "rk.msg.direct" user => "mqname" password => "mqpassword" output elasticsearch hosts => "es ip:port" #flush_size=> 10 #workers => 5 #document_id => "%jobid" #document_type => "BaseSysLog" index => "logstashsyslog" user => "elastic" password => "password" #stdout #codec => rubydebug #
logstash安装
官网:https://www.elastic.co/cn/downloads/logstash
bin目录
创建一个run.bat 内容如下
logstash -f logstash.conf 或者 logstash -f config\logstash.conf
md 运行 nssm install logstash
在弹出的界面设置 Path为run.bat,Details选项卡设置显示名,Dependencies选项卡设置依赖服务 elasticsearch-service-x64
最后点击install service 安装成功
以上是关于Logstash配置安装的主要内容,如果未能解决你的问题,请参考以下文章
ELK 架构之 Logstash 和 Filebeat 安装配置