Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-15597

MongoDB Kafka Connector - Explain How To Better Track Connector Log Messages

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Kafka

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            diego.rodriguez@mongodb.com Diego Rodriguez (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              1 year, 33 weeks ago