Configure
Enroll the LinuxGuard agent to your tenant and set group, tag, and environment flags so it starts sending telemetry to the console.
Last updated
Was this helpful?
Enroll the LinuxGuard agent to your tenant and set group, tag, and environment flags so it starts sending telemetry to the console.
After installing the LinuxGuard agent, you need to configure it to connect to your tenant and start sending telemetry data to the LinuxGuard console.
Note: For container deployments, see the Container Installation Guide which includes container-specific enrollment instructions.
Configure content is authored across upcoming phases of the v4.0 milestone. The forthcoming child pages are:
Agent configuration reference — config keys, config set/get/unset subcommands, toggleable keys (Phase 17).
Log level and rotation — log_level management, lumberjack defaults, runtime SIGHUP reload (Phase 19).
Enrollment flag handling — --api-key, --tenant-id, --environment, --group backward-compat alias, --tag (Phase 17).
The enrollment procedure below covers the day-1 setup until those references land.
The agent is enrolled using the enroll command, which connects the agent to your tenant account. You'll need two pieces of information:
API Key: A secure key for authenticating the agent
Tenant ID: Your unique tenant identifier
Run the following command on your system:
sudo linuxguard-agent enroll --api-key=<API_KEY> --tenant-id=<TENANT_ID>Replace:
<API_KEY> with your actual API key
<TENANT_ID> with your tenant ID
You can specify additional options during enrollment:
Assign the server to a group during enrollment:
Note: Each server can only belong to one group. Groups can be managed in the LinuxGuard console.
Apply tags to the server during enrollment. Tags can be used for filtering and organizing servers. You can specify multiple tags by repeating the --tag flag:
You can find your Tenant ID in two places:
Initial Email: The Tenant ID was included in the email you received when your tenant was created
Console Settings: Navigate to the Settings page in the LinuxGuard console to view your Tenant ID
To generate an API key:
Log in to the LinuxGuard console
Navigate to the Settings page
Find the API Keys section
Click Generate New API Key
Copy the generated key (you won't be able to see it again after closing the dialog)
Security Note: Keep your API keys secure and never share them publicly. Each API key can be revoked and regenerated from the Settings page if needed.
If the enrollment is successful, you will see a confirmation message:
After successful enrollment, the agent will:
Start collecting telemetry data from your system
Send data to the LinuxGuard console
Appear in your console's agent list
If you encounter any errors during enrollment:
Verify your API key and Tenant ID are correct
Check your network connectivity to https://api.linuxguard.io
Review the agent logs (see Troubleshooting)
Next Step: Quick Start →
Related: Agent Commands | Uninstallation | Troubleshooting
Last updated
Was this helpful?
Was this helpful?
sudo linuxguard-agent enroll --api-key=ak_1234567890abcdef --tenant-id=tenant_abc123xyzsudo linuxguard-agent enroll \
--api-key=ak_1234567890abcdef \
--tenant-id=tenant_abc123xyz \
--group=production-serverssudo linuxguard-agent enroll \
--api-key=ak_1234567890abcdef \
--tenant-id=tenant_abc123xyz \
--tag=web-server \
--tag=us-east-1 \
--tag=criticalSuccessfully enrolled to LinuxGuard Endpoint: https://api.linuxguard.io/v1/