-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make SocketAppender support server list #3442
Comments
Have you considered sending logging events via the fluent-bit Forward Upstream plugin? |
Good idea. Thank you for your thoughts. @swebb2066 It would be great if there are no additional prerequisites. |
The Since TCP does not guarantee a reliable delivery without message loss, it is probably better to look at message queue appenders. Some of them do support multiple servers. |
@lu-xiaoshuang, curious: what is the log sink you use where you encounter this problem? |
logstash |
Thanks, @ppkarwasz KafkaAppender is not capable of sending logs generated by org.apache.kafka:kafka-clients:jar, is it? By the way, If community decides to make SocketAppender support server list, what about creating multiple sockets? When append method is invoked, log4j2 can choose a socket randomly. I think this simple solution is free of connection pool stuff. |
Right, that usually causes problems with recursive logging.
Log4j is highly pluggable, so I would recommend to:
Note that we are adopting the same strategy for our own plugins, e.g. my copernik-eu/log4j-tomcat is waiting for some user feedback. |
Good idea. |
Typically, applications generate massive amounts of log data, and these data should be sent to backend systems for storage, analysis and so on.
At present, a SocketAppender only supports one address-port. Seems that remote server represented by this address-port is very likely the bottleneck (network traffic) and single point failure endpoint (without gateway).
Would it be possible that SocketAppender supports server list?
The text was updated successfully, but these errors were encountered: