1
0
mirror of https://github.com/netsampler/goflow2.git synced 2024-05-06 15:54:52 +00:00

12 Commits

Author SHA1 Message Date
5ba02103eb bug: fix kafka transport default partitioning (#246) 2023-12-06 04:53:51 -08:00
ae56e41786 refactor: v2 (#150) 2023-08-09 19:47:20 -07:00
e0d30b75db Add SASL/SCAM support to Kafka transport. (#121)
This pull request adds the optional -transport.kafka.scram flag,
which tells the Kafka transport to use SASL/SCRAM for authentication.
This allows goflow2 to work with AWS Managed Service for Kafka (MSK)
which does not support SASL/PLAIN.

Co-authored-by: Brian Landers <brian.landers@meraki.net>
Co-authored-by: lspgn <lspgn@users.noreply.github.com>
2022-10-08 15:02:22 -07:00
3734d83954 Kafka: enable compression (#128)
Co-authored-by: Arun Cherla <kcherla@gmail.com>
2022-10-08 14:17:18 -07:00
615b9f697c Avoid unnecessary memory allocations 2022-01-26 17:24:35 +01:00
2e1cf5bbfd Merge pull request #48 from netsampler/feature/kafka-flush-control
Add flags to control Kafka Flush parameters
2021-11-13 16:41:38 -08:00
56a2ffa46b Remove unused KafkaState 2021-11-03 16:59:57 +01:00
c145be66cd Add flags to control Kafka Flush parameters 2021-10-31 10:23:03 -07:00
95945d3042 style: defer unlock when possible/not trivial
Defer unlocking just after taking a lock when possible (when unlock is
done at the very end) and when not trivial (the function body is more
than a couple of lines). This simplifies a bit some functions (no need
to unlock before each return) and for the other, it may avoid a bug in
the future in case a return is inserted into the body of a function.

Use of defer has been optimized a lot in Go and it is believed that
simpler defers have zero overhead since Go 1.14:
https://golang.org/doc/go1.14#runtime

> This release improves the performance of most uses of defer to incur
> almost zero overhead compared to calling the deferred function
> directly. As a result, defer can now be used in performance-critical
> code without overhead concerns.
2021-09-23 10:01:24 +02:00
21c7fee62e bugfix: enricher decoding certain protobuf
* now requires length prefixed messages
* allows custom line separator for text transport output
2021-08-27 10:04:22 -07:00
686497ea5c feature: implement SIGHUP for log rotation when using transport.destination 2021-05-27 19:33:19 -07:00
e4bacbc4bd init 2021-05-25 17:33:26 -07:00