Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 719 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 719 Bytes

Basic Logstash configuration to push Spring logs to AWS OpenSearch

In this repository you can find a basic working example of logstash running in a docker container. The service is responsible to read logs from your Spring logs folder and push them to AWS OpenSearch.

Logstash push Spring logs to AWS OpenSearch

Requirements for EC2 instance

  • Spring app running in EC2 instance
  • Docker engine + docker-compose running in EC2 instance
  • OpenSearch domain available on AWS

Steps

  • Copy repository in you EC2 instance
  • Edit docker-compose.yml and logstash.conf for you use case
  • Run docker-compose up -d from the root folder of the repo