Logs Management
Server Logs to KloudMate
5 min
this document explains how to send logs from a file to kloudmate by configuring the file log receiver within the kloudmate agent the kloudmate agent acts as the log forwarding service that collects and securely transmits log data to kloudmate for analysis and troubleshooting prerequisites kloudmate agent installed on the target server agent must be running and connected to kloudmate access to modify the agent collector configuration step 1 access agent and collector configuration log in to the kloudmate platform navigate to settings → agents select the agent running on the target server click actions → collector configuration the yaml configuration editor opens step 2 configure file log receiver add the following configuration to enable file based log collection modify the log file path as per your application extensions file storage create directory true processors batch send batch size 5000 timeout 10s receivers filelog/app include \[ /tmp/app log ] # update with your log file path start at end storage file storage exporters otlphttp endpoint 'https //otel kloudmate com 4318' headers authorization xxxxxxxx # use your auth key service pipelines logs receivers \[filelog/app] processors \[batch] exporters \[otlphttp] extensions \[file storage] set start at beginning if you want to ingest historical logs step 3 save configuration and restart agent after updating the configuration, click save configuration in the kloudmate ui you can also restart the agent manually for linux execute the following commands systemctl restart kmagent systemctl status kmagent these commands restart the kloudmate agent and display its current status for windows open the services window press win + r , type services msc , and press ok or search for services from the start menu locate the kloudmate agent service right click the service and select restart step 4 validate log ingestion log in to kloudmate navigate to log explorer search using host name or log attributes confirm logs are visible