首页 > 其他 > 详细

Elasticsearch-6.7.0系列(四)5044端口 logstash安装

时间:2019-04-02 18:14:43      阅读:2828      评论:0      收藏:0      [点我收藏+]

centos7环境

下载logstash

wget https://artifacts.elastic.co/downloads/logstash/logstash-6.7.0.tar.gz          下载

logstash-sample.conf是默认配置文件,里面的默认端口是5044

tar -zxvf logstash-6.7.0.tar.gz

 ./bin/logstash -f demo-metrics-pipeline.conf      启动Logstash,如果遇到以下错误,则把虚拟机的CPU内核数从1改为2即可。

[root@192 logstash-6.7.0]# ./bin/logstash -f demo-metrics-pipeline.conf
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N

修改metric配置

把output从elasticsearch改为logstash:

#-------------------------- Elasticsearch output ------------------------------
#output.elasticsearch:
  # Array of hosts to connect to.
  #hosts: ["localhost:9200"]
#----------------------------- Logstash output --------------------------------
output.logstash:
  # The Logstash hosts
  hosts: ["localhost:5044"]

service metricbeat stop          停止metric服务

service metricbeat status          查看服务状态

 service metricbeat start          重新启动服务

Elasticsearch-6.7.0系列(四)5044端口 logstash安装

原文:https://www.cnblogs.com/zhuwenjoyce/p/10636832.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!