You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2021/06/06 01:23:00 UTC

[jira] [Commented] (LOG4J2-3094) How to use log4j2 to send syslog to multiple addresses and ports dynamiclly?

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

Ralph Goers commented on LOG4J2-3094:
-------------------------------------

Well, you can create an appender to do almost anything you want. You just have to figure out how.

I don't really understand what it means to have dynamic hosts and ports. How would the appender have any idea how to connect to them?  While the TcpAppender, which the SocketAppender extends, does not support "dynamic" hosts and ports, it does support providing a host name that is defined by DNS. If that resolves to one or more ip addresses  the appender will use them. But it will only use 1 at a time and fail over to the others whenever the connection fails.

> How to use log4j2 to send syslog to multiple addresses and ports dynamiclly?
> ----------------------------------------------------------------------------
>
>                 Key: LOG4J2-3094
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3094
>             Project: Log4j 2
>          Issue Type: New Feature
>          Components: Appenders
>    Affects Versions: 2.14.1
>            Reporter: wang chong
>            Priority: Major
>             Fix For: 2.14.1
>
>
> I want to use log4j2 to send syslog to multiple addresses and ports. 
> My syslog hosts and ports are dynamiclly added.So how to achieve for this? Can I create an appender to achieve for this?
>  * [|https://issues.apache.org/jira/secure/AddComment!default.jspa?id=13380333]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)