其他分享
首页 > 其他分享> > kafka日志收集

kafka日志收集

作者:互联网

# kafka:
#kibana容器运行参考: https://www.elastic.co/guide/en/kibana/current/docker.html

docker network create elastic
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.15.2
docker run --name es01-test --net elastic -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.15.2

docker pull docker.elastic.co/kibana/kibana:7.15.2
docker run --name kib01-test --net elastic -p 5601:5601 -e "ELASTICSEARCH_HOSTS=http://es01-test:9200" docker.elastic.co/kibana/kibana:7.15.2

# 访问kibana浏览器打开:http://localhost:5601 

docker network create app-tier --driver bridge
docker run -d --name zookeeper-server --network app-tier -e ALLOW_ANONYMOUS_LOGIN=yes bitnami/zookeeper:latest
docker run -d --name kafka-server --network app-tier -p 9092:9092 -e ALLOW_PLAINTEXT_LISTENER=yes -e KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper-server:2181 bitnami/kafka:latest


# filebeat运行文档(收集日志到Kafka): https://www.elastic.co/guide/en/beats/filebeat/current/running-on-docker.html#_volume_mounted_configuration
docker pull docker.elastic.co/beats/filebeat:7.15.2

标签:7.15,co,收集,elastic,--,kibana,kafka,日志,docker
来源: https://blog.csdn.net/qq_40530622/article/details/121401883