We recently configured some applications to log with log4j's SocketAppender to Logstash.
When we startet to add MDC-Attributes we sometimes lost the connection:
| Error log4j:WARN Detected problem with connection: java.net.SocketException: (broken pipe)