You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/09/30 17:27:00 UTC

[jira] [Commented] (LOG4J2-2062) Add possibility of sending the key of a message to Kafka using KafkaAppender

    [ https://issues.apache.org/jira/browse/LOG4J2-2062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16187157#comment-16187157 ] 

ASF GitHub Bot commented on LOG4J2-2062:
----------------------------------------

GitHub user flowcont opened a pull request:

    https://github.com/apache/logging-log4j2/pull/112

    LOG4J2-2062 Added property to KafkaAppender to send a Key to Kafka

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/flowcont/logging-log4j2 feature/LOG4J2-2062

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/logging-log4j2/pull/112.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #112
    
----
commit 9d3795005355efa238233603995f55000fdcab39
Author: Flowcont <jo...@gmail.com>
Date:   2017-09-30T17:18:47Z

    LOG4J2-2062 Added property to KafkaAppender to send a Key to Kafka

----


> Add possibility of sending the key of a message to Kafka using KafkaAppender
> ----------------------------------------------------------------------------
>
>                 Key: LOG4J2-2062
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2062
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Appenders
>    Affects Versions: 2.9.0
>            Reporter: Jorge Sanchez
>            Priority: Minor
>
> When using the KafkaAppender the KafkaManager only sends the value of a message to a Kafka topic. 
> It could be useful to be able to assign a value to the key of that message via configuration instead of having it null.
> Check https://github.com/apache/logging-log4j2/blob/master/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/kafka/KafkaManager.java#L99



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)