website logo
Request featuresJoin Our Community
⌘K
KloudMate
Getting Started
Why KloudMate?
Setting Up KloudMate
FAQs (Frequently Asked Questions)
Getting Help
Dashboards
Creating a Dashboard
Managing Dashboards and Panels
Explore
AWS Inventory
Lambda Functions
Logs
Traces
Issues
OpenTelemetry Support in KloudMate
What Is OpenTelemetry?
How Does OpenTelemetry Work?
Sending Data to KloudMate
Installing the OpenTelemetry Collector
Using OpenTelemetry Collector
Using OpenTelemetry SDKs
Service Integration Guides
Alarms & Notifications
Understanding KloudMate Alarms
Setting Up KloudMate Alarms
Writing Expressions for KloudMate Alarms
Setting Up Notifications
Settings
Accounts
Sync Settings
Users & Permissions
Subscription & Billing
Usage Report
Profile & Security
Deleting Your AWS Account from KloudMate
Docs powered by
Archbee
OpenTelemetry Support in Kloud...
...
Service Integration Guides
Amazon EC2 Logs to KloudMate

Amazon EC2 Logs to KloudMate Using OpenTelemetry Collector

3min

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.

Text
|
receivers:
  filelog:
    include: [ </tmp/in_syslog> ]
    attributes:
      service.name: "<Service name>"

Text
|
exporters:  
  otlphttp:
    endpoint: 'https://otel.kloudmate.com:4318'
    headers:
      Authorization: <xxxxxxxxxxxxxxxxxxx>


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.

Did this page help you?
PREVIOUS
Amazon EC2 Logs to KloudMate
NEXT
Amazon EC2 Logs to KloudMate Using Fluentbit
Docs powered by
Archbee
Docs powered by
Archbee