Fluentd uses the tail plugin to tail container logs and outputs the logs to a topic using the Kafka output plugin. After manually deleting the topic when the container stops, it is observed that the previously deleted topic is recreated along with the new topic when logs are pushed to the new topic. Below is my configuration:
To Reproduce
Create a container to push logs to Kafka.
After the container stops, delete the topic.
Re-create a new container to push logs to a new Kafka topic.
Use kafka-topics.sh to view the topics, and the previously deleted topic is recreated.
Expected behavior
I expected that the topic would not be recreated after being deleted.
Your Environment
fluentd (1.16.2)
fluent-plugin-kafka (0.19.3, 0.19.0)
Linux fluentd-4b7ml 4.15.0-197-generic #208-Ubuntu SMP Tue Nov 1 17:23:37 UTC 2022 x86_64 GNU/Linux
Describe the bug
Fluentd uses the
tail
plugin to tail container logs and outputs the logs to a topic using the Kafka output plugin. After manually deleting the topic when the container stops, it is observed that the previously deleted topic is recreated along with the new topic when logs are pushed to the new topic. Below is my configuration:To Reproduce
Expected behavior
I expected that the topic would not be recreated after being deleted.
Your Environment
Your Configuration
Your Error Log
Additional context
No response