./filebeat setup --dashboards
curl -X GET "10.0.6.114:9200/_cat/indices?v"
启动filebeat
cd /opt/filebeat-6.5.4-linux-x86_64
./filebeat -e -c filebeat.yml &
启动kafka
cd /opt/kafka_2.11-2.1.0/bin
./kafka-server-start.sh ../config/server.properties &
启动zookeeper
cd /opt/kafka_2.11-2.1.0
./bin/zookeeper-server-start.sh ./config/zookeeper.properties &
生成一个topic
bin/kafka-topics.sh --create --zookeeper 10.0.6.25:2181 --replication-factor 1 --partitions 1 --topic elk
查看topic
bin/kafka-topics.sh --list --zookeeper 10.0.6.25:2181
原文地址:https://www.cnblogs.com/frantz/p/11462470.html
时间: 2024-11-06 18:22:52