OpenTelemetry Support
...
Service Integration Guides
Server Logs to KloudMate

Configuring File Log Receiver

3min

This document provides a guide on how to send logs from a file to KloudMate by configuring a file log receiver. The file log receiver acts as the log forwarding agent to collect and transmit log data to KloudMate.

Prerequisites:

Install the OpenTelemetry Collector on the specific server that requires metric monitoring. Refer to the Installing the OpenTelemetry Collector guide for detailed instructions.

Step 1: Configure the Filelog Receiver :

  • Linux Users: Open the file located at /etc/otelcol-contrib/config.yaml using your preferred text editor.
  • Windows Users: Create a new file called config.yaml in the C:\Program Files\OpenTelemetry Collector folder. You can use Notepad or any text editor to do this.



Inconfig.yaml file, add the file log receiver, specify the path of your app.log file and configure the pipeline by including the file log receiver.

YAML


In the receiver part, set start_at to beginning if you want to include historical logs



Step 2: To restart and verify the status of the OpenTelemetry (Otel) Collector, follow these steps:

For Linux:

  1. Execute the following commands:
Text


These commands will restart the Otel Collector and display its current status.

For Windows:

  1. Open the Services window:
    • Press Win + R, type services.msc, and press OK.
    • Alternatively, search for "Services" in the Windows Start menu.
  2. In the Services window, locate the "OpenTelemetry Collector" service.
  3. Right-click the service and select "Restart."