Configuration
Sensor configuration directory
The sensor configuration directory is located at /etc/upwind
Sensor configuration file
The sensor configuration files:
- agent.yaml
- agent-hostconfig.yaml
Sensor services
Systemd Service | Description |
---|---|
upwind-agent-hostconfig.service | Host configuration service |
upwind-agent-scanner.service | Scan Agent - Scans the host on a timer |
upwind-agent-scanner.timer | Timer for the scan agent |
upwind-agent-update.service | Auto-Update service, runs on a timer |
upwind-agent-update.timer | Timer for auto update service (Default: Every hour) |
upwind-agent.service | Upwind Sensor |
Environment Variables
Below is a list of all the environment variables you can set for the Upwind Agent:
Environment Variable | Description | Default |
---|---|---|
UPWIND_CLIENT_ID | Upwind API Client ID (Required) | |
UPWIND_CLIENT_SECRET | Upwind API Client Secret (Required) | |
UPWIND_AGENT_CLOUD_PROVIDER | Upwind Cloud Provider | unset |
UPWIND_AGENT_CLOUD_ACCOUNT_ID | Upwind Cloud Account ID | unset |
UPWIND_AGENT_ZONE | Upwind Cloud Account Zone | unset |
UPWIND_AGENT_VERSION | Upwind Agent Version | stable |
UPWIND_AGENT_INSTALL_ONLY | Don't start the Upwind Agent Service on completion | |
UPWIND_AGENT_NO_UPDATES | Do not enable and start the Upwind Agent Update Service/Timer | |
UPWIND_AGENT_LOG_LEVEL | Set the log level in config | info |
UPWIND_AGENT_LOG_FORMAT | Set the log format in config | logfmt |
UPWIND_AGENT_CPUQUOTA | Set the Upwind Agent Service CPUQuota | 50% |
UPWIND_AGENT_MEMORYHIGH | Set the Upwind Agent Service MemoryHigh | 800M |
UPWIND_AGENT_MEMORYMAX | Set the Upwind Agent Service MemoryMax | 1024M |
UPWIND_AGENT_EXTRA_CONFIG | Set extra config for the Upwind Agent | |
UPWIND_HOSTCONFIG_VERSION | Set the Upwind Agent Host Config Helper Version | stable |
UPWIND_HOSTCONFIG_ENABLED | Enable the Upwind Agent Host Config Helper Service | true |
UPWIND_HOSTCONFIG_LOG_LEVEL | Set the log level in config for Host Config | info |
UPWIND_HOSTCONFIG_LOG_FORMAT | Set the log format in config for Host Config | logfmt |
UPWIND_HOSTCONFIG_EXTRA_CONFIG | Set extra config for the Upwind Agent Host Config Helper | |
UPWIND_SCANNER_ENABLED | Enable periodic scanning | true |
UPWIND_SCANNER_CPUWEIGHT | Set the Upwind Agent Scanner Service CPUWeight | 25 |
UPWIND_SCANNER_IOWEIGHT | Set the Upwind Agent Scanner Service IOWeight | 25 |
UPWIND_SCANNER_MEMORYHIGH | Set the Upwind Agent Scanner Service MemoryHigh | unset |
UPWIND_SCANNER_MEMORYMAX | Set the Upwind Agent Scanner Service MemoryMax | unset |
UPWIND_SCANNER_EXCLUSIONS | Set the Upwind Agent Scanner Service Exclusions | unset |
UPWIND_SCANNER_MIN_HOST_MEM | Minimum host memory required to enable the Upwind Agent Scanner Service | 8388608 |
These variables can be set to configure various aspects of the Upwind Agent according to your specific requirements.
Configuring the Upwind Sensor
To configure the Upwind Sensor according to your environment and security requirements, you can use the environment variables listed above. These variables allow you to specify essential configuration details, such as the Upwind API credentials, logging preferences, service limits, and more.
Setting Environment Variables
Before running the installation or configuration script for the Upwind Sensor, set the desired environment variables in your shell. Use the export
command for each variable you wish to configure:
export VARIABLE_NAME="value"
Replace VARIABLE_NAME
with the name of the variable you're setting, and "value"
with the desired setting.
Installing the Upwind Sensor
After setting the environment variables, you can install the Upwind Sensor by executing the following command:
curl -s https://get.upwind.io/agent.sh | bash -s install
This command downloads and runs the installation script with the environment variables you've set, ensuring the sensor is configured as per your specifications.
Editing Configuration After Installation
If you need to edit the configuration after installation, you can modify the environment variables and re-run the configuration part of the script as follows:
curl -s https://get.upwind.io/agent.sh | bash -s configure
This command will re-apply the configuration changes based on the newly set environment variables.
By following these steps, you can ensure that your Upwind Sensor is customized to meet the specific needs of your infrastructure and security policies.