Logback to Elasticsearch through yaml or properties Logback to Elasticsearch through yaml or properties elasticsearch elasticsearch

Logback to Elasticsearch through yaml or properties


That is possible. The configuration would go to the application.yml file (see https://springframework.guru/using-yaml-in-spring-boot-to-configure-logback). Having many services to configure this may not be a solution for you as the configuration gets mangled with each services configuration.

To keep things separated you could use groovy (https://springframework.guru/logback-configuration-using-groovy), if you have it, or try to incorporate a logback.yml via external configuration files (https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html) which I have not used yet.