Manually set up the collection of logs and host metrics using the Elastic Distribution of OpenTelemetry (EDOT) Collector
To configure the Elastic Distribution of OpenTelemetry (EDOT), you will first need to obtain the Elasticsearch endpoint and API key.

Manually configure the EDOT Collector to collect logs and metrics:
- Download and extract the standalone Elastic Agent for your platform standalone Elastic Agents.
- From the Elastic Agent base directory, navigate to the otel_samples directory. The platformlogs_hostmetrics.yml file contains the configurations for the receivers, processors, and exporters needed to collect logs and host metrics.
- Copy the content of the
platformlogs_hostmetrics.ymlfile and replace it with the content ofotel.yml, which is available under the Elastic Agent base directory. - In
otel.ymlupdate the below parameter as per requirement.
file_storage.directory: Set to the directory where you want to store OpenTelemetry data. elasticsearch.endpoint: Set to your Elasticsearch endpoint you copied earlier. elasticsearch.api_key: Set to the API which was created earlier.
- Run the EDOT collector now:
./elastic-agent otel --config otel.yml
The default log path is /var/log/*. You can update the path in the otel.yml file as needed like below:
- Visualize your data in Logs Explorer to view your logs and Hosts to view your host metrics in the Observability section of Kibana.

https://www.linkedin.com/pulse/opentelemetry-elastic-observability-rahul-ranjan-3l6bc/
https://www.linkedin.com/pulse/opentelemetry-elastic-observability-rahul-ranjan-3l6bc/
https://www.linkedin.com/pulse/opentelemetry-elastic-observability-rahul-ranjan-3l6bc/
https://www.linkedin.com/pulse/opentelemetry-elastic-observability-rahul-ranjan-3l6bc/
https://www.linkedin.com/pulse/opentelemetry-elastic-observability-rahul-ranjan-3l6bc/
#otel #docker #kubernetes #elastic #kibana #observability #apm #openTelemetry
Read More:
OpenTelemetry with Elastic Observability
Elastic RUM (Real User Monitoring) with Open Telemetry (OTel).
OpenTelemetry: Automatic vs. Manual Instrumentation — Which One Should You Use?






Leave a comment