Direct integration of Logback with Elasticsearch

2019-07-27 03:08发布

问题:

I have Spring Boot applications with slf4j/logback and look for centralized logging solution.

Now I see that I don't need to use log collector (like logstash/filebeat/rsyslog). There is a direct collector Ingest Node inside Elasticsearch (if I understand properly).

How can I integrate Logback with Ingest Node?

I would like to use Slf4j MDC and hope that integration will support MDC out of the box.