[英]How to send my Java generated logs to ELK
I am currently working on a microservices based project.我目前正在从事一个基于微服务的项目。 What I want to do is to be able to send my logs generated by a Java service running in a Docker container to ELK, which is a separate Docker container.
我想要做的是能够将运行在 Docker 容器中的 Java 服务生成的日志发送到 ELK,这是一个单独的 Docker 容器。 What is the best way to do that?
最好的方法是什么? I was hoping I could send my logs through HTTP directly to the ELK stack, instead of saving the logs into a file locally.
我希望我可以通过 HTTP 将我的日志直接发送到 ELK 堆栈,而不是将日志保存到本地文件中。
My Java service uses Java 1.8, Spring Boot and it uses slf4j for logging.我的 Java 服务使用 Java 1.8、Spring Boot,它使用 slf4j 进行日志记录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.