...
Once the data source is configured, you can either send us the required information if you want us to host and manage the collector for you (Cloud collector), or deploy and host the collector in your own machine using a Docker image (On-premise collector).
Rw ui tabs macro | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| On-premise collector | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Code Block |
|
We use a piece of software called Collector Server to host and manage all our available collectors. If you want us to host this collector for you, get in touch with us and we will guide you through the configuration.
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 createLookups
.In the Parameters section, establish the Collector Parameters as follows below:
Editing the JSON configuration
Code Block | ||
---|---|---|
| ||
{ "global_overrides": { "debug": false }, "inputs": { "akamai-event-viewer": { "id": "<short_unique_id>", "enabled": true, "credentials": { ├── state/ "access_token": "<access_token_value>", └── config/ "client_secret": "<client_secret_value>", "client_token": "<client_token_value>" └── config.yaml |
Note |
---|
Replace |
Devo credentials
In Devo, go to Administration → Credentials → X.509 Certificates, download the Certificate, Private key and Chain CA and save them in <product_name>/certs/
. Learn more about security credentials in Devo here.
Note |
---|
Replace |
Editing the config.yaml file
Code Block | ||
---|---|---|
| ||
globals: debug: false id: not used name: akamai-event-viewer persistence: type: filesystem config: }, "environment": "<environment_value>", "services": { "event_viewer_events": { directory_name: state outputs:"override_base_url": "<host_value>", devo_1: type: devo_platform"request_period_in_seconds": "<request_period_in_seconds_value>", config: address"logs_limit": <devo_address>"<logs_limit_value>", chain"eventTypeId": <chain"<eventTypeId_filename>value>" cert: <cert_filename> } key: <key_filename>} inputs: akamai-event-viewer: } } id: <short_unique_id>} |
Example:
Code Block |
---|
{ "global_overrides": { enabled"debug": truefalse }, credentials "inputs": { access_token: <access_token_value>"akamai-event-viewer": { client_secret: <client_secret_value>"id": "1234567", client_token"enabled": <client_token_value>true, environment: <environment_value> "credentials": { services: event_viewer_events:"access_token": "your_access_token", override_base_url: <host_value>"client_secret": "your_client_secret", request_period_in_seconds"client_token": <request"your_period_in_seconds_value>client_token" }, logs_limit: <logs_limit_value> "environment": "prod", eventTypeId: <eventTypeId_value> |
Example:
Code Block | ||
---|---|---|
| ||
globals: debug"services": false{ id: not_used name: akamai-"event-viewer-collector persistence_viewer_events": { type: filesystem config: directory_name: state outputs: devo_1: "override_base_url": "apiakamai.net", type: devo_platform "request_period_in_seconds": 60, config: address"logs_limit": collector-eu.devo.io50, chain: chain.crt "eventTypeId": "None" cert: example.crt } key: example.key inputs: akamai-event-viewer:} id:} "123456" enabled: true environment: "prod" credentials: access_token: "your_access_token" client_secret: "your_client_secret" client_token: "your_client_token" services: event_viewer_events: override_base_url: "apiakamai.net" request_period_in_seconds: 60 logs_limit: 50 eventTypeId: None |
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 |
Replace the placeholders with your required values following the description table below:
Parameter | Data Type | Requirement | Value Range / Format | Description |
---|---|---|---|---|
|
|
| Example: | The Devo address where logs will be sent. |
|
|
| Min length: | The filename of the chain certificate downloaded from Devo. Example: chain.crt. |
|
|
| Min length: | The filename of your certificate downloaded from Devo. Example: your_domain.crt. |
|
|
| Min length: | The filename of your private key downloaded from Devo. Example: your_domain.key. |
|
|
| Min length: | Unique identifier for the collector instance. |
|
|
|
| Indicates whether the collector is active. |
|
|
| Min length: | API access token for Akamai Event Viewer authentication. |
|
|
| Min length: | Secret key used for secure API requests. |
|
|
| Min length: | Token used to identify the client in API requests. |
|
|
| Example: | Specifies the environment. Use |
|
|
| Host URL when making endpoint requests. | Host URL for making requests to the Event Viewer API. |
|
|
| Default: | Frequency of requests in seconds. |
|
|
|
| Maximum number of logs to retrieve in one API request. |
|
|
| Example: | ID of the specific event type to filter the events. |
Download the Docker image
The 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:
Collector Docker image
SHA-256 hash
3e80c3b0dcdde9c8dd8f10096a31a5c4c4d7eff3c1e8b162a7da19f5d57decb3
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 |
The Docker image can be deployed on the following services:
Docker
Execute 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 |
Docker Compose
The 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 |
Rw tab | ||
---|---|---|
|
We use a piece of software called Collector Server to host and manage all our available collectors. If you want us to host this collector for you, get in touch with us and we will guide you through the configuration.
We use a piece of software called Collector Server to host and manage all our available collectors. If you want us to host this collector for you, get in touch with us and we will guide you through the configuration.
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 createLookups
.In the Parameters section, establish the Collector Parameters as follows below:
Editing the JSON configuration
Code Block | ||
---|---|---|
| ||
{
"global_overrides": {
"debug": false
},
"inputs": {
"akamai-event-viewer": {
"id": "<short_unique_id>",
"enabled": true,
"credentials": {
"access_token": "<access_token_value>",
"client_secret": "<client_secret_value>",
"client_token": "<client_token_value>"
},
"environment": "<environment_value>",
"services": {
"event_viewer_events": {
"override_base_url": "<host_value>",
"request_period_in_seconds": "<request_period_in_seconds_value>",
"logs_limit": "<logs_limit_value>",
"eventTypeId": "<eventTypeId_value>"
}
}
}
}
} |
Example:
Code Block |
---|
{
"global_overrides": {
"debug": false
},
"inputs": {
"akamai-event-viewer": {
"id": "1234567",
"enabled": true,
"credentials": {
"access_token": "your_access_token",
"client_secret": "your_client_secret",
"client_token": "your_client_token"
},
"environment": "prod",
"services": {
"event_viewer_events": {
"override_base_url": "apiakamai.net",
"request_period_in_seconds": 60,
"logs_limit": 50,
"eventTypeId": "None"
}
}
}
}
} |
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 |
---|---|---|---|---|
|
|
| Min length: | Unique identifier for the collector instance. |
|
|
|
| Indicates whether the collector is active. |
|
|
| Min length: | API access token for Akamai Event Viewer authentication. |
|
|
| Min length: | Secret key used for secure API requests. |
|
|
| Min length: | Token used to identify the client in API requests. |
|
|
| Example: | Specifies the environment. Use |
|
|
| Host URL when making endpoint requests. | Host URL for making requests to the Event Viewer API. |
|
|
| Default: | Frequency of requests in seconds. |
|
|
|
| Maximum number of logs to retrieve in one API request. |
|
|
| Example: | ID of the specific event type to filter the events. |
...
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.
This data collector can be run in any machine that has the Docker service available because it should be executed as a docker container. The following sections explain how to prepare all the required setup for having the data collector running. StructureThe following directory structure should be created for being used when running the collector:
Devo credentialsIn Devo, go to Administration → Credentials → X.509 Certificates, download the Certificate, Private key and Chain CA and save them in
Editing the config.yaml file
Example:
Replace the placeholders with your required values following the description table below:
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:
The Docker image can be deployed on the following services: DockerExecute the following command on the root directory
Docker ComposeThe following Docker Compose file can be used to execute the Docker container. It must be created in the
To run the container using docker-compose, execute the following command from the
|
This section is intended to explain how to proceed with specific actions for services.
...