File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,13 @@ include::./tab-widgets/code.asciidoc[]
7
7
[[setup-step-1]]
8
8
=== Step 1: Configure application logging
9
9
10
+ If you are using the Elastic APM Java agent, the easiest way to transform your logs into ECS-compatible JSON format is through the
11
+ {apm-java-ref}/config-logging.html#config-log-ecs-reformatting[`log_ecs_reformatting`] configuration option.
12
+ By only setting this option, the Java agent will automatically import the correct ECS-logging library and configure your logging
13
+ framework to use it instead (`OVERRIDE`/`REPLACE`) or in addition to (`SHADE`) your current configuration. No other changes required!
14
+ Make sure to check out other {apm-java-ref}/config-logging.html[Logging configuration options] to unlock the full potential of this option.
15
+
16
+ Otherwise, follow the steps below to manually apply ECS-formatting through your logging framework configuration.
10
17
The following logging frameworks are supported:
11
18
12
19
* Logback (default for Spring Boot)
You can’t perform that action at this time.
0 commit comments