Linux
Synopsis
Creates a collector that connects to Linux servers via SSH to deploy and run the VirtualMetric Agent. Supports password, private-key, and key-based authentication.
note
To collect logs from arbitrary files on a Linux host (application logs, syslog, container logs, etc.), see File Log Datasets.
Schema
- id: <numeric>
name: <string>
description: <string>
type: linux
tags: <string[]>
pipelines: <pipeline[]>
status: <boolean>
properties:
address: <string>
port: <numeric>
username: <string>
password: <string>
private_key: <string>
passphrase: <string>
key_based: <boolean>
install_path: <string>
timeout: <numeric>
Configuration
Device
| Field | Required | Default | Description |
|---|---|---|---|
id | Y | - | Unique numeric identifier |
name | Y | - | Device name |
description | N | - | Optional description |
type | Y | - | Must be linux |
tags | N | - | Optional tags |
pipelines | N | - | Optional pre-processor pipelines |
status | N | true | Enable/disable the device |
Connection
| Field | Required | Default | Description |
|---|---|---|---|
address | Y | - | Target server address |
port | N | 22 | SSH port number |
username | N | - | SSH username (resolvable via ${ENV_VAR} or $secret{...}) |
password | N | - | SSH password (resolvable via ${ENV_VAR} or $secret{...}) |
private_key | N | - | Path to SSH private key file (resolvable via ${ENV_VAR} or $secret{...}) |
passphrase | N | - | Private key passphrase (resolvable via ${ENV_VAR} or $secret{...}) |
key_based | N | false | When true and private_key is set, key-based authentication takes priority over password |
install_path | N | "/tmp" | Remote install path for the Agent binary; the directory <install_path>/<product>/agent/ is created if absent |
Performance
| Field | Required | Default | Description |
|---|---|---|---|
timeout | N | 30 | SSH connection timeout in seconds |
Examples
Password Authentication
Connecting to a Linux server with username and password... | |
Private Key Authentication
Using an SSH private key with passphrase for authentication... | |
warning
The private key file must be readable by the service user and have appropriate permissions (600 or more restrictive).
Custom Install Path
Deploying the Agent to a non-default location (e.g., when | |