Command Syntax
All commands require administrative privileges (root/sudo on Linux, administrator on Windows).
Installation Commands
install
Install the UTMStack Agent service.Check Server Connection
Verifies connectivity to required ports:
- Agent Manager Port
- Log Auth Proxy Port
- Dependencies Port
Configure Agent
- Registers agent with the server
- Saves configuration file
- Configures collectors
- Installs Beat collectors
- Sets default data retention
uninstall
Completely remove the UTMStack Agent.- Stops the UTMStackUpdater service
- Deletes agent registration from server
- Uninstalls all collectors
- Removes configuration files
- Uninstalls system service
Service Commands
run
Run the agent service (typically used by the system service manager).Integration Commands
enable-integration
Enable a log integration for a specific protocol.<integration>: Integration name (e.g.,syslog)<protocol>: Protocol type (tcp,udp)--tls: (Optional) Enable TLS encryption (TCP only)
disable-integration
Disable a log integration.<integration>: Integration name (e.g.,syslog)<protocol>: Protocol type (tcp,udp)
Disabling an integration automatically disables TLS if it was enabled.
TLS Certificate Commands
load-tls-certs
Load custom TLS certificates for secure integrations.<certificate_path>: Path to server certificate (.crt)<private_key_path>: Path to private key (.key)[ca_certificate_path]: (Optional) Path to CA certificate
- Validates certificate files
- Copies certificates to agent directory
- Sets appropriate permissions
check-tls-certs
Check the status and validity of loaded TLS certificates.Port Management Commands
change-port
Change the listening port for a specific integration.<integration>: Integration name (e.g.,syslog)<protocol>: Protocol type (tcp,udp)<new_port>: New port number
Log Management Commands
change-retention
Change the local log retention limit.<retention_mb>: Retention limit in megabytes
clean-logs
Manually clean old logs based on the retention policy.Help Command
help
Display complete help information and usage examples.- Command syntax for all commands
- Detailed descriptions
- TLS certificate management examples
- TLS integration examples
- Usage notes and requirements
Command Reference Table
| Command | Description | Requires Restart |
|---|---|---|
install | Install the agent service | N/A |
uninstall | Remove the agent service | N/A |
run | Run the agent service | N/A |
enable-integration | Enable a log integration | No |
disable-integration | Disable a log integration | No |
load-tls-certs | Load custom TLS certificates | Yes* |
check-tls-certs | Check TLS certificate status | No |
change-port | Change integration port | No |
change-retention | Change log retention limit | No |
clean-logs | Clean old logs manually | No |
help | Display help information | N/A |
*Requires enabling/disabling the integration to apply TLS certificates.
Common Workflows
Setup Syslog with TLS
Change Syslog Port
Manage Log Storage
Exit Codes
0: Success1: Error (check error message for details)
Best Practices
- Always use administrative privileges: Run commands with
sudo(Linux) or as administrator (Windows) - Check connectivity before installation: Ensure the server is reachable
- Use TLS in production: Always enable TLS for TCP integrations in production environments
- Load custom certificates: Use your own TLS certificates instead of auto-generated ones
- Monitor log retention: Adjust retention based on your disk space and log volume
- Review help output: Run
./utmstack_agent helpfor detailed usage examples
Next Steps
Windows Agent
Windows-specific examples and workflows
Linux Agent
Linux-specific examples and workflows
Configuration
Detailed configuration options