ELK 简单安装记录

ELK:ElasticSearch +Kibana + Filebeat + Logstash

一、官网

https://www.elastic.co/cn

下载地址:

ElasticSearch:https://www.elastic.co/cn/downloads/elasticsearch

Kibana:https://www.elastic.co/cn/downloads/kibana

Filebeat:https://www.elastic.co/cn/downloads/beats/filebeat

Logstash:https://www.elastic.co/cn/downloads/logstash

二、ElasticSearch安装

1、直接解压后,运行/bin/elasticsearch.bat(windows) 或/bin/elasticsearch(linux),可以修改/config/jvm.options文件对内存大小以及控制台中文编码进行设置;

2、请求http://localhost:9200/(windows)或 curl http://localhost:9200/ 进行初始化

三、Kibana安装

1、解压安装;

2、修改config/kibana.yml 里面的elasticsearch.hosts 属性;

3、设置Kibana中文支持:

4、启动
bin/kibana (or bin\kibana.bat on windows)

5、访问

http://localhost:5601/

四、Filebeat安装:

 1、解压安装;

2、修改配置文件filebeat.yml(主要设置input与output参数)

3、启动filebeat

.\filebeat -e -c filebeat.yml -d "publish"

五、安装logstash

1、解压安装

#windows下
bin/logstash.bat -e "input { stdin { } } output { stdout {} }"  
#linux下
bin/logstash -e 'input { stdin {} } output { stdout {} }'

注意区分'' 与""
并且
logstash -e "input {stdin{}} output{stdout{codec=>rubydebug}}"
等价于
logstash -e ""

输入"hello world"后的显示结果如下:

六、安装kafka集群请参考我写的另一篇文章:
 kafka集群安装记录

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值