-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Kafka
-
Labels:
Hi Team,
If Kafka Connect is running multiple MongoDB connectors it might not be clear which Connector is generating the log message and thus making debugging log messages very tricky.
The above can be improved by configuring Connector Context Logging (see KIP-449 and KAFKA-3816).
As such, I propose that we add to our Troubleshooting section a heading that says "Improving Connector Logging" and explain the following:
If Kafka Connect is running multiple MongoDB Connectors (or any other type of Kafka Connectors) it might not be clear which Connector is generating a given log message making troubleshooting more complicated.
When the above happens we recommend adding the following line (or un-comment it if already present) to file $KAFKA_HOME/config/connect-log4j.properties:
connect.log.pattern=[%d] %p %X{connector.context}%m (%c:%L)%n
Regards
Diego
- related to
-
KAFKA-310 Add connector id to all log messages
- Closed