We use a piece of software called Collector Server to host and manage all our available collectors. To enable the collector for a customer: In the Collector Server GUI, access the domain in which you want this instance to be created Click Add Collector and find the one you wish to add. In the Version field, select the latest value. In the Collector Name field, set the value you prefer (this name must be unique inside the same Collector Server domain). In the sending method select Direct Send. Direct Send configuration is optional for collectors that create Table events, but mandatory for those that create Lookups . In the Parameters section, establish the Collector Parameters as follows below:
Editing the JSON configuration Code Block |
---|
| {
"global_overrides": {
"debug": false
},
"inputs": {
"trendmicro_deepsec": {
"id": <short_unique_id>,
"enabled": true,
"credentials": {
"tenantname": "<tenant_name_value>",
"username": "<username_value>",
"password": "<password_value>",
"api_secret_key": "<api_secret_key_value>",
"base_url_cloudone": "<base_url_cloudone_value>"
},
"services": {
"alerts": {
"alerts_types_filter": [
"<alerts_types_filter_values>",
"<alerts_types_filter_values>"
]
},
"antimalware-events": {
"start_time": "<start_time_value>"
},
"integrity-events": {
"start_time": "<start_time_value>"
}
}
}
}
} |
Info |
---|
All defined service entities will be executed by the collector. If you do not want to run any of them, just remove the entity from the services object. |
The following table outlines the parameters available for configuring the collector. Each parameter is categorized by its necessity (mandatory or optional), data type, acceptable values or formats, and a brief description. Parameter | Data Type | Requirement | Value Range / Format | Description |
---|
short_unique_id
| int
| Mandatory | Min length: 1 | A short unique ID for input service, used in persistence addressing. Avoid duplicates to prevent collisions. | tenant_name_value
| str
| Mandatory | Min length: 1 | Tenant name used for authentication. | username_value
| str
| Mandatory* | Min length: 1 | User name for authentication. | password_value
| str
| Mandatory* | Min length: 1 | Password for authentication. | api_secret_key_value
| str
| Mandatory* | Min length: 1 | API secret key for authentication. | base_url_cloudone_value
| str
| Mandatory* | Min length: 1 | Base URL for authentication. This URL depends on the region where the account was registered. For instance, <https://workload.us-1.cloudone.trendmicro.com/rest > | alerts_types_filter_values
| List of str
| Optional | Comma-separated list of strings | Only for alerts: If present, the alerts will be retrieved from these types only. | start_time_value
| str
| Optional | "YYYY-MM-DDTHH:MM:SS.mmmZ"
| Only for anti-malware or integrity events: It will be the start date and time for pulling events. Example: 2024-07-01T03:00:00.000Z |
* For the authentication you must have one of these pairs:
Rw tab |
---|
title | On-premise collector |
---|
|
This data collector can be run on any machine with the Docker service available because it runs as a Docker container. The following sections explain how to prepare all the necessary configurations for the data collector to run. StructureThe following directory structure should be created: Code Block |
---|
<any_directory>
└── devo-collectors/
└── <product_name>/
├── certs/
│ ├── chain.crt
│ ├── <your_domain>.key
│ └── <your_domain>.crt
├── state/
└── config/
└── config.yaml |
Note |
---|
Replace <product_name> with the proper value. |
Devo credentialsTo send data securely to the Devo platform, you will need to download X.509 Certificates from your Devo Domain: Login to your Devo tenant. On the left menu, click on Administration and later click on Credentials Download your Certificate by clicking on Certificate Download your Private Key by clicking on Private Key Download your Chain CA by clicking on Chain CA Move the downloaded files to <product_name>/certs/ folder
For more information about how to get the Devo certificates, please visit Devo Docs. Note |
---|
Replace <product_name> with the proper value. |
 Editing the config.yaml fileAn example of the config.yaml : Code Block |
