1. 查看topic列表

/data/elk/kafka/bin/kafka-topics.sh --zookeeper 127.0.0.1:2181 --list

2. 查看offset

/data/elk/kafka/bin/kafka-consumer-offset-checker.sh --zookeeper localhost:2181 --topic web-vip-proxy-nginx-log --group elk

3. 数据查询

 /data/elk/kafka/bin/kafka-console-consumer.sh --zookeeper 127.0.0.1:2181 --topic web-zx-proxy-nginx-log --from-beginning