How to export logs to the OTEL collector
This guide explains how to export Aidbox logs in OpenTelemetry format
Aidbox supports exporting logs using the Protobuf protocol in line with the OTEL specification. This guide configures Aidbox to export logs to the OpenTelemetry collector, but the setup can also be modified to export to other logs consumers that adhere to this specification.
Prerequisites
OTEL collector should be deployed and configured to receive logs.
Aidbox should be configured with Aidbox configuration project.
How to enable export logs to the OTEL collector
To enable exporting logs to the OTEL collector:
Import
aidbox.log
Define
open-telemetry-appender
Add
otel-appender
to the servicesRestart Aidbox
How to check the OTEL collector receives logs
Set up logging
exporter and logs
pipeline in the OTEL collector configuration:
logging
exporter and logs
pipeline in the OTEL collector configuration:See Aidbox logs in the OTEL collector stdout
Open OTEL collector stdout and see the logs.
Check logs sending status
The common endpoint for checking status of sending metrics process
In this case
Last updated