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 in config 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 extensions file storage create directory true processors batch send batch size 5000 timeout 10s receivers filelog/app include \[ /tmp/app log ] # include the paths to your log file start at end storage file storage exporters otlphttp endpoint 'https //otel kloudmate com 4318' headers authorization xxxxxxxx # use the auth key service pipelines logs receivers \[filelog/app] processors \[batch] exporters \[otlphttp] extensions \[file storage] 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 sudo systemctl restart otelcol contrib sudo systemctl status otelcol contrib 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 "