快速启动ELK(docker版本)测试

4 篇文章 0 订阅

启动ES:
docker run --name es -p 0.0.0.0:9200:9200 -p 0.0.0.0:9300:9300 -d -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.11.1

启动Kibana:
docker run --name kabana --link es:elasticsearch -p 0.0.0.0:5601:5601 -d docker.elastic.co/kibana/kibana:7.11.1

创建一个index:
curl -XPUT localhost:9200/test

列出所有index: 
curl -XGET localhost:9200/_cat/indices?v

删除一个index:
curl -XDELETE localhost:9200/test

访问Kibana:

http://192.168.5.30:5601/

create index pattern:

1.

2. 

3.

创建完index,然后在Discover中可以查看该index的记录了。

参考:

官网docker安装指南:

  1. https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
  2. https://www.elastic.co/guide/en/kibana/current/docker.html

curl操作命令行:

  1. https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster.html
  2. https://www.elastic.co/guide/en/elasticsearch/reference/current/indices.html 
  3. https://www.elastic.co/guide/en/elasticsearch/reference/current/cat.html

其他:

  1. https://stackoverflow.com/questions/43290998/run-elasticsearch-logstash-and-kibana-with-docker-compose-command
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值