代码拉取完成,页面将自动刷新
ELK : elasticsearch + logstash + kibana
Forwarder : filebeat port 5044
cd ~
git clone https://github.com/easonlau02/elasticstack.git
5.3.1/5.6.3/6.0.0/6.1.2
below take version 6.1.2 for example.
cd ~/elasticstack/
chmod +x auto_up_elk_service.sh
./auto_up_elk_service.sh
usage: ./up_service.sh <linux|mac> <5.3.1 5.6.3 6.0.1 6.1.2> <your_hostname>
./auto_up_elk_service.sh linux 6.1.2
./auto_up_elk_service.sh mac 6.1.2 <your_hostname>
~/elasticstack/6.1.2/docker-compose.yml.docker_for_mac
cd ~/elaticstack/6.1.2
docker-compose -f docker-compose.yml.linux up -d
cd ~/elasticstack/6.1.2
docker-compose -f docker-compose.yml.docker_for_mac up -d
<kibanahost>:5601
, you can see below screenshot
You can see Unable to fetch mapping. Do you have indices match..., caused by no log feed.
We managed all config file in images eason02/elk-data-volume:6.1.2
, so if you need to change/add config for below folder.
~/elasticstack/6.1.2/elasticsearch/config/
~/elasticstack/6.1.2/logstash/config/
~/elasticstack/6.1.2/kibana/config/
And then run below related scripts to build new config image eason02/elk-data-volume:6.1.2
.
cd ~/elasticstack/6.1.2/
chmod +x build_data_volumes_for_elk.sh
./build_data_volumes_for_elk.sh
Restart elk service to take effect.
cd ~/elasticstack/6.1.2/
docker-compose -f docker-compose.yml.linux restart
cd ~/elasticstack/6.1.2/
docker-compose -f docker-compose.yml.docker_for_mac restart
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。