confluent-kafka-python
confluent-kafka-python copied to clipboard
Add broker-loggers support to AdminAPI
Description
KIP-412 added support for dynamic logs levels. It seems like right now it's not possible to change them using confluent-kafka-python lib since it's not supported in ResourceType
How to reproduce
No specific steps since it seems to be not implemented. Configuring using kafka-config CLI:
/opt/confluent/bin/kafka-configs --bootstrap-server localhost:9093 --command-config kafka.properties --alter --add-config "kafka.authorizer.logger=DEBUG" --entity-type broker-loggers --entity-name 1
Checklist
Please provide the following information:
- confluent_kafka.version(): ('2.3.0', 33751040)
- confluent_kafka.libversion(): ('2.3.0', 33751295)
- Apache Kafka broker version: 3.3
- Client configuration:
{
"bootstrap.servers": ...,
"security.protocol": "SASL_PLAINTEXT",
"sasl.mechanism": "SCRAM-SHA-256",
"sasl.username": ...,
"sasl.password": ...,
}
- Operating system: not sure if applicable
- Provide client logs (with
'debug': '..'as necessary): not sure if applicable - Provide broker log excerpts: not sure if applicable
- Critical issue: not sure if applicable
A made a thing two weeks ago which should address your problem https://github.com/confluentinc/confluent-kafka-python/pull/1674