---|
| globals:
debug: false
id: not used
name: trendmicro-deepsec
persistence:
type: filesystem
config:
directory_name: state
outputs:
devo_1:
type: devo_platform
config:
address: <devo_address>
port: 443
type: SSL
chain: <chain_filename>
cert: <cert_filename>
key: <key_filename>
inputs:
trendmicro_deepsec:
id: <short_unique_id>
enabled: true
credentials:
tenantname: <tenant_name_value>
username: <username_value>
password: <password_value>
api_secret_key: <api_secret_key_value>
base_url_cloudone: <base_url_cloudone_value>
services:
alerts:
alerts_types_filter: [<alerts_types_filter_values>, <alerts_types_filter_values>]
antimalware-events:
start_time: "<YYYY-MM-DDTHH:MM:SS.000Z>"
integrity-events:
start_time: "<YYYY-MM-DDTHH:MM:SS.000Z>" |
The following table outlines the parameters available for configuring the collector. Each parameter is categorized by its necessity (mandatory or optional), data type, acceptable values or formats, and a brief description. Parameter | Data Type | Requirement | Value Range / Format | Description |
---|
short_unique_id
| int
| Mandatory | Min length: 1 | A short unique ID for input service, used in persistence addressing. Avoid duplicates to prevent collisions. | tenant_name_value
| str
| Mandatory | Min length: 1 | Tenant name used for authentication. | username_value
| str
| Mandatory* | Min length: 1 | User name for authentication. | password_value
| str
| Mandatory* | Min length: 1 | Password for authentication. | api_secret_key_value
| str
| Mandatory* | Min length: 1 | API secret key for authentication. | base_url_cloudone_value
| str
| Mandatory* | Min length: 1 | Base URL for authentication. This URL depends on the region where the account was registered. For instance, <https://workload.us-1.cloudone.trendmicro.com/rest > | alerts_types_filter_values
| List of str
| Optional | Comma-separated list of strings | Only for alerts: If present, the alerts will be retrieved from these types only. | start_time_value
| str
| Optional | "YYYY-MM-DDTHH:MM:SS.mmmZ"
| Only for anti-malware or integrity events: It will be the start date and time for pulling events. Example: 2024-07-01T03:00:00.000Z |
* For the authentication you must have one of these pairs:
Download the Docker imageThe collector should be deployed as a Docker container. Download the Docker image of the collector as a .tgz file by clicking the link in the following table: Use the following command to add the Docker image to the system: Code Block |
---|
gunzip -c <image_file>-<version>.tgz | docker load |
Note |
---|
Once the Docker image is imported, it will show the real name of the Docker image (including version info). Replace <image_file> and <version> with a proper value. |
The Docker image can be deployed on the following services: DockerExecute the following command on the root directory <any_directory>/devo-collectors/<product_name>/ Code Block |
---|
docker run
--name collector-<product_name>
--volume $PWD/certs:/devo-collector/certs
--volume $PWD/config:/devo-collector/config
--volume $PWD/state:/devo-collector/state
--env CONFIG_FILE=config.yaml
--rm
--interactive
--tty
<image_name>:<version> |
Note |
---|
Replace <product_name> , <image_name> and <version> with the proper values. |
Docker ComposeThe following Docker Compose file can be used to execute the Docker container. It must be created in the <any_directory>/devo-collectors/<product_name>/ directory. Code Block |
---|
version: '3'
services:
collector-<product_name>:
image: <image_name>:${IMAGE_VERSION:-latest}
container_name: collector-<product_name>
volumes:
- ./certs:/devo-collector/certs
- ./config:/devo-collector/config
- ./credentials:/devo-collector/credentials
- ./state:/devo-collector/state
environment:
- CONFIG_FILE=${CONFIG_FILE:-config.yaml} |
To run the container using docker-compose, execute the following command from the <any_directory>/devo-collectors/<product_name>/ directory: Code Block |
---|
IMAGE_VERSION=<version> docker-compose up -d |
Note |
---|
Replace <product_name> , <image_name> and <version> with the proper values. |
|