Collect File Logs
Use the KloudMate Agent filelog receiver when your application writes logs to a local file and you want KloudMate to collect them.
The KloudMate Agent runs on the target host, reads the configured file paths, and forwards those log entries to KloudMate.
Prerequisites
Section titled “Prerequisites”- KloudMate Agent is installed on the target server
- The agent is running and connected to KloudMate
- You have access to modify the agent collector configuration
Step 1: Open the Agent Configuration
Section titled “Step 1: Open the Agent Configuration”- Sign in to KloudMate.
- Go to Settings -> Agents.
- Select the agent running on the target server.
- Click Actions -> Collector Configuration.
- Open the YAML configuration editor.
Step 2: Configure the File Log Receiver
Section titled “Step 2: Configure the File Log Receiver”Add the following configuration to enable file-based log collection.
Replace /tmp/app.log with the path to your application log file.
Set start_at: beginning if you want to ingest existing file contents instead of only new log lines. The include array also supports wildcards (like *.log) to match multiple files at once.
After updating the configuration, save the collector configuration in the KloudMate UI. The KloudMate Agent will automatically detect the changes and reload the configuration.
Step 3: Validate Log Ingestion
Section titled “Step 3: Validate Log Ingestion”- Sign in to KloudMate.
- Open Log Explorer.
- Search by hostname, service name, or other known log attributes.
- Confirm that new log entries are visible.