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/ 进行初始化

扫描二维码关注公众号,回复: 12674268 查看本文章

三、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集群安装记录

猜你喜欢

转载自blog.csdn.net/SirLZF/article/details/103989813
今日推荐