Amazon EC2 Logs to KloudMate Using OpenTelemetry Collector
This document provides a guide on how to send Amazon EC2 logs to KloudMate using OpenTelemetry collector.
In the described setup, OpenTelemetry collector is used as the log exporting agent to send logs to KloudMate.
Step 1: Prerequisites:
Install OpenTelemetry collector. See Installing and Configuring OpenTelemetry Collector.
Recommendations: Install otelcol-contrib releases.
Step 2: For logs, OpenTelemetry has a file log receiver that can export logs written on a file to a specific backend.
Add the file log receiver and include the path of the file which needs to be exported.
If the collector is unable to send logs after these configurations then this might be a permission issue for the otelcol-contrib. Edit the otelcol-contrib service at /lib/systemd/system/otelcol-contrib.service and change user and group to user with root access.