kafka查询某时间段内的消息

//筛选时间戳范围内的消息
./kafka-console-consumer.sh --topic ejabberd-chat-messages --zookeeper 192.168.151.18:2181 --from-beginning |awk -F ":" '{print $2 $0}' |awk -F "," '$1>= 1541145786527 && $1 <= 1541145786587 {print $0}'

猜你喜欢

转载自blog.csdn.net/u014042372/article/details/83659824
今日推荐