-
Notifications
You must be signed in to change notification settings - Fork 6
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
Move to GoFlow2 for adding IPFIX dataLinkFrameSection support #75
Comments
Agreed, goflow2 is the way to go. Would you be interested in submitting a PR? |
I'll try to submit a PR for that |
FYI so you don't fall down the same rabbit hole: I gave it a quick try and it appears there are dependency conflicts that Bazel can't resolve. Will look into it. |
portmirror needs to be fixed in a follow-up. Fixes #75
portmirror needs to be migrated in a follow-up in order to get rid of the dependency. The protos are compatible, so it should continue to work. Fixes #75
goflow2 development is also already getting slower and they arent really sure how they want to do things:
Sadly goflow2 on our develop branch doesnt work with kafka because they changed the protobuf file multiple times and clickhouse doesnt support reading the new format with the old proto file. Thats one of the reasons that the develop branch is broken right now. We have these options for fixing it:
|
There is nothing obviously wrong with this - it works fine as-is. It just isn't very actively developed, but that may be a feature :-) How did it break? The whole point of using protobuf in the first place is maintaining backwards compatibility, so I'm surprised it no longer works. None of the changes here seem problematic: https://github.com/netsampler/goflow2/commits/main/pb/flow.proto |
I dont know anymore if I checked the resulting data but the clickhouse was always throwing the following exception:
So either the protobuf message changes in combination with the required length-delimiter is not working or goflow2 doesnt write it length-delimited. I will test that again |
That could pretty much be anything. Might require some ClickHouse gdb-ing to figure out... |
Missing fixed length would be my main suspicion. Other than that, it's actually pretty hard to break proto compatibility (the field names aren't in the binary format, so unless the field numbers or types change, nothing should break even if everything is renamed like goflow2 did). |
Hello!
Just make sure to use the protobuf with the names corresponding to the column names. I just tried it locally with ClickHouse Let me know if I can help |
Implemented with f4beb9c |
After opening a feature request for adding dataLinkFrameSection Support to goflow (cloudflare/goflow#111), i was told this is available in a fork of goflow called goflow2 (https://github.com/netsampler/goflow2)
I'd like to discuss the possibitly for moving to goflow2 as this looks way more active as a project than cloudflares goflow and improvements seem to be more likely.
The text was updated successfully, but these errors were encountered: