---
title: "ColorTokens Xshield collector"
canonical: "https://docs.devo.com/space/latest/593526864/ColorTokens%20Xshield%20collector"
format: markdown
---
> Macro (toc)

## Overview

[Xshield](https://colortokens.com/products/xshield-workload-protection/) stops the lateral spread of malware & ransomware by putting a micro-perimeter around every network asset.

## Devo collector features

| **Feature** | **Details** |
| --- | --- |
| Allow parallel downloading (`multipod`) | `not allowed` |
| Running environments | - `collector server`
- `on-premise` |
| Populated Devo events | `table` |
| Flattening preprocessing | `no` |

## Data sources

| **Data source** | **Description** | **API endpoint** | **Collector service name** | **Devo table** | **Available from release** |
| --- | --- | --- | --- | --- | --- |
| `alerts` | Get all the alert events | `/alerts` | `alerts` | `cwpp.colortokens.xshield.alert` | `v1.0.0` |
| `audits` | Get all the audit events | `audit/events` | `audits` | `cwpp.colortokens.xshield.audit` | `v1.0.0` |

For more information on how the events are parsed, [visit our page](https://devodocs.atlassian.net/wiki/spaces/latest/pages/594575373).

## Flattening preprocessing

| **Data source** | **Collector service** | **Optional** | **Flattening details** |
| --- | --- | --- | --- |
| `alerts` | `alerts` | `yes` | not required |
| `audits` | `audits` | `yes` | not required |

## Minimum configuration required for basic pulling

Although this collector supports advanced configuration, the fields required to retrieve data with basic configuration are defined below.

> ℹ️ This minimum configuration refers exclusively to those specific parameters of this integration. There are more required parameters related to the generic behavior of the collector. Check setting sections for details.

| **Setting** | **Details** |
| --- | --- |
| `tenant` | The tenant to Colortokens Xshield API. Ex : Base URL- `https://{tenant}.spectrum.colortokens.com/public/api/v1/{tenant}/` needs to be replaced by the tenant.   
Ex: If Tenant is ***abcd*** then the **base_url** will be   
`https://abcd.spectrum.colortokens.com/public/api/v1/abcd/` |
| `api_token` | The api token for colortokens Xshield. |

> ℹ️ See the **Accepted authentication methods** section to verify what settings are required based on the desired authentication method.

## Accepted authentication methods

| **Authentication method** | **tenant** | **api_token** |
| --- | --- | --- |
| `credentials` | [REQUIRED] | [REQUIRED] |

## Run the collector

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 (<u>Cloud collector</u>), or deploy and host the collector in your own machine using a Docker image (<u>On-premise collector</u>).

> Macro (rw-ui-tabs-macro)
> 
> > Macro (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](mailto:support@devo.com) and we will guide you through the configuration.
> 
> > Macro (rw-tab)
> 
> 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.
> 
> ### Structure
> 
> The following directory structure should be created for being used when running the collector:
> 
> ```
> <any_directory>
> └── devo-collectors/
>     └── <product_name>/
>         ├── certs/
>         │   ├── chain.crt
>         │   ├── <your_domain>.key
>         │   └── <your_domain>.crt
>         ├── state/
>         └── config/ 
>             └── config.yaml 
> ```
> 
> > ⚠️ Replace `<product_name>` with the proper value.
> 
> ### 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](#).
> 
> ![image-20240419-092936.png](media://192542dc-a791-4ebb-b0b6-74ce191e0cc2)
> 
> > ⚠️ Replace `<product_name>` with the proper value.
> 
> ### Editing the config.yaml file
> 
> ```
> globals:
>   debug: false
>   id: not_used
>   name: colortokens_xshield_collector
>   persistence:
>     type: filesystem
>     config:
>       directory_name: state
> 
> outputs:
>   devo_1:
>     type: devo_platform
>     config:
>       address: <your-ingestion-endpoint>
>       port: 443
>       type: SSL
>       chain: chain.crt
>       cert: <your_domain>.crt
>       key: <your_domain>.key
> inputs:
>   colortokens_xshield:
>     id: <short_unique_id>
>     enabled: <input_status>
>     credentials:
>       tenant: <tenant_value>
>       api_token: <api_token_value>
>     services:
>       alerts:
>          override_limit: <override_limit_value> #Optional
>          override_tag: <override_tag_value> #Optional
>          request_period_in_seconds: <request_period_in_seconds> #Optional
>          start_time_in_utc: <start_time_in_utc_value> # Optional
>        audits:
>          override_limit: <override_limit_value>
>          override_tag: <override_tag_value>
>          request_period_in_seconds: <request_period_in_seconds>
>          start_time_in_utc: <start_time_in_utc_value> # Mandatory
> ```
> 
> > ℹ️ 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.
> 
> Replace the placeholders with your required values following the description table below:
> 
> | **Parameter** | **Data type** | **Type** | **Value range / Format** | **Details** |
> | --- | --- | --- | --- | --- |
> | `<short_unique_id>` | `int` | `Mandatory` | `Minimum Lenght 5` | Use this param to give a unique id to this input service.<br>> ⚠️ This parameter is used to build the persistence address, do not use the same value for multiple collectors. It could cause a collision. |
> | `<input_status>` | `bool` | `Mandatory` | `false` / `true` | Use this param to enable or disable the given input logic when running the collector. If the value is `true`, the input will be run. If the value is `false`, it will be ignored. |
> | `<tenant_value>` | `str` | `Mandatory` | `Minimum Length 1` | Tenant value for Colortokens xshield |
> | `<api_token_value>` | `str` | `Mandatory` | `Minimum Length 1` | API Token for Colortokens Xshield to fetch logs. |
> | `<override_limit>` | `int` | `Optional` | `Minimum Length 1` | This configuration helps to override the limit parameter. By Default it’s value is 100. |
> | `<start_time_in_utc>` | `str` | `Mandatory` | `Minimum Length 1` | Date-time in UTC format. Ex :- `2024-03-10T10:00:00Z` |
> | `<request_period_in_seconds>` | `int` | `Optional` | `Minimum Length 1` | Period in seconds used between each data pulling, this value will overwrite the default value 60 seconds |
> | `<override_tag_value>` | `str` | `Optional` | A Devo tag | This parameter allows to define a custom devo tag. |
> 
> ### 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** |
> | --- | --- |
> | [collector-colortokens_xshield_if-docker-image-1.0.0](https://drive.google.com/file/d/1GbVnBNGBl-3oIJOhgKRhuYbFd50HwCwT/view?usp=drive_link) | `edf2d08504f9fc3aecca7968a1974b1a71414468394e271156f8f3b4673d9be9` |
> 
> Use the following command to add the Docker image to the system:
> 
> ```
> gunzip -c <image_file>-<version>.tgz | docker load
> ```
> 
> > ⚠️ 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:
> 
> #### Docker
> 
> Execute the following command on the root directory `<any_directory>/devo-collectors/<product_name>/`
> 
> ```
> 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>
> ```
> 
> > ⚠️ Replace `<product_name>`, `<image_name>` and `<version>` with the proper values.
> 
> #### 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.
> 
> ```
> 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:
> 
> ```
> IMAGE_VERSION=<version> docker-compose up -d
> ```
> 
> > ⚠️ Replace `<product_name>`, `<image_name>` and `<version>` with the proper values.

## Collector services detail

This section is intended to explain how to proceed with specific actions for services.

### alerts

<details>
<summary>Verify data collection</summary>

Once the collector has been launched, it is important to check if the ingestion is performed in a proper way. To do so, go to the collector’s logs console.

This service has the following components:

| **Component** | **Description** |
| --- | --- |
| Setup | The setup module is in charge of authenticating the service. |
| Puller | The setup module is in charge of pulling the data in a organized way and delivering the events via SDK. |

#### Setup output

A successful run has the following output messages for the setup module:

A successful initial run has the following output messages for the puller module:

> ℹ️ Note that the `PrePull` action is executed only one time before the first run of the `Pull` action.

```
2024-04-18T16:43:19.427    INFO OutputProcess::MainThread -> DevoSender(lookup_senders,devo_sender_0) -> Starting thread
2024-04-18T16:43:19.427    INFO InputProcess::MainThread -> ColorTokensPuller(colortokens_xshield,123906,alerts,predefined) - Starting thread
2024-04-18T16:43:19.427    INFO OutputProcess::MainThread -> DevoSenderManagerMonitor(lookup_senders,devo_us_1) -> Starting thread (every 300 seconds)
2024-04-18T16:43:19.427    INFO OutputProcess::OutputStandardConsumer(standard_senders_consumer_0) -> [EMERGENCY PERSISTENCE SYSTEM] OutputStandardConsumer(standard_senders_consumer_0) -> Nothing retrieved from the persistence.
2024-04-18T16:43:19.428    INFO OutputProcess::MainThread -> DevoSenderManager(lookup_senders,manager,devo_us_1) -> Starting thread
2024-04-18T16:43:19.428 WARNING InputProcess::ColorTokensPuller(colortokens_xshield,123906,alerts,predefined) -> Waiting until setup will be executed
2024-04-18T16:43:19.428    INFO OutputProcess::DevoSenderManager(lookup_senders,manager,devo_us_1) -> [EMERGENCY PERSISTENCE SYSTEM] DevoSenderManager(lookup_senders,manager,devo_us_1) -> Nothing retrieved from the persistence.
2024-04-18T16:43:19.428    INFO OutputProcess::MainThread -> DevoSender(internal_senders,devo_sender_0) -> Starting thread
2024-04-18T16:43:19.428    INFO OutputProcess::MainThread -> DevoSenderManagerMonitor(internal_senders,devo_us_1) -> Starting thread (every 300 seconds)
2024-04-18T16:43:19.428    INFO OutputProcess::OutputLookupConsumer(lookup_senders_consumer_0) -> [EMERGENCY PERSISTENCE SYSTEM] OutputLookupConsumer(lookup_senders_consumer_0) -> Nothing retrieved from the persistence.
2024-04-18T16:43:19.429    INFO OutputProcess::MainThread -> DevoSenderManager(internal_senders,manager,devo_us_1) -> Starting thread
2024-04-18T16:43:19.429    INFO OutputProcess::DevoSenderManager(internal_senders,manager,devo_us_1) -> [EMERGENCY PERSISTENCE SYSTEM] DevoSenderManager(internal_senders,manager,devo_us_1) -> Nothing retrieved from the persistence.
2024-04-18T16:43:19.429    INFO OutputProcess::OutputInternalConsumer(internal_senders_consumer_0) -> [EMERGENCY PERSISTENCE SYSTEM] OutputInternalConsumer(internal_senders_consumer_0) -> Nothing retrieved from the persistence.
2024-04-18T16:43:19.445    INFO OutputProcess::MainThread -> [GC] global: 44.8% -> 44.8%, process: RSS(42.48MiB -> 42.61MiB), VMS(928.03MiB -> 928.03MiB)
2024-04-18T16:43:19.447    INFO InputProcess::MainThread -> [GC] global: 44.8% -> 44.8%, process: RSS(41.26MiB -> 41.26MiB), VMS(495.76MiB -> 495.76MiB)
2024-04-18T16:43:19.873    INFO OutputProcess::DevoSender(internal_senders,devo_sender_0) -> Created a sender: {"name": "DevoSender(internal_senders,devo_sender_0)", "url": "collector-eu.devo.io:443", "chain_path": "/home/mdtausif/Gitlab/devo-collector-colortokens-xshield/certs/chain.crt", "cert_path": "/home/mdtausif/Gitlab/devo-collector-colortokens-xshield/certs/int-if-integrations-india.crt", "key_path": "/home/mdtausif/Gitlab/devo-collector-colortokens-xshield/certs/int-if-integrations-india.key", "transport_layer_type": "SSL", "last_usage_timestamp": null, "socket_status": null}, hostname: "2023-apac-0046", session_id: "136151882455552"
2024-04-18T16:43:20.829    INFO InputProcess::ColorTokensPullerSetup(colortokens_xshield_collector,colortokens_xshield#123906,alerts#predefined) -> Setup for module <ColorTokensPuller> has been successfully executed
```

After a successful collector’s execution (that is, no error logs found), you will see the following log message:

```
2024-04-18T16:43:23.820    INFO InputProcess::ColorTokensPuller(colortokens_xshield,123906,alerts,predefined) -> (Partial) Statistics for this pull cycle (@devo_pulling_id=1713438801430):Number of requests made: 1; Number of events received: 18; Number of duplicated events filtered out: 0; Number of events generated and sent: 18; Average of events per second: 7.549.
```

> ℹ️ The value `@devo_pulling_id` is injected in each event to group all events ingested by the same pull action. You can use it to get the exact events downloaded in that `Pull` action in Devo’s search window.
</details>

<details>
<summary>Restart the persistence</summary>

This collector uses persistent storage to download events in an orderly fashion and avoid duplicates. In case you want to re-ingest historical data or recreate the persistence, you can restart the persistence of this collector by following these steps:

1. Edit the configuration file.
2. Change the value of the `start_time_in_utc` parameter to a different one.
3. Save the changes.
4. Restart the collector.

The collector will detect this change and will restart the persistence using the parameters of the configuration file or the default configuration in case it has not been provided.

> ⚠️ Note that this action clears the persistence and cannot be recovered in any way. Resetting persistence could result in duplicate or lost events.
</details>

<details>
<summary>Troubleshooting</summary>

This collector has different security layers that detect both an invalid configuration and abnormal operation. This table will help you detect and resolve the most common errors.

| **Error type** | **Error ID** | **Error message** | **Cause** | **Solution** |
| --- | --- | --- | --- | --- |
| SetupError | 100 | HTTP Error occurred while retrieving events from Colortoken server | Tenant or api_token are not correct | Make sure that credentials are correct. |
| 101 | Error occurred while retrieving events from Colortokens server | Some error in Colortokens server | Please contact team in this case |
| PullError | 300 | HTTP Error occurred while retrieving events from Colortokens server : {summery} , {details} | This error happens when the collector tries to fetch the data from API. | In this error you will find the HTTP error code as well as the summary and details. |
|  | 301 | Some Error occurred while retrieving events from Colortokens server : {Exception} | Some exceptions occurred while making the API request. | Reach out to the developer with the exact error message. |
</details>

### **audits**  


<details>
<summary>Verify data collection</summary>

Once the collector has been launched, it is important to check if the ingestion is performed in a proper way. To do so, go to the collector’s logs console.

This service has the following components:

| **Component** | **Description** |
| --- | --- |
| Setup | The setup module is in charge of authenticating the service. |
| Puller | The setup module is in charge of pulling the data in a organized way and delivering the events via SDK. |

#### Setup output

A successful run has the following output messages for the setup module:

```
2024-04-19T10:15:42.173    INFO OutputProcess::MainThread -> DevoSenderManager(lookup_senders,manager,devo_us_1) -> Starting thread
2024-04-19T10:15:42.173    INFO OutputProcess::MainThread -> DevoSender(internal_senders,devo_sender_0) -> Starting thread
2024-04-19T10:15:42.173    INFO OutputProcess::MainThread -> DevoSenderManagerMonitor(internal_senders,devo_us_1) -> Starting thread (every 300 seconds)
2024-04-19T10:15:42.173    INFO OutputProcess::MainThread -> DevoSenderManager(internal_senders,manager,devo_us_1) -> Starting thread
2024-04-19T10:15:42.173    INFO OutputProcess::OutputLookupConsumer(lookup_senders_consumer_0) -> [EMERGENCY PERSISTENCE SYSTEM] OutputLookupConsumer(lookup_senders_consumer_0) -> Nothing retrieved from the persistence.
2024-04-19T10:15:42.173    INFO OutputProcess::DevoSenderManager(lookup_senders,manager,devo_us_1) -> [EMERGENCY PERSISTENCE SYSTEM] DevoSenderManager(lookup_senders,manager,devo_us_1) -> Nothing retrieved from the persistence.
2024-04-19T10:15:42.174    INFO OutputProcess::OutputInternalConsumer(internal_senders_consumer_0) -> [EMERGENCY PERSISTENCE SYSTEM] OutputInternalConsumer(internal_senders_consumer_0) -> Nothing retrieved from the persistence.
2024-04-19T10:15:42.174    INFO OutputProcess::DevoSenderManager(internal_senders,manager,devo_us_1) -> [EMERGENCY PERSISTENCE SYSTEM] DevoSenderManager(internal_senders,manager,devo_us_1) -> Nothing retrieved from the persistence.
2024-04-19T10:15:42.179    INFO InputProcess::MainThread -> [GC] global: 30.7% -> 30.8%, process: RSS(41.38MiB -> 41.38MiB), VMS(495.82MiB -> 495.82MiB)
2024-04-19T10:15:42.187    INFO OutputProcess::MainThread -> [GC] global: 30.8% -> 30.8%, process: RSS(41.98MiB -> 42.48MiB), VMS(928.09MiB -> 928.09MiB)
2024-04-19T10:15:42.598    INFO OutputProcess::DevoSender(internal_senders,devo_sender_0) -> Created a sender: {"name": "DevoSender(internal_senders,devo_sender_0)", "url": "collector-eu.devo.io:443", "chain_path": "/home/mdtausif/Gitlab/devo-collector-colortokens-xshield/certs/chain.crt", "cert_path": "/home/mdtausif/Gitlab/devo-collector-colortokens-xshield/certs/int-if-integrations-india.crt", "key_path": "/home/mdtausif/Gitlab/devo-collector-colortokens-xshield/certs/int-if-integrations-india.key", "transport_layer_type": "SSL", "last_usage_timestamp": null, "socket_status": null}, hostname: "2023-apac-0046", session_id: "128307011385904"
2024-04-19T10:15:43.263    INFO InputProcess::ColorTokensPullerSetup(colortokens_xshield_collector,colortokens_xshield#123906,audits#predefined) -> Setup for module <ColorTokensPuller> has been successfully executed 
```

A successful initial run has the following output messages for the puller module:

> ℹ️ Note that the `PrePull` action is executed only one time before the first run of the `Pull` action.

```
2024-04-19T10:17:44.171    INFO InputProcess::ColorTokensPuller(colortokens_xshield,123906,audits,predefined) -> Pull Started
2024-04-19T10:17:44.172    INFO InputProcess::ColorTokensPuller(colortokens_xshield,123906,audits,predefined) -> Fetching the data for colortokens
2024-04-19T10:17:44.173    INFO OutputProcess::OutputInternalConsumer(internal_senders_consumer_0) -> Consumed messages: 10, total_bytes: 7812 (61.961538 seconds)
2024-04-19T10:17:44.174    INFO OutputProcess::DevoSender(internal_senders,devo_sender_0) -> Consumed messages: 13 messages (61.271725 seconds) => 0 msg/sec
```

After a successful collector’s execution (that is, no error logs found), you will see the following log message:

```
2024-04-19T10:17:45.145    INFO InputProcess::ColorTokensPuller(colortokens_xshield,123906,audits,predefined) -> Statistics for this pull cycle (@devo_pulling_id=1713502064171):Number of requests made: 0; Number of events received: 0; Number of duplicated events filtered out: 0; Number of events generated and sent: 0; Average of events per second: 0.000.
```

> ℹ️ The value `@devo_pulling_id` is injected in each event to group all events ingested by the same pull action. You can use it to get the exact events downloaded in that `Pull` action in Devo’s search window.
</details>

<details>
<summary>Restart the persistence</summary>

This collector uses persistent storage to download events in an orderly fashion and avoid duplicates. In case you want to re-ingest historical data or recreate the persistence, you can restart the persistence of this collector by following these steps:

1. Edit the configuration file.
2. Change the value of the `start_time_in_utc` parameter to a different one.
3. Save the changes.
4. Restart the collector.

The collector will detect this change and will restart the persistence using the parameters of the configuration file or the default configuration in case it has not been provided.

> ⚠️ Note that this action clears the persistence and cannot be recovered in any way. Resetting persistence could result in duplicate or lost events.
</details>

<details>
<summary>Troubleshooting</summary>

This collector has different security layers that detect both an invalid configuration and abnormal operation. This table will help you detect and resolve the most common errors.

| **Error type** | **Error ID** | **Error message** | **Cause** | **Solution** |
| --- | --- | --- | --- | --- |
| SetupError | 100 | HTTP Error occurred while retrieving events from Colortokens server | API Token, Tenat are not correct | Make sure that credentials are correct. |
| 101 | Error occurred while retrieving events from Colortokens server | Some error in Colortokens server | Please contact team in this case |
| PullError | 300 | HTTP Error occurred while retrieving events from Colortokens server : {summery} , {details} | This error happens when the collector tries to fetch the data from API. | In this error you will find the HTTP error code as well as the summary and details. |
|  | 301 | Some Error occurred while retrieving events from Colortokens server : {Exception} | Some exceptions occurred while making the API request. | Reach out to the developer with the exact error message. |
</details>

## Collector operations

This section is intended to explain how to proceed with specific operations of this collector.

<details>
<summary>Verify collector operations</summary>

### Initialization

The initialization module is in charge of setup and running the input (pulling logic) and output (delivering logic) services and validating the given configuration.

A successful run has the following output messages for the initializer module:

```
2024-04-18T16:43:19.394    INFO OutputProcess::MainThread -> Process started
2024-04-18T16:43:19.395    INFO MainProcess::MainThread -> Started all object from "MainProcess" process
2024-04-18T16:43:19.395    INFO InputProcess::MainThread -> Process Started
2024-04-18T16:43:19.419    INFO InputProcess::MainThread -> ColorTokensPuller(colortokens_xshield,123906,alerts,predefined) Starting the execution of init_variables()
2024-04-18T16:43:19.419    INFO InputProcess::MainThread -> Validating service metadata
2024-04-18T16:43:19.421    INFO InputProcess::MainThread -> Validating defined module definition
2024-04-18T16:43:19.423    INFO InputProcess::MainThread -> Validating common input config
2024-04-18T16:43:19.424    INFO InputProcess::MainThread -> Validating service input config
2024-04-18T16:43:19.425    INFO InputProcess::MainThread -> Running overriding rules
2024-04-18T16:43:19.425    INFO InputProcess::MainThread -> Validating the rate limiter config given by the user
2024-04-18T16:43:19.425    INFO InputProcess::MainThread -> <requests_limits> setting has not been defined. The generic settings will be used instead.
2024-04-18T16:43:19.425    INFO InputProcess::MainThread -> Adding raw config to the collector store
2024-04-18T16:43:19.425    INFO InputProcess::MainThread -> Running custom validation rules
2024-04-18T16:43:19.425    INFO InputProcess::MainThread -> Creating API client.
2024-04-18T16:43:19.425    INFO InputProcess::MainThread -> Created request client: <agent.modules.colortokens.commons.colortokens_client.ColorTokensClient object at 0x7bd451442c10>
2024-04-18T16:43:19.426    INFO InputProcess::MainThread -> ColorTokensPuller(colortokens_xshield,123906,alerts,predefined) Finalizing the execution of init_variables()
```

### Events delivery and Devo ingestion

The event delivery module is in charge of receiving the events from the internal queues where all events are injected by the pullers and delivering them using the selected compatible delivery method.

A successful run has the following output messages for the initializer module:

```
2024-02-16T12:30:03.484    INFO OutputProcess::DevoSenderManagerMonitor(lookup_senders,devo_us_1) -> Number of available senders: 1, sender manager internal queue size: 0
2024-02-16T12:30:03.485    INFO OutputProcess::DevoSenderManagerMonitor(lookup_senders,devo_us_1) -> enqueued_elapsed_times_in_seconds_stats: {}
2024-02-16T12:30:03.485    INFO OutputProcess::DevoSenderManagerMonitor(lookup_senders,devo_us_1) -> Sender: DevoSender(lookup_senders,devo_sender_0), status: {"internal_queue_size": 0, "is_connection_open": False}
2024-02-16T12:30:03.485    INFO OutputProcess::DevoSenderManagerMonitor(lookup_senders,devo_us_1) -> Lookup - Total number of messages sent: 0, messages sent since "2024-02-16 06:55:03.484110+00:00": 0 (elapsed 0.000 seconds)
2024-02-16T12:30:03.535    INFO InputProcess::InputStatsThread -> Input metrics sent: 3
2024-02-16T12:30:03.536    INFO OutputProcess::OutputInternalConsumer(internal_senders_consumer_0) -> Consumed messages: 9, total_bytes: 6919 (60.001823 seconds)
```

> ℹ️ By default, these information traces will be displayed every 10 minutes.

#### Sender services

The Integrations Factory Collector SDK has 3 different senders services depending on the event type to delivery (`internal`, `standard`, and `lookup`). This collector uses the following Sender Services:

| **Sender services** | **Description** |
| --- | --- |
| `internal_senders` | In charge of delivering internal metrics to Devo such as logging traces or metrics. |
| `standard_senders` | In charge of delivering pulled events to Devo. |

#### Sender statistics

Each service displays its own performance statistics that allow checking how many events have been delivered to Devo by type:

| **Logging trace** | **Description** |
| --- | --- |
| `Number of available senders: 1` | Displays the number of concurrent senders available for the given Sender Service. |
| `sender manager internal queue size: 0` | Displays the items available in the internal sender queue.<br>> ℹ️ This value helps detect bottlenecks and needs to increase the performance of data delivery to Devo. This last can be made by increasing the concurrent senders. |
| `Total number of messages sent: 0, messages sent since "2024-02-16 06:55:03.484110+00:00": 0 (elapsed 0.000 seconds)` | Displayes the number of events from the last time and following the given example, the following conclusions can be obtained:<br>- 44 events were sent to Devo since the collector started.
- The last checkpoint timestamp was `2024-02-16 06:55:03.484110+00:00`.
- 0 events where sent to Devo between the last UTC checkpoint and now.
- Those 0 events required `0.000 seconds` to be delivered.<br>> ℹ️ By default these traces will be shown every 10 minutes. |
</details>

<details>
<summary>Check memory usage</summary>

To check the memory usage of this collector, look for the following log records in the collector which are displayed every 5 minutes by default, always after running the memory-free process.

- The used memory is displayed by running processes and the sum of both values will give the total used memory for the collector.
- The global pressure of the available memory is displayed in the `global` value.
- All metrics (Global, RSS, VMS) include the value before freeing and after `previous -> after freeing memory`

```
2024-04-18T16:43:19.445    INFO OutputProcess::MainThread -> [GC] global: 44.8% -> 44.8%, process: RSS(42.48MiB -> 42.61MiB), VMS(928.03MiB -> 928.03MiB)
2024-04-18T16:43:19.447    INFO InputProcess::MainThread -> [GC] global: 44.8% -> 44.8%, process: RSS(41.26MiB -> 41.26MiB), VMS(495.76MiB -> 495.76MiB)
```

> ℹ️ Differences between `RSS` and `VMS` memory usage:
> ℹ️ 
> ℹ️ - `RSS` is the Resident Set Size, which is the actual physical memory the process is using
> ℹ️ - `VMS` is the Virtual Memory Size which is the virtual memory that process is using
</details>

## Change log

| **Release** | **Released on** | **Release type** | **Details** | **Recommendations** |
| --- | --- | --- | --- | --- |
| `v1.0.0` | 4/17/2024 | [FIRST RELEASE] | Released the first version of the Colortokens Xshield collector. | `Recommended version` |