Answer the question
In order to leave comments, you need to log in
How to pipe data in bash?
I'm trying to get a list of empty groups in kafka and process it, or at least save it to a file.
i use the command
./kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --all-groups | grep "has no active members"
Consumer group 'configuration.task1' has no active members.
Consumer group 'configuration.task2' has no active members.
Consumer group 'configuration.task3' has no active members.
Answer the question
In order to leave comments, you need to log in
./kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --all-groups | grep -oP "'\K.*(?=' has no active members)"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question