mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
Kafka acquisition: warn if no consumer group id and allow to read from a specific partition (#2612)
This commit is contained in:
parent
92f923cfa8
commit
ec53c672dc
4 changed files with 64 additions and 28 deletions
|
@ -58,6 +58,16 @@ brokers:
|
|||
topic: crowdsec`,
|
||||
expectedErr: "",
|
||||
},
|
||||
{
|
||||
config: `
|
||||
source: kafka
|
||||
brokers:
|
||||
- localhost:9092
|
||||
topic: crowdsec
|
||||
partition: 1
|
||||
group_id: crowdsec`,
|
||||
expectedErr: "cannote create kafka reader: cannot specify both group_id and partition",
|
||||
},
|
||||
}
|
||||
|
||||
subLogger := log.WithFields(log.Fields{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue