diff --git a/compose.yml b/compose.yml index bda90a8..b69601f 100644 --- a/compose.yml +++ b/compose.yml @@ -5,7 +5,10 @@ services: - 8090:8080 networks: - anyame-shared + - elk-network networks: anyame-shared: external: true + elk-network: + external: true diff --git a/main-app/pom.xml b/main-app/pom.xml index 85cf8bd..05f77b1 100644 --- a/main-app/pom.xml +++ b/main-app/pom.xml @@ -34,6 +34,7 @@ 4.0.0 2.8.9 2025.0.0 + 8.1 @@ -81,6 +82,11 @@ anyame-kodik-search-api ${project.version} + + net.logstash.logback + logstash-logback-encoder + ${logstash-logback-encoder.version} + org.springframework.boot diff --git a/main-app/src/main/resources/logback.xml b/main-app/src/main/resources/logback.xml new file mode 100644 index 0000000..200f421 --- /dev/null +++ b/main-app/src/main/resources/logback.xml @@ -0,0 +1,10 @@ + + + logstash:5044 + + + + + + +