You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which means that getting started with it is straightforward.
31
-
32
-
## APM Log correlation
33
-
34
-
If you are using the [Elastic APM Java agent](https://www.elastic.co/guide/en/apm/agent/java/current/index.html),
35
-
you can leverage the [log correlation feature](https://www.elastic.co/guide/en/apm/agent/java/current/config-logging.html#config-enable-log-correlation) without any additional configuration.
36
-
37
-
This lets you jump from the [Span timeline in the APM UI](https://www.elastic.co/guide/en/kibana/master/spans.html) to the
showing only the logs which belong to the corresponding request.
40
-
Vice versa, you can also jump from a log line in the Logs UI to the Span Timeline of the APM UI.
41
-
42
-
## Advantages
43
-
27
+
* No parsing of the log file required \
28
+
Logging in ECS-compatible JSON has the advantage that you don't need to set up a logstash/ingest node pipeline to parse logs using grok.
44
29
* No external dependencies
45
30
* Highly efficient by manually serializing JSON
46
31
* Low/Zero allocations (reduces GC pauses) \
47
32
The log4j2 `EcsLayout` does not allocate any memory (unless the log event contains an `Exception`)
48
-
* No parsing of the log file required
49
33
* Decently human-readable JSON structure \
50
34
The first three fields are always `@timestamp`, `log.level` and `message`.
51
35
* Use the Kibana [Logs UI](https://www.elastic.co/guide/en/kibana/7.3/xpack-logs.html) without additional configuration \
52
36
As this library adheres to [ECS](https://www.elastic.co/guide/en/ecs/current/ecs-reference.html), the Logs UI knows which fields to show
53
37
* Out-of-the-box correlation of logs and traces via the Logs UI and APM UI when using the [Elastic APM Java agent](https://www.elastic.co/guide/en/apm/agent/java/current/index.html)
38
+
* Using a common schema across different services and teams makes it possible create reusable dashboards and avoids [mapping explosions](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html#mapping-limit-settings).
39
+
40
+
### APM Log correlation
41
+
42
+
If you are using the [Elastic APM Java agent](https://www.elastic.co/guide/en/apm/agent/java/current/index.html),
43
+
you can leverage the [log correlation feature](https://www.elastic.co/guide/en/apm/agent/java/current/config-logging.html#config-enable-log-correlation) without any additional configuration.
44
+
45
+
This lets you jump from the [Span timeline in the APM UI](https://www.elastic.co/guide/en/kibana/master/spans.html) to the
0 commit comments