Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Apache Kafka log source #940

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

wanmail
Copy link

@wanmail wanmail commented Dec 26, 2024

Why use Apache Kafka

In our environment, it is difficult for me to deploy a local log analysis tool directly on the machine. Fortunately, they have collected the logs into Kafka. I only need to consume them in Kafka.

About Unit Test

I wrote a simple unit test with reference to TestFileStreamRead. But I started a Kafka container locally before running the unit test, so the unit test will fail if directly make check test.

But I have been running it in our production environment for a week, and process about 100 million Kafka messages every day.

About not using waker

Each message in Kafka is a log line, there is no need to use LineReader to find line endings, so I did not use waker.Waker.

Only handled ctx done and network connection error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant