Configuring File Log Receiver
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.
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.
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:
- Execute the following commands:
These commands will restart the Otel Collector and display its current status.
For Windows:
- Open the Services window:
- Press Win + R, type services.msc, and press OK.
- Alternatively, search for "Services" in the Windows Start menu.
- In the Services window, locate the "OpenTelemetry Collector" service.
- Right-click the service and select "Restart."