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
`ecs-logging-python` supports automatically collecting [ECS tracing fields](ecs://docs/reference/ecs-tracing.md) from the [Elastic APM Python agent](https://github.com/elastic/apm-agent-python) in order to [correlate logs to spans, transactions and traces](apm-agent-python://docs/reference/logs.md) in Elastic APM.
179
+
`ecs-logging-python` supports automatically collecting [ECS tracing fields](ecs://reference/ecs-tracing.md) from the [Elastic APM Python agent](https://github.com/elastic/apm-agent-python) in order to [correlate logs to spans, transactions and traces](apm-agent-python://reference/logs.md) in Elastic APM.
180
180
181
-
You can also quickly turn on ECS-formatted logs in your python app by setting [`LOG_ECS_REFORMATTING=override`](apm-agent-python://docs/reference/configuration.md#config-log_ecs_reformatting) in the Elastic APM Python agent.
181
+
You can also quickly turn on ECS-formatted logs in your python app by setting [`LOG_ECS_REFORMATTING=override`](apm-agent-python://reference/configuration.md#config-log_ecs_reformatting) in the Elastic APM Python agent.
182
182
183
183
184
184
## Install Filebeat [filebeat]
@@ -188,7 +188,7 @@ The best way to collect the logs once they are ECS-formatted is with [Filebeat](
188
188
:::::::{tab-set}
189
189
190
190
::::::{tab-item} Log file
191
-
1. Follow the [Filebeat quick start](beats://docs/reference/filebeat/filebeat-installation-configuration.md)
191
+
1. Follow the [Filebeat quick start](beats://reference/filebeat/filebeat-installation-configuration.md)
192
192
2. Add the following configuration to your `filebeat.yaml` file.
193
193
194
194
For Filebeat 7.16+
@@ -214,7 +214,7 @@ processors: <5>
214
214
2. Values from the decoded JSON object overwrite the fields that {{filebeat}} normally adds (type, source, offset, etc.) in case of conflicts.
215
215
3. {{filebeat}} adds an "error.message" and "error.type: json" key in case of JSON unmarshalling errors.
216
216
4. {{filebeat}} will recursively de-dot keys in the decoded JSON, and expand them into a hierarchical object structure.
217
-
5. Processors enhance your data. See [processors](beats://docs/reference/filebeat/filtering-enhancing-data.md) to learn more.
217
+
5. Processors enhance your data. See [processors](beats://reference/filebeat/filtering-enhancing-data.md) to learn more.
218
218
219
219
220
220
For Filebeat < 7.16
@@ -238,8 +238,8 @@ processors:
238
238
239
239
::::::{tab-item} Kubernetes
240
240
1. Make sure your application logs to stdout/stderr.
241
-
2. Follow the [Run Filebeat on Kubernetes](beats://docs/reference/filebeat/running-on-kubernetes.md) guide.
242
-
3. Enable [hints-based autodiscover](beats://docs/reference/filebeat/configuration-autodiscover-hints.md) (uncomment the corresponding section in `filebeat-kubernetes.yaml`).
241
+
2. Follow the [Run Filebeat on Kubernetes](beats://reference/filebeat/running-on-kubernetes.md) guide.
242
+
3. Enable [hints-based autodiscover](beats://reference/filebeat/configuration-autodiscover-hints.md) (uncomment the corresponding section in `filebeat-kubernetes.yaml`).
243
243
4. Add these annotations to your pods that log using ECS loggers. This will make sure the logs are parsed appropriately.
244
244
245
245
```yaml
@@ -256,8 +256,8 @@ annotations:
256
256
257
257
::::::{tab-item} Docker
258
258
1. Make sure your application logs to stdout/stderr.
259
-
2. Follow the [Run Filebeat on Docker](beats://docs/reference/filebeat/running-on-docker.md) guide.
0 commit comments