Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1733

Add SyncSend attribute to KafkaAppender (as in KafkaLog4jAppender)

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5
    • 2.8
    • Appenders
    • None
    • Kafka 0.10.1.0

    Description

      The KafkaLog4jAppender (shipped with Kafka and usable with log4j), has a syncsend property that improves performance significantly by not blocking a send to Kafka. I've tried many other configuration settings and setups, but find that none of these approaches improved the logging performance to Kafka as significantly as setting the syncsend property to false.

      Unfortunately, the syncsend property is not supported by the KafkaAppender shipped with log4j2 and the KafkaLog4jAppender only supports log4j, so I am stuck with forking the code and making the change myself.

      Could you please introduce this property in the KafkaAppender in log4j2?

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mikaelstaldal Mikael Ståldal
            vincent.tieleman Vincent Tieleman
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment