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

> ℹ️ Devo recommends using the [AWS SQS collector](https://docs.devo.com/space/latest/94655615/AWS+(S3+SQS)+collector) instead of the AWS collector.  SQS improves ease of use, reliability, and performance.

## Overview

Amazon Web Services (AWS) provides on-demand cloud computing platforms and APIs to individual companies. Each available AWS service generates information related to different aspects of its functionality. The available data types include service events, audit events, metrics, and logs.

You can use the **AWS collector** to retrieve data from the AWS APIs and send it to your Devo domain. Once the gathered information arrives at Devo, it will be processed and included in different tables in the associated Devo domain so users can analyze it.

To run this collector, there are some configurations detailed below that you need to consider:

| **Configuration** | **Details** |
| --- | --- |
| Credentials | There are several available options to define credentials. |
| Service events | All the service events that are generated on AWS are managed by Cloudwatch. However, Devo’s AWS collector offers two different services that collect Cloudwatch events:<br>- `sqs-cloudwatch-consumer` - This service is used to collect Security Hub events.
- `service-events-all` -This service is used to collect events from the rest of the services on AWS. |
| Audit events | For the S3+SQS approach (setting types as audits_s3) some previous configuration is required. |
| Logs | Logs can be collected from different services. Depending on the type, some previous setups must be applied on AWS. |

> ℹ️ **More information**
> ℹ️ 
> ℹ️ Refer to the [Vendor setup ](#)section to know more about these configurations.

> ⚠️ If you need to pull global service events created by CloudFront, IAM and AWS STS, US regions will need to be enabled within the collector. For more information, see [Viewing CloudTrail events with the AWS CLI](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-cli.html) and [Using update-trail](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-create-and-update-a-trail-by-using-the-aws-cli-update-trail.html).

## 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** |
| --- | --- | --- | --- | --- | --- |
| Service events | The different available services in AWS usually generate some information related to their internal behaviors, such as "a virtual machine has been started", "a new file has been created in an S3 bucket" or "an AWS lambda function has been invoked" and this kind of event can be triggered by no human interaction.<br>The service events are managed by the `CloudWatch Events` service (`CWE`), recently AWS has created a new service called `Amazon EventBridge` that tends to replace the `CWE` service.<br>The findings detected by `AWS Security Hub` are also managed by `CloudWatch Events (CWE)`. | `ReceiveMessage`<br>[ReceiveMessage - Amazon Simple Queue Service](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ReceiveMessage.html) | Generic events:<br>`service-events-all`<br>Security Hub events:<br>`sqs-cloudwatch-consumer` | Generic events:<br>- If `auto_event_type` parameter in config file is not set or set to `false`: `cloud.aws.cloudwatch.events`
- If `auto_event_type` parameter in config file is set to `true`: `cloud.aws.cloudwatch.{event_type}`<br>Security Hub events:<br>- `cloud.aws.securityhub.findings` | `-` |
| Audit events | This kind of event is more specific because they are triggered by a human interaction no matter the different ways used: API, web interaction, or even the CLI console.<br>The audit events are managed by the `CloudTrail` service.<br>There are two ways to read Audit events:<br>- API: using CloudTrail API. This way is slower, but it can retrieve data back in time.
- S3+SQS: forwarding CloudTrail data to an S3 bucket and reading from there through a SQS queue. This way is much faster, but it only can retrieve elements since the creation of the S3+SQS pipeline. | Via API:<br>`LookupEvents`<br>[LookupEvents - AWS CloudTrail](https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_LookupEvents.html)<br>Via S3+SQS:<br>`ReceiveMessage`<br>[ReceiveMessage - Amazon Simple Queue Service](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ReceiveMessage.html) | `audit-events-all` | - If `auto_event_type` parameter in config file is not set or set to `false`: `cloud.aws.cloudtrail.events`
- If `auto_event_type` parameter in config file is set to `true`: `cloud.aws.cloudtrail.{event_type}` | `-` |
| Metrics | According to the standard definition, this kind of information is usually generated at the same moment is requested because it is usually a query about the status of a service (all things inside AWS are considered services).<br>AWS makes something slightly different because what is doing is to generate metrics information every N time slots, such as 1 min, 5 min, 30 min, 1h, etc., even if no one makes a request (also is possible to have information every X seconds but this would require extra costs).<br>The metrics are managed by the `CloudWatch Metrics` service (`CWM`). | `ListMetrics`<br>[ListMetrics - Amazon CloudWatch](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html)<br>After listing the metrics, `GetMetricData` and `GetMetricStatistics` are also called.<br>[GetMetricData - Amazon CloudWatch](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html)<br>[GetMetricStatistics - Amazon CloudWatch](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html) | `metrics-all` | `cloud.aws.cloudwatch.metrics` | `-` |
| Logs | Logs could be defined as information with a non-fixed structure that is sent to one of the available “logging” services, these services are `CloudWatch Logs` and `S3`.<br>There are some very customizable services, such as `AWS Lambda`, or even any developed application which is deployed inside an AWS virtual machine (`EC2`), that can generate custom log information, this kind of information is managed by the `CloudWatch Logs` service (`CWL`) and also by the `S3` service.<br>There are also some other services that can generate logs with a fixed structure, such as `VPC Flow Logs` or `CloudFront Logs`. These kinds of services require one special way of collecting their data. | `DescribeLogStreams`<br>[DescribeLogStreams - Amazon CloudWatch Logs](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeLogStreams.html) | Logs can be:<br>- Managed by Cloudwatch: This is a custom service that is activated using service `custom_service` and including the type `logs` into the `types` parameter in the config file.
- Not managed by Cloudwatch: Use `non-cloudwatch-logs` service and include the required type (`flowlogs` for VPC Flow Logs and/or `cloudfrontlogs` for CloudFront Logs) into the `types` parameter in the config file. | - Managed by Cloudwatch: `cloud.aws.cloudwatch.logs`
- Not managed by Cloudwatch:
  - VPC Flow Logs:
    - If `auto_event_type` parameter in config file is set to `true`: `cloud.aws.vpc.unknown`
    - If `auto_event_type` parameter in config file is set to `true`: `cloud.aws.vpc.{event_type}`
  - CloudFront Logs:
    - If `auto_event_type` parameter in config file is set to `true`: `cloud.aws.cloudfront.unknown`
    - If `auto_event_type` parameter in config file is set to `true`: `cloud.aws.cloudfront.{event_type}` | `-` |
| AWS GuardDuty | AWS GuardDuty is a managed threat detection service that continuously monitors for malicious activity and unauthorized behavior to protect your AWS accounts, workloads, and data stored in Amazon S3.<br>**Data Sources**: GuardDuty ingests and processes data from AWS CloudTrail logs, VPC Flow Logs, and DNS logs<br>**Findings**: When a potential threat is detected, GuardDuty generates a finding. These findings provide details about the activity, including the affected resources, type of threat, and suggested remediation actions.<br>We are using API to get findings of GuardDuty service. | [What is Amazon GuardDuty? - Amazon GuardDuty](https://docs.aws.amazon.com/guardduty/latest/ug/what-is-guardduty.html) | `aws-guardduty` | - `cloud.aws.guardduty.findings` | `v1.10.0` |
| Cisco Umbrella [Non-AWS service] | Cisco Umbrella is a cloud-driven Secure Internet Gateway (SIG) that leverages insights gained through the analysis of various logs, including DNS logs, IP logs, and Proxy logs, to provide a first line of defense.<br>**DNS logs** record all DNS queries that are made through the Cisco Umbrella DNS resolvers. These logs contain data about the DNS queries originating from your network, requested domain names and the IP address of the requester.<br>**IP logs** capture all IP-based communications that occur through the network. These logs store details such as the source and destination IP addresses, ports and protocols used.<br>**Proxy logs** are generated when users access web resources through the Cisco Umbrella intelligent proxy. They contain detailed information on the web traffic including the URL accessed, the method of access (GET, POST, etc.), the response status, etc | Via S3+SQS:<br>`ReceiveMessage`<br>[ReceiveMessage - Amazon Simple Queue Service](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ReceiveMessage.html) | `cisco-umbrella` | - `sig.cisco.umbrella.dns`
- `sig.cisco.umbrella.ip`
- `sig.cisco.umbrella.proxy` | `v1.6.0` |

## Vendor setup

> Macro (anchor)



There are some minimal requirements to set up this collector:

- AWS console access: Credentials are required to access the AWS console.
- Owner or Administrator permissions within the AWS console, or the fill access to configure AWS services.

Some manual actions are necessary in order to get all the required information or services and allow Devo to gather information from AWS. The following sections describe how to get the required AWS credentials and how to proceed with the different required setups depending on the gathered information type.

### Credentials

It’s recommended to have available or create the following IAM policies before the creation of the IAM user that will be used for the AWS collector.

<details>
<summary>Policy details</summary>

Some collector services require the creation of some IAM policies before creating the IAM user that will be used for the AWS collector. The following table contains the details about the policies that could be used by the AWS collector:

| **Source type** | **AWS Data Bus** | **Recommended policy name** | **Variant** | ** Additional info** |
| --- | --- | --- | --- | --- |
| Service events | `CloudWatch Events` | `devo-cloudwatch-events` | All resources | > ✅ It’s not required the creation of any new policy due to there are not needed any permissions |
| Audit events | `CloudTrail API` | `devo-cloudtrail-api` | All resources | ```
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": "cloudtrail:LookupEvents",
            "Resource": "*"
        }
    ]
}
``` |
| `-` | `-` | Specific resource | > ❌ There is no way for limiting the accessed resources |
| `CloudTrail S3+SQS` | `devo-cloudtrail-s3` | All resources | ```
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": "s3:GetObject",
            "Resource": "*"
        }
    ]
}
``` |
|  | `-` | `-` | Specific S3 bucket<br>> ℹ️ Note that the value for the property called Resource should be changed with the proper value<br>> ⚠️ It very important the `/*` string at the end of each bucket name | ```
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": "s3:GetObject",
            "Resource": [
                "arn:aws:s3:::devo-cloudtrail-storage-bucket1/*",
                "arn:aws:s3:::devo-cloudtrail-storage-bucket2/*"
            ]
        }
    ]
}
``` |
| Metrics | `CloudWatch Metrics` | `devo-cloudwatch-metrics` | All resources | ```
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "cloudwatch:GetMetricData",
                "cloudwatch:ListMetrics"
            ],
            "Resource": "*"
        }
    ]
}
``` |
| Specific resource | > ❌ There is no way for limiting the accessed resources |
| Logs | `CloudWatch Logs` | `devo-cloudwatch-logs` | All log groups<br>> ℹ️ Note that the value for property `Resource` should be adapted with the proper account id value. | ```
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "logs:DescribeLogGroups",
                "logs:DescribeLogStreams",
                "logs:FilterLogEvents"
            ],
            "Resource": "arn:aws:logs:*:936082584952:log-group:*"
        }
    ]
}
``` |
| Specific log groups<br>> ℹ️ Note that values inside the `Resources` property are only examples and they should be changed with the proper values. | ```
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "logs:DescribeLogGroups",
                "logs:DescribeLogStreams",
                "logs:FilterLogEvents"
            ],
            "Resource": [
                "arn:aws:logs:*:936082584952:log-group:/aws/events/devo-cloudwatch-test-1:*",
                "arn:aws:logs:*:936082584952:log-group:/aws/events/devo-cloudwatch-test-2:*"
            ]
        }
    ]
}
``` |
| `Logs to S3 + SQS` | `devo-vpcflow-logs` | All resources | ```
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": "s3:GetObject",
            "Resource": "*"
        }
    ]
}
``` |
| Specific resource | ```
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::vpc-flowlogs-test1/*"
        }
    ]
}
``` |
| Cisco Umbrella | `Logs to S3 + SQS` | `devo-cisco-umbrella` | Specific resource | ```
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::cisco-logs-us-west-1/<prefix>/*"
        }
    ]
}
``` |
| AWS GuardDuty | `Guardduty API` | `devo-guardduty-api` | Specific resource | ```
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "guardduty:GetFindings",
                "guardduty:ListFindings",
                "guardduty:ListDetectors"
            ],
                        "Resource": "arn:aws:guardduty:<region>:<accountID>:detector/*"
"Resource": "arn:aws:guardduty:<region>:<accountID>:detector/*"

        }
    ]
}
``` |

> ℹ️ All the previous policies are defined to be *AWS region* agnostic, which means, that they will be valid for any *AWS region*.
</details>

<details>
<summary>Using a user account and local policies</summary>

Depending on which source types are collected, one or more of the policies described above will be used. Once the required policies are created, each one must be associated with an IAM user. To create it, visit the [AWS Console](https://aws.amazon.com/es/) and log in with a user account with enough permissions to create and access AWS structures:

1. Go to **IAM → Users**.
2. Click **Add users** button.
3. Enter the required value in the filed *User name*.
4. Enable the checkbox **Access key - Programmatic access**.
5. Click on **Next: Tags **button.
6. Click on **Next: Review** button.
7. Click on **Create user** button.
8. The **Access Key ID** and **Secret Key **will show. Click **Download.csv **button and save it.
</details>

<details>
<summary>Assuming a role (self-account)</summary>

It is best practice to assume roles that are granted just the required privileges to perform an action. If the customer does not want to use their own AWS use to perform these actions required by the collector - because it has far more privileges than required - they can use this option. Note that this option requires the use of **AWS account credentials**. To avoid sharing those credentials, check the Cross Account section below.

Then the customer must attach the **required policies to AWS** to the role that is going to be assumed.

1. Go to IAM → Roles.
2. Click on **Create role** button.
3. In the **Trusted entity type**, select **AWS account** and then select **This account (123456789012)**.
4. Add the required policies.
5. Give a name to the role.
6. Click on **Create role**.

You should also add authentication credentials to the configuration. Add the next fields into the configuration:

- `access_key`: This is the Access Key ID provided by AWS during the user creation process.
- `access_secret`: This is the Secret Access Key provided by AWS during the user creation process.
- `base_assume_role`: This is the ARN of the role that is going to be assumed by the user authenticated with the parameters above, `access_key` and `access_secret`. This role has to be properly granted to allow the actions that the collector is going to perform.

These fields need to be in the credentials and are required to use this authentication method:

```
...,
"credentials":{
  "access_key": "<CUSTOMER_AWS_ACCOUNT_ACCESS_KEY>",
  "access_secret": "<CUSTOMER_AWS_ACCOUNT_SECRET_ACCESS_KEY>",
  "base_assume_role": "arn:aws:iam::<CUSTOMER_AWS_ACCOUNT_ID>:role/<ROLE_TO_BE_ASSUMED>"
}
...,
```
</details>

<details>
<summary>Assuming a role (cross-account)</summary>

In case you don't want to share your credentials with Devo, you should add some parameters to the configuration file. In the credentials section, instead. of sharing `access_key` and `access_secret`. Follow these steps to allow this authentication:

1. Prepare the environment to allow Devo’s cloud collector server to assume roles cross-account.
2. Add ARNs for each role into the configuration:
  - `base_assume_role`: This is the ARN of the role that is going to be assumed by the profile bound to the machine/instance where the collector is running. This role already exists in Devo's AWS account and its value must be: `arn:aws:iam::476382791543:role/devo-xaccount-cc` *
  - `target_assume_role`: This is the ARN of the role in the AWS account. This role allows the collector to have access to the resources specified in this role. To keep your data secure, please, use policies that grant just the necessary permissions.
  - `assume_role_external_id` : This is an optional parameter to add more security to this Cross Account operation. This value should be a string added to the request to assume the customer’s role.

> ⚠️ ***New role**
> ⚠️ 
> ⚠️ If you’re deploying your collector using the [Cloud collector app](https://devodocs.atlassian.net/wiki/spaces/latest/pages/333905965), you should use the following role instead of the one above:
> ⚠️ 
> ⚠️ `arn:aws:iam::476382791543:role/devo-xaccount-cc`
> ⚠️ 
> ⚠️ For more information, please [contact us](mailto:support@devo.com).

> ⚠️ **Credentials**
> ⚠️ 
> ⚠️ This authentication method has not shared credentials. This fields needs to be in the `credentials` and are all required, except `assume_role_external_id` which is optional:

```
...,
"credentials":{
  "base_assume_role": "arn:aws:iam::<BASE_SYSTEM_AWS_ACCOUNT_ID>:role/<BASE_SYSTEM_ROLE>",
  "target_assume_role": "arn:aws:iam::<CUSTOMER_AWS_ACCOUNT_ID>:role/<CUSTOMER_ROLE_TO_BE_ASSUMED>",
  "assume_role_external_id": "<OPTIONAL__ANY_STRING_YOU_WANT>"
}
...,
```
</details>

### Service Events

Cloudwatch manages all the service events that have been generated on AWS. However, Devo’s AWS Collector offers two different services that collect Cloudwatch Events:

1. `sqs-cloudwatch-consumer`: This service is used to collect Security Hub events.
2. `service-events-all`: This service is used to collect events from the rest of the services on AWS

> ℹ️ **Service events**
> ℹ️ 
> ℹ️ Some previous configurations are required if you want to use any of these services. The **AWS services** generate service events per region, so the following instructions should be applied in each region where the collecting information is required. There are some structures that you need to create for collecting these service events: `FIFO queue` in the **SWS service** and `Rule+Target` in the **CloudWatch service**.

If you want to create them manually, click on each one to follow the steps.

<details>
<summary>SQS FIFO queue creation</summary>

1. Go to **Simple Queue Service** and click on **Create queue**.
2. In the **Details section**. Choose *FIFO queue type* and set the name field value you prefer. It must end with` .fifo `suffix.
3. In the **Configuration section**. Set the *Message retention period* field value to 5 days. Be sure that **Content-based deduplication** checkbox is marked.
4. In the Access policy section. Choose method *Basic* and choose *Only the queue owner* for receiving and sending permissions.
5. Optional step. Create one tag with Key *usedby* and value *devo-collector*.
6. Click on **Create queue**.
</details>

<details>
<summary>EventBridge Rule + Target creation</summary>

1. Go to EventBridge, expand Evvents in the left-menu side and click on Rules.
2. In the **Defined rule detail section**, fill the required data and select the Rule type called **Rule with an event pattern**.
3. In the **Build event pattern section**, select **All events**.*
4. In the **Select Target section**, select **AWS target** as a target type and fill the SQS queue information. In the** Message group ID** write* devo-collector*.
5. Optional step. Configure tags section.
6. In the **Review and create section**, just check the different sections and once everything is correct, click on** Create rule**.

> ℹ️ **( * )Note for Security Hub**
> ℹ️ 
> ℹ️ To retrieve **Security Hub Findings**, in **Build event pattern section**, select AWS events or EventBridge partner events in Event source. Then, go to **Sample events** - optional part and select **AWS events in Sample event type**. In **Sample events **select **Security Hub Findings - Custom Action**
</details>

### Steps to enable Audit Events

No actions are required in Cloudtrail Service for retrieving this kind of information when the API approach is used (setting **types** as **audit_apis**).

For the S3+SQS approach (setting types as audits_s3) some previous configuration is required. Find a complete description of how to create an S2 +SQS pipeline [here](https://docs.devo.com/space/latest/94655615/AWS+(S3%2BSQS)+collector).

### Steps to enable Metrics

No actions are required in **CloudWatch Metrics** service for retrieving this kind of information.

### Steps to enable Logs

Logs can be collected from different services. Depending on the type, some previous setups must be applied on AWS:

<details>
<summary>CloudWatch Logs</summary>

No actions are required in this service for retrieving this kind of information.
</details>

<details>
<summary>VPC Flow Logs</summary>

Before enabling the generation of these logs some structures must be created: one **bucket** in the **S3 service** and one **FIFO queue** in the** SQS service.**

Follow the steps to create those structures manually:

#### Create SQS Stadard queue 

1. Go to **Simple Queue Service** and click on **Create queue**.
2. In the **Details** section. Choose the **Standard queue type**.
3. In the **Configuration** section set the **Message retention period field value** to 5 days and leave the rest of the values from the **Configuration** section with the default ones.
4. In the **Access Policy** section choose** method Advanced** and adapt this value `Principal: {"AWS·:·<account_id>"}`.
5. Optional. In the Tag section create one tag with key “usedBy” and value “devo-collector”.
6. Click on **Create queue** button.

#### Create or configure S3 bucket

1. Go to **S3** and click on Create** bucket button**.
2. Set the preferred value in the **Bucket name field**.
3. Choose any Region value.
4. Click on the **next button**.
5. Optional. Create one tag with Key. “usedBy” and value “devo-collector”.
6. Leave all values with the default ones and click on the **next button**.
7. Click on **Create bucket button**.
8. Mark the checkbox next to the previously created S3 Bucket.
9. Mark the checkbox next to the previously created S3 bucket.
10. n the popup box click on **Copy Bucket ARN** button and save the content for being used in the next steps.
11. In S3 bucket list click on the previously created **bucket name** link.
12. Click on the **Properties** tab.
13. Click on the** Events box.**
14. Click on the **Add notification** link.
15. Set the preferred value in **Name** field.
16. Mark **All object create events** checkbox.
17. In **Send to** field select **SQS Queue** as value.
18. Select the previously created SQS queue in **SQS** field.

#### Create Flow Log

1. Go to **VPC service.**
2. Select any available VPC (or create a new one).
3. Choose** Flow Logs** tab.
4. Click on** Create flow log button.**
5. Choose the preferred Filter value.
6. Choose the preferred Maximum aggregation interval value.
7. Select as Destination field value **Send to an S3 bucket**.
8. In **S3 bucket ARN** field value set the ARN of the previously created S3 bucket (Saved in a previous step).
9. Be sure that the format field has set the value AWS default format.
10. Optional. Create one tag with Key "usedBy" and Value "devo-collector"
11. Click on **Create button**.
</details>

<details>
<summary>Cloudfront Logs</summary>

Before enabling the generation of these logs some structures must be created: one **bucket** in the *S3* service and one **FIFO queue** in the *SQS* service.

For the manual creation of these required structures, please follow the next steps:

#### Create SQS Standard queue

1. Go to **Simple Queue Service** and click on **Create queue button.**
2. In the **Details section** choose **Standardqueue typ** and set the Name field value you prefer.
3. In the **Configuration section** set the **Message retention period field** value to 5 Day and leave the rest values from **Configuration section** with the default ones.
4. In the **Access policy** section choose method **Advance** and replace `"Principal": {"AWS":"<account_id>"}` with `"Principal": "*" (leave rest of JSON as come)`.
5. Optional. In the **Tags section** create one tag with Key "usedBy" and Value "devo-collector"
6. Click on **Create queue button.**

#### Create or configure S3 bucket

1. Go to **S3** and click on Create** bucket button**.
2. Set the preferred value in the **Bucket name field**.
3. Choose any Region value.
4. Click on the **next button**.
5. Optional. Create one tag with Key. “usedBy” and value “devo-collector”.
6. Leave all values with the default ones and click on the **next button**.
7. Click on **Create bucket button**.
8. Mark the checkbox next to the previously created S3 Bucket.
9. Mark the checkbox next to the previously created S3 bucket.
10. n the popup box click on **Copy Bucket ARN** button and save the content for being used in the next steps.
11. In S3 bucket list click on the previously created **bucket name** link.
12. Click on the **Properties** tab.
13. Click on the** Events box.**
14. Click on the **Add notification** link.
15. Set the preferred value in **Name** field.
16. Mark **All object create events** checkbox.
17. In **Send to** field select **SQS Queue** as value.
18. Select the previously created SQS queue in **SQS** field.

#### Allow Loggin in Cloudfront

1. Go to **Cloudfront service**.
2. Click on** ID field** link of the **target Distribution item** (for accessing to Distributing Settings options).
3. Click on the **Edit button**.
4. In **Logging** choose the value **On**.
5. In the** Bucket for Logs** field value set the **ARN** of the previously created S3 bucket (Saved in a previous step).
6. Click on **Yes** and then click on the **Edit button**.
</details>

### Steps to enable Cisco Umbrella logs

| **Action** | **Steps** |
| --- | --- |
| `SQS Standard queue` creation | 1. Go to **Simple Queue Service** and click **Create queue**.
2. In the **Details** section:
  1. Choose **Standard **queue type.
  2. Set the **Name** field value you prefer.
3. In the **Configuration** section:
  1. Set the **Message retention period** field value to **5 Days**.
  2. Leave the rest values from **Configuration** section with the default ones.
4. In the **Access policy** section:
  1. Choose method **Advanced**.
  2. Replace `"Principal": {"AWS":"<account_id>"}` with `"Principal": "*"` (leave rest of JSON as come)
5. *(Not mandatory)* **Tags** section:
  1. Create one tag with **Key** “usedBy“ and **Value** “devo-collector“
6. Click on **Create queue** button. |
| `S3 bucket` creation/configuration | 1. Go to **S3** and click on **Create bucket** button.
2. Set the preferred value in **Bucket name** field.
3. Choose any **Region** value.
4. Click the **Next** button.
5. *(Not mandatory)* Create one tag with **Key** *usedBy* and **Value** *devo-collector.*
6. Leave rest of fields with default values, click the **Next** button.
7. Leave all values with default ones, click the **Next** button.
8. Click the **Create bucket** button.
9. Mark the checkbox next to the previously created S3 bucket.
10. In the popup box, click the **Copy Bucket ARN** button and save the content for being used in the next steps.
11. In S3 bucket list, click the previously created <u>bucket name</u> link.
12. Click the **Properties** tab.
13. Click the **Events** box.
14. Click the **+ Add notification** link.
15. Set the preferred value in the **Name** field.
16. Mark the **All object create events** checkbox.
17. In the **Send to** field, select the **SQS Queue** as value.
18. Select the previously created SQS queue in the **SQS** field. |
| Enable `Logging` to Your Own S3 Bucket | 1. Refer to vendor’s configuration steps: [Enable Logging to Your Own S3 Bucket](https://docs.umbrella.com/deployment-umbrella/docs/setting-up-an-amazon-s3-bucket). |

## 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** |
| --- | --- |
| `access_key` | This is the account identifier for AWS. More info can be found in the section **Using a user account and local policies**. |
| `access_secret` | This is the secret (kind of a password) for AWS. More info can be found in the section **Using a user account and local policies**. |
| `base_assume_role` | This allows assuming a role with limited privileges to access AWS services. More info can be found in the sections **Assuming a role (self-account) **and/or** Assuming a role (cross-account)**. |
| `target_assume_role` | This allows assuming a role on another AWS account with limited privileges to access AWS services. More info can be found in the section **Assuming a role (cross-account)**. |
| `assume_role_external_id` | This is an optional field that provides additional security to the assuming role operation on cross-accounts. More info can be found in the section **Assuming a role (cross-account)**. |

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

## Accepted authentication methods

Depending on how did you obtain your credentials, you will have to either fill in or delete the following properties on the JSON `credentials` configuration block.

| **Authentication method** | **access_key** | **access_secret** | **base_assume_role** | **target_assume_role** | **assume_role_external_id** |
| --- | --- | --- | --- | --- | --- |
| Access Key / Access Secret | [REQUIRED] | [REQUIRED] |  |  |  |
| Assume role (self-account) | [REQUIRED] | [REQUIRED] | [REQUIRED] |  |  |
| Assume role (cross-account) |  |  | [REQUIRED] | [REQUIRED] | [OPTIONAL] |

## 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.
> 
> To enable the collector for a customer:
> 
> 1. In the **Collector Server** **GUI**, access the **domain** in which you want this instance to be created
> 2. Click **Add Collector** and find the one you wish to add.
> 3. In the **Version** field, select the latest value.
> 4. In the **Collector Name** field, set the value you prefer (this name must be unique inside the same Collector Server domain).
> 5. 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`.
> 6. In the **Parameters** section, establish the **Collector Parameters** as follows below:
> 
> ### Editing the JSON configuration
> 
> ```
> {
>   "global_overrides": {
>     "debug": false
>   },
>   "inputs": {
>     "aws": {
>       "id": "<short_unique_id>",
>       "enabled": true,
>       "credentials": {
>         "access_key": "<access_key_value>",
>         "access_secret": "<access_secret_value>",
>         "base_assume_role": "<base_assume_role_value>",
>         "target_assume_role": "<target_assume_role_value>",
>         "assume_role_external_id": "<assume_role_external_id_value>"
>       },
>       "services": {
>         "service-events-all": {
>           "request_period_in_seconds": <request_period_in_seconds_value>,
>           "cloudwatch_sqs_queue_name": "<sqs_queue_name_value>",
>           "auto_event_type": <auto_event_type_value>,
>           "regions": <list_of_regions>
>         },
>         "sqs-cloudwatch-consumer": {
>           "request_period_in_seconds": <request_period_in_seconds_value>,
>           "cloudwatch_sqs_queue_name": "<sqs_queue_name_value>",
>           "auto_event_type": <auto_event_type_value>,
>           "regions": <list_of_regions>
>         },
>         "audit-events-all": {
>           "types": <list_of_types>,
>           "request_period_in_seconds": <request_period_in_seconds_value>,
>           "start_time": "<start_time_value>",
>           "auto_event_type": <auto_event_type_value>,
>           "drop_event_names": <list_of_drop_event_names>,
>           "audit_sqs_queue_name": "<sqs_queue_name_value>",
>           "s3_file_type_filter": "<s3_file_type_filter_value>",
>           "use_region_and_account_id_from_event": "<use_region_and_account_id_from_event_value>",
>           "regions": <list_of_regions>
>         },
>         "metrics-all":{
>           "regions": <list_of_regions>
>         },
>         "non-cloudwatch-logs": {
>           "types": <list_of_types>,
>           "regions": <list_of_regions>,
>           "start_time": "<start_time_value>",
>           "vpcflowlogs_sqs_queue_name": "<sqs_queue_name_value>",
>           "cloudfrontlogs_sqs_queue_name": "<sqs_queue_name_value>"
>         },
>         "cisco-umbrella": {
>           "start_time": "<start_time_value>",
>           "ciscoumbrella_sqs_queue_name": "<sqs_queue_name>",
>           "regions": <list_of_regions>
>         },
>         "aws-guardduty": {
>           "start_time": "<start_time_value>",
>           "regions": [
>             "ap-southeast-1"
>           ]
>         },
>         "custom_service": {
>           "types": "<list_of_types>",
>           "log_group": "<log_group_value>",
>           "start_time": "<start_time_value>",
>           "regions": <list_of_regions>
>         }
>       }
>     }
>   }
> }
> ```
> 
> > ℹ️ 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.
> 
> Please replace the placeholders with real world values following the description table below:
> 
> |  |  |  |  |  |
> | --- | --- | --- | --- | --- |
> | **Parameter** | **Data type** | **Type** | **Value range** | **Details** |
> | `short_unique_id` | `int` | `Mandatory` | Minimum length: 1  
> Maximum length: 5 | Use this param to give an 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. |
> | `access_key_value` | `str` | See **Accepted authentication methods** section above. | Minimum length: 1 | The `access key ID` value obtained from AWS when a user is created to access programmatically. It is used when authenticating with a user account and also to assume a self-account role. |
> | `access_secret_value` | `str` | See **Accepted authentication methods** section above. | Minimum length: 1 | The `secret access key` value obtained from AWS when a user is created to access programatically. It is used when authenticating with a user account and also to assume a self-account role. |
> | `base_assume_role_value` | `str` | See **Accepted authentication methods** section above. | Minimum length: 1 | The ARN of the role to be assumed in the base account. It can be used for self- or cross-account authentication methods. |
> | `target_assume_role_value` | `str` | See **Accepted authentication methods** section above. | Minimum length: 1 | The ARN of the role to be assumed in the customer’s account. It is used for cross-account authentication method. |
> | `assume_role_external_id_value` | `str` | See **Accepted authentication methods** section above. | Minimum length: 1 | This is an optional string implemented by the customer to add an extra security layer. It can only be used for cross-account authentication method. |
> | `request_period_in_seconds_value` | `int` | `Optional` | Minimum length: 1 | Period in seconds used between each data pulling, this value will overwrite the default value (300 seconds)<br>> 📝 This parameter should be removed if it is not used. |
> | `auto_event_type_value` | `bool` | `Optional` | `true/false` | Used to enable the auto categorization of message tagging. |
> | `start_time_value` | `datetime` | `Mandatory` for GuardDuty, `Optional` for the rest of services. | `1970-01-01T00:00:00.000Z` | Date time from which to start collecting data. It must match ISO-8601 format. <u>Note that this is mandatory for GuardDuty and optional for the rest of services</u>. |
> | `list_of_types` | `list (of strings)` | `Optional` | ```
> "types" : [
>   "type1",
>   "type2",
>   "type3"
> ]
> ``` | Enable/Disable modules only when several modules per service are defined. For example, to get audit events from the API, this field should be set to `audits_api`. |
> | `list_of_regions` | `list (of strings)` | `Mandatory`, if defined in the collector’s definition. | ```
> "regions": [
>   "region1",
>   "region2",
>   "region3"
> ]
> ``` | Property name (`regions`) should be aligned with the one defined in the **submodules_property** property from the “Collector definitions” |
> | `list_of_drop_event_names` | `list (of strings)` | `Optional` | ```
> "drop_event_names" : [
>   "drop1",
>   "drop2",
>   "drop3"
> ]
> ``` | If the value in `eventName` field matches any of the values in this field, the event will be discarded.<br>i.e. if this parameter is populated with the next values `["Decrypt", "AssumeRole"]`, and the value of `eventName` field is `Decrypt` or `AssumeRole`, the event will be discarded. |
> | `sqs_queue_name_value` | `str` | `Mandatory` | Minimum length: 1 | Name of the SQS queue to read from. |
> | `s3_file_type_filter_value` | `str` | `Optional` | Minimum length: 1 | RegEx to retrieve proper file type from S3, in case there are more than one file types in the same SQS queue from which the service is pulling data.<br>This parameter can be used for those services getting data from a S3+SQS pipeline. |
> | `use_region_and_account_id_from_event_value` | `bool` | `Optional` | `true/false` | If `true` the `region` and `account_id` are taken from the event; else if `false`, they are taken from the account used to do the data pulling.<br>Default: `true`<br>It can be used only in those services using a S3+SQS pipeline. |
> | `log_group_value` | `str` | `Mandatory` | Minimum length: 1 | The log group name must be set here as-is, including the different levels separated by slashes.  
> It can be set to'/' (forward slash) as well to get all the log group names. |
> 
> ![AWS_10.png](media://f3890d91-8679-4744-9300-91696983f748)
> 
> > 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](media://07c30ab2-9236-4f58-bec3-7993e6f83a1a)
> 
> > ⚠️ Replace `<product_name>` with the proper value.
> 
> ### Editing the config.yaml file
> 
> ```
> globals:
>   debug: false
>   id: <collector_id>
>   name: <collector_name>
>   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:
>   aws:
>     id: <short_unique_id>
>     enabled: true
>     credentials:
>       access_key: <access_key_value>
>       access_secret: <access_secret_value>
>       base_assume_role: <base_assume_role_value>
>       target_assume_role: <target_assume_role_value>
>       assume_role_external_id: <assume_role_external_id_value>
>     services:
>       service-events-all:
>         request_period_in_seconds: <request_period_in_seconds_value>
>         cloudwatch_sqs_queue_name: <sqs_queue_name_value>
>         auto_event_type: <auto_event_type_value>
>         regions: <list_of_regions>
>       sqs-cloudwatch-consumer:
>         request_period_in_seconds: <request_period_in_seconds_value>
>         cloudwatch_sqs_queue_name: <sqs_queue_name_value>
>         auto_event_type: <auto_event_type_value>
>         regions: <list_of_regions>
>       audit-events-all:
>         types: <list_of_types>
>         request_period_in_seconds: <request_period_in_seconds_value>
>         start_time: <start_time_value>
>         auto_event_type: <auto_event_type_value>
>         drop_event_names: <list_of_drop_event_names>
>         audit_sqs_queue_name: <sqs_queue_name_value>
>         s3_file_type_filter: <s3_file_type_filter_value>
>         use_region_and_account_id_from_event: <use_region_and_account_id_from_event_value>
>         regions: <list_of_regions>
>       metrics-all:
>         regions: <list_of_regions>
>       non-cloudwatch-logs:
>         types: <list_of_types>
>         regions: <list_of_regions>
>         start_time: <start_time_value>
>         vpcflowlogs_sqs_queue_name: <sqs_queue_name_value>
>         cloudfrontlogs_sqs_queue_name: <sqs_queue_name_value>
>       cisco-umbrella:
>         ciscoumbrella_sqs_queue_name: <sqs_queue_name_value>
>         regions: <list_of_regions>
>       custom_service:
>         types: <list_of_types>
>         log_groups: <log_group_value>
>         start_time: <start_time_value>
>         regions: <list_of_regions>
>       aws-guardduty:
>         request_period_in_seconds: <request_period_in_seconds_value>
>         start_time: <start_time_value>
>         regions: <list_of_regions>
> ```
> 
> > ℹ️ 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** | **Details** |
> | `collector_id` | `int` | `Mandatory` | Minimum length: 1  
> Maximum length: 5 | Use this param to give an unique id to this collector. |
> | `collector_name` | `str` | `Mandatory` | Minimum length: 1  
> Maximum length: 10 | Use this param to give a valid name to this collector. |
> | `devo_address` | `str` | `Mandatory` | `collector-us.devo.io`  
> `collector-eu.devo.io` | Use this param to identify the Devo Cloud where the events will be sent. |
> | `chain_filename` | `str` | `Mandatory` | Minimum length: 4  
> Maximum length: 20 | Use this param to identify the chain.cert  file downloaded from your Devo domain. Usually this file's name is: `chain.crt` |
> | `cert_filename` | `str` | `Mandatory` | Minimum length: 4  
> Maximum length: 20 | Use this param to identify the `file.cert` downloaded from your Devo domain. |
> | `key_filename` | `str` | `Mandatory` | Minimum length: 4  
> Maximum length: 20 | Use this param to identify the `file.key` downloaded from your Devo domain. |
> | `short_unique_id` | `int` | `Mandatory` | Minimum length: 1  
> Maximum length: 5 | Use this param to give an 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. |
> | `access_key_value` | `str` | See **Accepted authentication methods** section above. | Minimum length: 1 | The `access key ID` value obtained from AWS when a user is created to access programmatically. It is used when authenticating with a user account and also to assume a self-account role. |
> | `access_secret_value` | `str` | See **Accepted authentication methods** section above. | Minimum length: 1 | The `secret access key` value obtained from AWS when a user is created to access programatically. It is used when authenticating with a user account and also to assume a self-account role. |
> | `base_assume_role_value` | `str` | See **Accepted authentication methods** section above. | Minimum length: 1 | The ARN of the role to be assumed in the base account. It can be used for self- or cross-account authentication methods. |
> | `target_assume_role_value` | `str` | See **Accepted authentication methods** section above. | Minimum length: 1 | The ARN of the role to be assumed in the customer’s account. It is used for cross-account authentication method. |
> | `assume_role_external_id_value` | `str` | See **Accepted authentication methods** section above. | Minimum length: 1 | This is an optional string implemented by the customer to add an extra security layer. It can only be used for cross-account authentication method. |
> | `request_period_in_seconds_value` | `int` | `Optional` | Minimum length: 1 | Period in seconds used between each data pulling, this value will overwrite the default value (300 seconds)<br>> ℹ️ This parameter should be removed if it is not used. |
> | `auto_event_type_value` | `bool` | `Optional` | `true/false` | Used to enable the auto categorization of message tagging. |
> | `start_time_value` | `datetime` | `Mandatory` for GuardDuty, `Optional` for the rest of services. | `1970-01-01T00:00:00.000Z` | Date time from which to start collecting data. It must match ISO-8601 format. <u>Note that this is mandatory for GuardDuty and optional for the rest of services</u>. |
> | `list_of_types` | `list (of strings)` | `Optional` | ```
> types:
>   - type1
>   - type2
>   - type3
> ``` | Enable/Disable modules only when several modules per service are defined. For example, to get audit events from the API, this field should be set to `audits_api`. |
> | `list_of_regions` | `list (of strings)` | `Mandatory`, if defined in the collector’s definition. | ```
> regions:
>   - region1
>   - region2
>   - region3
> ``` | Property name (`regions`) should be aligned with the one defined in the **submodules_property** property from the “Collector definitions” |
> | `list_of_drop_event_names` | `list (of strings)` | `Optional` | ```
> drop_event_names:
>   - drop1
>   - drop2
>   - drop3
> ``` | If the value in `eventName` field matches any of the values in this field, the event will be discarded.<br>i.e. if this parameter is populated with the next values `["Decrypt", "AssumeRole"]`, and the value of `eventName` field is `Decrypt` or `AssumeRole`, the event will be discarded. |
> | `sqs_queue_name_value` | `str` | `Mandatory` | Minimum length: 1 | Name of the SQS queue to read from. |
> | `s3_file_type_filter_value` | `str` | `Optional` | Minimum length: 1 | RegEx to retrieve proper file type from S3, in case there are more than one file types in the same SQS queue from which the service is pulling data.<br>This parameter can be used for those services getting data from a S3+SQS pipeline. |
> | `use_region_and_account_id_from_event_value` | `bool` | `Optional` | `true/false` | If `true` the `region` and `account_id` are taken from the event; else if `false`, they are taken from the account used to do the data pulling.<br>Default: `true`<br>It can be used only in those services using a S3+SQS pipeline. |
> | `log_group_value` | `str` | `Mandatory` | Minimum length: 1 | The log group name must be set here as-is, including the different levels separated by slashes.  
> It can be set to'/' (forward slash) as well to get all the log group names. |
> 
> ### 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-aws-if-docker-image-1.13.1](https://drive.google.com/file/d/1AXjubweMNNx7jL7NkmvEQs8iO8I6B-vQ/view?usp=drive_link) | `fff1f769207ea22fabee4718f917b60d56c42a7ad2a5ed834196b68b1db35652` |
> 
> 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.

### Service events (all services)

This service could be considered a general AWS event puller. It reads events from all the AWS services, which are managed by CloudWatch.

<details>
<summary>Devo categorization and destination</summary>

- If `auto_event_type` parameter is not set or is set to false, the events are going to be ingested into the table `cloud.aws.cloudwatch.events`
- If `auto_event_type` parameter is set to true, the events are going to be ingested into the table `cloud.aws.cloudwatch.{event_type}`
</details>

<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 and managing the token expiration when needed. |
| 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:

```
INFO InputProcess::AwsCloudwatchEventsPullerSetup(aws,aws#abc123,service-events-all#predefined,us-east-2) -> Session cannot expire. Using user/profile authentication.
INFO InputProcess::AwsCloudwatchEventsPullerSetup(aws,aws#abc123,service-events-all#predefined,us-east-2) -> Creating user session
INFO InputProcess::AwsCloudwatchEventsPullerSetup(aws,aws#abc123,service-events-all#predefined,us-east-2) -> New AWS session started.
INFO InputProcess::AwsCloudwatchEventsPullerSetup(aws,aws#abc123,service-events-all#predefined,us-east-2) -> Setup for module <AwsCloudwatchEventsPuller> has been successfully executed
```

#### Puller output

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.

```
INFO InputProcess::AwsCloudwatchEventsPuller(aws,abc123,service-events-all,predefined,us-east-2) -> Starting data collection every 60 seconds
INFO InputProcess::AwsCloudwatchEventsPuller(aws,abc123,service-events-all,predefined,us-east-2) -> Starting a new pulling from "dc-aws-cloudwatch-test-1.fifo" queue at "2022-09-23T07:44:54.589769+00:00"
INFO InputProcess::AwsCloudwatchEventsPuller(aws,abc123,service-events-all,predefined,us-east-2) -> Received 198 response(s), received 1973 message(s), generated 1973 message(s), detected_event_types: ["ssm", "s3", "sts", "backup", "kms", "tag", "config", "logs", "cloudtrail"], avg_time_per_source_message: 335.170 ms
INFO InputProcess::AwsCloudwatchEventsPuller(aws,abc123,service-events-all,predefined,us-east-2) -> Starting a new pulling from "dc-aws-cloudwatch-test-1.fifo" queue at "2022-09-23T07:55:55.546142+00:00"
INFO InputProcess::AwsCloudwatchEventsPuller(aws,abc123,service-events-all,predefined,us-east-2) -> Received 1 response(s), received 0 message(s), generated 0 message(s), detected_event_types: [], avg_time_per_source_message: 437.862 ms
INFO InputProcess::AwsCloudwatchEventsPuller(aws,abc123,service-events-all,predefined,us-east-2) -> Data collection completed. Elapsed time: 0.438 seconds. Waiting for 59.562 second(s) until the next one
```

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

```
INFO ThreatQuotientDataPuller(threatquotient_collector,threatquotient_data_puller#111,events#predefined) -> Statistics for this pull cycle (@devo_pulling_id=1655983326.290848): Number of requests performed: 2; Number of events received: 52; Number of duplicated events filtered out: 0; Number of events generated and sent: 52 (from 52 unflattened events); Average of events per second: 92.99414315733.
```

> ℹ️ 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 does not use any kind of persistent storage.
</details>

### Service events (Security Hub)

This service is used to read specifically Security Hub events, which need to be processed in a different way.

<details>
<summary>Devo categorization and destination</summary>

Using this service, all the Security Hub events are going to be ingested into the table `cloud.aws.securityhub.findings`
</details>

<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 and managing the token expiration when needed. |
| 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:

```
INFO InputProcess::AwsCloudwatchEventsPullerSetup(aws,aws#abc123,service-events-all#predefined,us-east-2) -> Session cannot expire. Using user/profile authentication.
INFO InputProcess::AwsCloudwatchEventsPullerSetup(aws,aws#abc123,service-events-all#predefined,us-east-2) -> Creating user session
INFO InputProcess::AwsCloudwatchEventsPullerSetup(aws,aws#abc123,service-events-all#predefined,us-east-2) -> New AWS session started.
INFO InputProcess::AwsCloudwatchEventsPullerSetup(aws,aws#abc123,service-events-all#predefined,us-east-2) -> Setup for module <AwsCloudwatchEventsPuller> has been successfully executed
```

#### Puller output

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

```
INFO InputProcess::AwsCloudwatchEventsPuller(aws,abc123,sqs-cloudwatch-consumer,predefined,us-east-2) -> Starting data collection every 60 seconds
INFO InputProcess::AwsCloudwatchEventsPuller(aws,abc123,sqs-cloudwatch-consumer,predefined,us-east-2) -> Starting a new pulling from "cloudwatch-test.fifo" queue at "2022-09-23T08:11:50.440225+00:00"
INFO InputProcess::AwsCloudwatchEventsPuller(aws,abc123,sqs-cloudwatch-consumer,predefined,us-east-2) -> Received 1 response(s), received 0 message(s), generated 0 message(s), detected_event_types: [], avg_time_per_source_message: 519.301 ms
INFO InputProcess::AwsCloudwatchEventsPuller(aws,abc123,sqs-cloudwatch-consumer,predefined,us-east-2) -> Data collection completed. Elapsed time: 0.520 seconds. Waiting for 59.480 second(s) until the next one
```

> ℹ️ The `@devo_pulling_id` value is injected into each event to allow grouping all events ingested by the same pull action. You can use it to get the exact events downloaded on that `Pull` action in Loxcope.
</details>

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

This collector does not use any kind of persistent storage.
</details>

### Audit events (via API)

This service reads **Cloudtrail** audit events via API.

There are two ways to read Cloudtrail events: via API or via S3+SQS.

- API: It is slower, but can read past events.
- S3+SQS: It is much faster, but can only read events since the creation of the queue.

This service makes use of the AWS API to get the data.

<details>
<summary>Devo categorization and destination</summary>

- If `auto_event_type` parameter is not set or is set to `false`, the events are going to be ingested into the table `cloud.aws.cloudtrail.events`.
- If `auto_event_type` parameter is set to `true`, the events are going to be ingested into the table `cloud.aws.cloudtrail.{event_type}`.
</details>

<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 and managing the token expiration when needed. |
| 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:

```
INFO InputProcess::AwsCloudtrailApiPullerSetup(aws,aws#abc123,audit-events-all#predefined,us-east-2) -> Session cannot expire. Using user/profile authentication.
INFO InputProcess::AwsCloudtrailApiPullerSetup(aws,aws#abc123,audit-events-all#predefined,us-east-2) -> Creating user session
INFO InputProcess::AwsCloudtrailApiPullerSetup(aws,aws#abc123,audit-events-all#predefined,us-east-2) -> New AWS session started.
INFO InputProcess::AwsCloudtrailApiPullerSetup(aws,aws#abc123,audit-events-all#predefined,us-east-2) -> Setup for module <AwsCloudtrailApiPuller> has been successfully executed
```

#### Puller output

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.

```
INFO InputProcess::AwsCloudtrailApiPuller(aws,abc123,audit-events-all,predefined,us-east-2) -> Starting data collection every 60 seconds
INFO InputProcess::AwsCloudtrailApiPuller(aws,abc123,audit-events-all,predefined,us-east-2) -> Starting a new pulling from "['all_sources']" source at "2022-09-23T08:56:22.366820+00:00"
INFO InputProcess::AwsCloudtrailApiPuller(aws,abc123,audit-events-all,predefined,us-east-2) -> Using 15 minutes as "gap until now", start_date: "2022-09-12T12:34:56.123456+00:00", end_date: "2022-09-23T08:41:22.366820+00:00", time_slot_in_hours: "1"
INFO InputProcess::AwsCloudtrailApiPuller(aws,abc123,audit-events-all,predefined,us-east-2) -> Total number of time slots to be processed: 261
...
INFO InputProcess::AwsCloudtrailApiPuller(aws,abc123,audit-events-all,predefined,us-east-2) -> Number of processed time slots so far: 100
...
INFO InputProcess::AwsCloudtrailApiPuller(aws,abc123,audit-events-all,predefined,us-east-2) -> Number of processed time slots so far: 200
...
INFO InputProcess::AwsCloudtrailApiPuller(aws,abc123,audit-events-all,predefined,us-east-2) -> Received 1315 response(s), messages (total/dropped/other_region/duplicated/generated): 124/6149/0/0/113, tag template used: "cloud.aws.cloudtrail.{event_type}.123456789012.us-east-8.1.prod-1", avg_time_per_source_message: 708.624 ms
INFO InputProcess::AwsCloudtrailApiPuller(aws,abc123,audit-events-all,predefined,us-east-2) -> Elapsed time: 931.842 seconds. Last retrieval took too much time, no wait will be applied in this loop
INFO InputProcess::AwsCloudtrailApiPuller(aws,abc123,audit-events-all,predefined,us-east-2) -> Data collection completed. Elapsed time: 2.717 seconds. Waiting for 57.283 second(s) until the next one
```

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

```
INFO InputProcess::AwsCloudtrailApiPuller(aws,abc123,audit-events-all,predefined,us-east-2) -> Received 4 response(s), messages (total/dropped/other_region/duplicated/generated): 186/8/0/1/177, tag template used: "cloud.aws.cloudtrail.{event_type}.123456789012.us-west-8.1.prod-1", avg_time_per_source_message: 678.952 ms
```

> ℹ️ 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>

### Audit events (via S3 + SQS)

This service reads Cloudtrail audit events via the S3+SQS pipeline.

There are two ways to read Cloudtrail events: via API or via S3+SQS.

- API: It is slower, but can read past events.
- S3+SQS: It is much faster, but can only read events since the creation of the queue.

<details>
<summary>Devo categorization and destination</summary>

- If `auto_event_type` parameter is not set or is set to `false`, the events are going to be ingested into the table `cloud.aws.cloudtrail.events`.
- If `auto_event_type` parameter is set to `true`, the events are going to be ingested into the table `cloud.aws.cloudtrail.{event_type}`.
</details>

<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 and managing the token expiration when needed. |
| 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:

```
INFO InputProcess::AwsSqsS3GenericPullerSetup(aws,aws#abc123,audit-events-all#predefined,us-east-2) -> Session cannot expire. Using user/profile authentication.
INFO InputProcess::AwsSqsS3GenericPullerSetup(aws,aws#abc123,audit-events-all#predefined,us-east-2) -> Creating user session
INFO InputProcess::AwsSqsS3GenericPullerSetup(aws,aws#abc123,audit-events-all#predefined,us-east-2) -> New AWS session started.
INFO InputProcess::AwsSqsS3GenericPullerSetup(aws,aws#abc123,audit-events-all#predefined,us-east-2) -> Setup for module <AwsSqsS3CloudTrailPuller> has been successfully executed
```

#### Puller output

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.

```
INFO InputProcess::AwsSqsS3CloudTrailPuller(aws,abc123,audit-events-all,predefined,us-east-2) -> Starting data collection every 60 seconds
INFO OutputProcess::OutputStandardConsumer(standard_senders_consumer_0) -> Consumed messages: 1797, total_bytes: 3830368 (60.43562 seconds)
INFO OutputProcess::DevoSender(standard_senders,devo_sender_0) -> Consumed messages: 1797 messages (60.436958 seconds) => 29 msg/sec
INFO OutputProcess::OutputStandardConsumer(standard_senders_consumer_0) -> Consumed messages: 1652, total_bytes: 3555837 (60.311803 seconds)
INFO OutputProcess::DevoSender(standard_senders,devo_sender_0) -> Consumed messages: 1652 messages (60.313064 seconds) => 27 msg/sec
INFO OutputProcess::OutputStandardConsumer(standard_senders_consumer_0) -> Consumed messages: 1949, total_bytes: 4277470 (60.187779 seconds)
INFO OutputProcess::DevoSender(standard_senders,devo_sender_0) -> Consumed messages: 1949 messages (60.187248 seconds) => 32 msg/sec
...
```

After a successful collector’s execution (this is, no error logs were found), you should be able to see the following log message:

> ℹ️ The `@devo_pulling_id` value is injected into each event to allow grouping all events ingested by the same pull action. You can use it to get the exact events downloaded on that `Pull` action in Loxcope.
</details>

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

This collector does not use any kind of persistent storage.
</details>

### Metrics (All metrics)

This service could be considered a general AWS metric puller. It reads metrics from all the AWS services that generate them. Those metrics are also managed by Cloudwatch.

This service makes use of the AWS API to get the data.

<details>
<summary>Devo categorization and destination</summary>

All the events are going to be ingested into the table `cloud.aws.cloudwatch.metrics`.
</details>

<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 and managing the token expiration when needed. |
| 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:

```
INFO InputProcess::AwsCloudwatchMetricPullerSetup(aws,aws#123,ec2#predefined,us-east-2) -> Session cannot expire. Using user/profile authentication.
INFO InputProcess::AwsCloudwatchMetricPullerSetup(aws,aws#123,ec2#predefined,us-east-2) -> Creating user session
INFO InputProcess::AwsCloudwatchMetricPullerSetup(aws,aws#123,ec2#predefined,us-east-2) -> New AWS session started.
INFO InputProcess::AwsCloudwatchMetricPullerSetup(aws,aws#123,ec2#predefined,us-east-2) -> Setup for module <AwsCloudwatchMetricPuller> has been successfully executed
```

#### Puller output

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.

```
INFO InputProcess::AwsCloudwatchMetricPuller(aws,123,ec2,predefined,us-east-2) -> Starting data collection every 60 seconds
INFO InputProcess::AwsCloudwatchMetricPuller(aws,123,ec2,predefined,us-east-2) -> Starting a new pulling from "['AWS/EC2', 'AWS/EC2Spot']" namespaces at "2022-09-23T14:49:36.266007+00:00"
INFO InputProcess::AwsCloudwatchMetricPuller(aws,123,ec2,predefined,us-east-2) -> Time range: "2022-09-23T14:48:00Z" > "2022-09-23T14:49:00Z"
INFO InputProcess::AwsCloudwatchMetricPuller(aws,123,ec2,predefined,us-east-2) -> Received 3 response(s), generated 17 message(s), tag used: "cloud.aws.cloudwatch.metrics.936082584952.us-east-2.1", avg_time_per_source_message: 393.845 ms
INFO InputProcess::AwsCloudwatchMetricPuller(aws,123,ec2,predefined,us-east-2) -> Applied an offset to wait, retrieval_offset: -36.266007 seconds
INFO InputProcess::AwsCloudwatchMetricPuller(aws,123,ec2,predefined,us-east-2) -> Data collection completed. Elapsed time: 1.182 seconds. Waiting for 22.552 second(s) until the next one
```

After a successful collector’s execution (this is, no error logs were found), you should be able to see the following log message:

> ℹ️ The `@devo_pulling_id` value is injected into each event to allow grouping all events ingested by the same pull action. You can use it to get the exact events downloaded on that `Pull` action in the **Data Search** area of Devo.
</details>

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

This collector does not use any kind of persistent storage.
</details>

### AWS-GuardDuty (Via API)

This service reads GuardDuty events via API. This service is not scalable because of it use of GuardDuty APIs. We use this service for “low” data due to the API limitation, otherwise we should use `AWS_SQS_IF`

This service makes use of the AWS API to get the data only if data is low

The events are going to be ingested into the table `cloud.aws.guardduty.findings`

<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 and managing the token expiration when needed. |
| 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-052024-05-31T18:40:27.031    INFO InputProcess::AwsGuardDutyApiPullerSetup(aws,aws#121214,aws-guardduty#predefined,ap-southeast-1) -> Session cannot expire. Using user/profile authentication.
2024-05-31T18:40:28.486    INFO InputProcess::AwsGuardDutyApiPullerSetup(aws,aws#121214,aws-guardduty#predefined,ap-southeast-1) -> Creating user session
2024-05-31T18:40:28.487    INFO InputProcess::AwsGuardDutyApiPullerSetup(aws,aws#121214,aws-guardduty#predefined,ap-southeast-1) -> New AWS session started.
2024-05-31T18:40:29.779    INFO InputProcess::AwsGuardDutyApiPullerSetup(aws,aws#121214,aws-guardduty#predefined,ap-southeast-1) -> Setup for module <AwsGuardDutyApiPuller> has been successfully executed
```

#### Puller output

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-05-31T13:12:08.535895316Z 2024-05-31T13:12:08.535    INFO InputProcess::AwsGuardDutyApiPuller(aws,1023001,aws-guardduty,predefined,ap-southeast-1) -> Starting data collection every 60 seconds
2024-05-31T13:12:11.648725368Z 2024-05-31T13:12:11.648    INFO OutputProcess::DevoSender(standard_senders,devo_sender_0) -> Created a sender: {"name": "DevoSender(standard_senders,devo_sender_0)", "url": "collector-eu.devo.io:443", "chain_path": "/etc/devo/keys/ca.d/chain.crt", "cert_path": "/etc/devo/keys/devo.crt", "key_path": "/etc/devo/keys/devo.key", "transport_layer_type": "SSL", "last_usage_timestamp": null, "socket_status": null}, hostname: "collector-723d1da04d3a87c4-6d89bfcf9-6xzms", session_id: "139892643371760"
2024-05-31T13:12:22.238716958Z 2024-05-31T13:12:22.229    INFO InputProcess::AwsGuardDutyApiPuller(aws,1023001,aws-guardduty,predefined,ap-southeast-1) -> Total event received: 584, and sent: 584
2024-05-31T13:12:22.238732449Z 2024-05-31T13:12:22.230    INFO InputProcess::AwsGuardDutyApiPuller(aws,1023001,aws-guardduty,predefined,ap-southeast-1) -> Data collection completed. Elapsed time: 13.697 seconds. Waiting for 46.303 second(s) until the next on
```

After a successful collector’s execution (this is, no error logs were found), you should be able to see the following log message:

```
2024-05-31T13:12:22.238716958Z 2024-05-31T13:12:22.229    INFO InputProcess::AwsGuardDutyApiPuller(aws,1023001,aws-guardduty,predefined,ap-southeast-1) -> Total event received: 584, and sent: 584
2024-05-31T13:12:22.238732449Z 2024-05-31T13:12:22.230    INFO InputProcess::AwsGuardDutyApiPuller(aws,1023001,aws-guardduty,predefined,ap-southeast-1) -> Data collection completed. Elapsed time: 13.697 seconds. Waiting for 46.303 second(s) until the next on
```

> ℹ️ The `@devo_pulling_id` value is injected into each event to allow grouping all events ingested by the same pull action. You can use it to get the exact events downloaded on that `Pull` action in the **Data Search** area of Devo.
</details>

### Non Cloudwatch Logs

This service reads logs from some AWS services, but those logs are not managed by Cloudwatch. These logs are stored in an S3 bucket and read through an SQS queue, so it is using an S3+SQS pipeline.

The implemented services currently are:

- VPC Flow Logs
- Cloudfront Logs

<details>
<summary>Devo categorization and destination</summary>

For VPC Flow Logs:

- If `auto_event_type` parameter is not set or is set to `false`, the events are going to be ingested into the table `cloud.aws.vpc.unknown`
- If `auto_event_type` parameter is set to `true`, the events are going to be ingested into the table `cloud.aws.vpc.{event_type}`.

For Cloudfront Logs:

- If `auto_event_type` parameter is not set or is set to `false`, the events are going to be ingested into the table `cloud.aws.cloudfront.unknown`
- If `auto_event_type` parameter is set to `true`, the events are going to be ingested into the table `cloud.aws.cloudfront.{event_type}.`
</details>

<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 and managing the token expiration when needed. |
| 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:

```
INFO InputProcess::AwsSqsS3GenericPullerSetup(aws,aws#123,non-cloudwatch-logs#predefined,us-east-2) -> Session cannot expire. Using user/profile authentication.
INFO InputProcess::AwsSqsS3GenericPullerSetup(aws,aws#123,non-cloudwatch-logs#predefined,us-east-2) -> Creating user session
INFO InputProcess::AwsSqsS3GenericPullerSetup(aws,aws#123,non-cloudwatch-logs#predefined,us-east-2) -> New AWS session started.
```

#### Puller output

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.

```
INFO InputProcess::AwsSqsS3GenericPullerSetup(aws,aws#123,non-cloudwatch-logs#predefined,us-east-2) -> Setup for module <AwsSqsS3VpcFlowlogsPuller> has been successfully executed
INFO InputProcess::AwsSqsS3VpcFlowlogsPuller(aws,123,non-cloudwatch-logs,predefined,us-east-2) -> Starting data collection every 60 seconds
INFO InputProcess::AwsSqsS3VpcFlowlogsPuller(aws,123,non-cloudwatch-logs,predefined,us-east-2) -> Received 2 response(s), messages (fromSQS/generated): 0/0, discarded files: 0, avg_time_per_source_message: 169.711 ms
INFO InputProcess::AwsSqsS3VpcFlowlogsPuller(aws,123,non-cloudwatch-logs,predefined,us-east-2) -> Data collection completed. Elapsed time: 0.340 seconds. Waiting for 59.660 second(s) until the next one
```

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

```
INFO InputProcess::AwsSqsS3VpcFlowlogsPuller(aws,123,non-cloudwatch-logs,predefined,us-east-2) -> Received 2 response(s), messages (fromSQS/generated): 0/0, discarded files: 0, avg_time_per_source_message: 169.711 ms
```

> ℹ️ 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 does not use any kind of persistent storage.
</details>

### Custom Logs

This service reads logs from some AWS services and these logs are managed by **Cloudwatch**. Cloudwatch creates log groups to store the different log sources, so it is required to use a custom puller in order to read from different log groups at the same time. This service makes use of the AWS API to get the data.

<details>
<summary>Devo categorization and destination</summary>

All the events are going to be ingested into the table `cloud.aws.cloudwatch.logs`
</details>

<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 and managing the token expiration when needed. |
| 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:

```
INFO InputProcess::AwsCloudwatchLogsPullerSetup(aws,aws#123,cwl_1#custom,us-east-2) -> Session cannot expire. Using user/profile authentication.
INFO InputProcess::AwsCloudwatchLogsPullerSetup(aws,aws#123,cwl_1#custom,us-east-2) -> Creating user session
INFO InputProcess::AwsCloudwatchLogsPullerSetup(aws,aws#123,cwl_1#custom,us-east-2) -> New AWS session started.
INFO InputProcess::AwsCloudwatchLogsPullerSetup(aws,aws#123,cwl_1#custom,us-east-2) -> Setup for module <AwsCloudwatchLogsPuller> has been successfully executed
```

#### Puller output

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.

```
INFO InputProcess::AwsCloudwatchLogsPuller(aws,123,cwl_1,custom,us-east-2) -> Starting data collection every 60 seconds
INFO InputProcess::AwsCloudwatchLogsPuller(aws,123,cwl_1,custom,us-east-2) -> Starting a new pulling from "/aws/events/devo-cloudwatch-test-1" at "2022-09-23T15:08:18.132865+00:00"
INFO InputProcess::AwsCloudwatchLogsPuller(aws,123,cwl_1,custom,us-east-2) -> Optimized first retrieval approach for high number of log streams with medium size
```
</details>

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

This collector does not use any kind of persistent storage.
</details>

### Cisco Umbrella (via S3+SQS)

This service reads logs from a Cisco Umbrella managed bucket via the S3+SQS pipeline. Cisco provides a way to deposit logging data into a S3 bucket.

<details>
<summary>Devo categorization and destination</summary>

There are three types of events: dnslogs, iplogs and proxylogs. Cisco stores them in different paths depending on the event type. The collector will ingest them towards the following tables:

- dnslogs: `sig.cisco.umbrella.dns`
- iplogs: `sig.cisco.umbrella.ip`
- proxylogs: `sig.cisco.umbrella.proxy`
- In case Cisco starts sending other type of events to s3, they will go to: `sig.cisco.umbrella.unknown`
</details>

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

This collector does not use any kind of persistent storage.
</details>

## Collector operations

This section is intended to explain how to proceed with the 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:

```
2022-09-23T17:08:14.833    INFO MainProcess::MainThread -> (CollectorMultiprocessingQueue) standard_queue_multiprocessing -> max_size_in_messages: 10000, max_size_in_mb: 1024, max_wrap_size_in_items: 100
2022-09-23T17:08:15.119    INFO MainProcess::MainThread -> [OUTPUT] OutputMultiprocessingController::__init__ Configuration -> {...}
2022-09-23T17:08:15.120    INFO MainProcess::MainThread -> OutputProcess - Starting thread (executing_period=300s)
2022-09-23T17:08:15.122    INFO MainProcess::MainThread -> InputProcess - Starting thread (executing_period=300s)
2022-09-23T17:08:15.122    INFO OutputProcess::MainThread -> Process started
2022-09-23T17:08:15.124    INFO InputProcess::MainThread -> Process Started
2022-09-23T17:08:15.128    INFO InputProcess::MainThread -> InputThread(aws,123) - Starting thread (execution_period=600s)
2022-09-23T17:08:15.128    INFO InputProcess::MainThread -> ServiceThread(aws,123,cwl_1,custom) - Starting thread (execution_period=600s)
2022-09-23T17:08:15.128    INFO InputProcess::MainThread -> AwsCloudwatchLogsPullerSetup(aws,aws#123,cwl_1#custom,us-east-2) -> Starting thread
2022-09-23T17:08:15.128    INFO InputProcess::MainThread -> AwsCloudwatchLogsPuller(aws,123,cwl_1,custom,us-east-2) - Starting thread
2022-09-23T17:08:15.128    INFO OutputProcess::MainThread -> [INTERNAL LOGIC] DevoSender::_validate_kwargs_for_method__init__ -> The <address> does not appear to be an IP address and cannot be verified: collector-eu.devo.io
2022-09-23T17:08:15.132    INFO OutputProcess::MainThread -> [INTERNAL LOGIC] DevoSender::_validate_kwargs_for_method__init__ -> The <address> does not appear to be an IP address and cannot be verified: collector-eu.devo.io
2022-09-23T17:08:15.135    INFO OutputProcess::MainThread -> [INTERNAL LOGIC] DevoSender::_validate_kwargs_for_method__init__ -> The <address> does not appear to be an IP address and cannot be verified: collector-eu.devo.io
2022-09-23T17:08:15.136    INFO OutputProcess::MainThread -> DevoSender(standard_senders,devo_sender_0) -> Starting thread
2022-09-23T17:08:15.136    INFO OutputProcess::MainThread -> DevoSenderManagerMonitor(standard_senders,devo_2) -> Starting thread (every 300 seconds)
2022-09-23T17:08:15.136    INFO OutputProcess::MainThread -> DevoSenderManager(standard_senders,manager,devo_2) -> Starting thread
2022-09-23T17:08:15.136    INFO OutputProcess::MainThread -> DevoSender(lookup_senders,devo_sender_0) -> Starting thread
2022-09-23T17:08:15.137    INFO OutputProcess::MainThread -> DevoSenderManagerMonitor(lookup_senders,devo_2) -> Starting thread (every 300 seconds)
2022-09-23T17:08:15.137    INFO OutputProcess::MainThread -> DevoSenderManager(lookup_senders,manager,devo_2) -> Starting thread
2022-09-23T17:08:15.137    INFO OutputProcess::MainThread -> DevoSender(internal_senders,devo_sender_0) -> Starting thread
2022-09-23T17:08:15.137    INFO OutputProcess::MainThread -> DevoSenderManagerMonitor(internal_senders,devo_2) -> Starting thread (every 300 seconds)
2022-09-23T17:08:15.137    INFO OutputProcess::MainThread -> DevoSenderManager(internal_senders,manager,devo_2) -> Starting thread
2022-09-23T17:08:15.144    INFO InputProcess::MainThread -> [GC] global: 36.4% -> 36.5%, process: RSS(36.91MiB -> 38.38MiB), VMS(345.21MiB -> 345.45MiB)
2022-09-23T17:08:15.151    INFO OutputProcess::MainThread -> [GC] global: 36.4% -> 36.5%, process: RSS(37.10MiB -> 39.08MiB), VMS(921.24MiB -> 921.24MiB)
```

### Events delivery and Devo ingestion

The event delivery module receives 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:

```
INFO OutputProcess::SyslogSenderManagerMonitor(standard_senders,sidecar_0) -> Number of available senders: 1, sender manager internal queue size: 0
INFO OutputProcess::SyslogSenderManagerMonitor(standard_senders,sidecar_0) -> enqueued_elapsed_times_in_seconds_stats: {}
INFO OutputProcess::SyslogSenderManagerMonitor(standard_senders,sidecar_0) -> Sender: SyslogSender(standard_senders,syslog_sender_0), status: {"internal_queue_size": 0, "is_connection_open": True}
INFO OutputProcess::SyslogSenderManagerMonitor(standard_senders,sidecar_0) -> Standard - Total number of messages sent: 44, messages sent since "2022-06-28 10:39:22.511671+00:00": 44 (elapsed 0.007 seconds)
INFO OutputProcess::SyslogSenderManagerMonitor(internal_senders,sidecar_0) -> Number of available senders: 1, sender manager internal queue size: 0
INFO OutputProcess::SyslogSenderManagerMonitor(internal_senders,sidecar_0) -> enqueued_elapsed_times_in_seconds_stats: {}
INFO OutputProcess::SyslogSenderManagerMonitor(internal_senders,sidecar_0) -> Sender: SyslogSender(internal_senders,syslog_sender_0), status: {"internal_queue_size": 0, "is_connection_open": True}
INFO OutputProcess::SyslogSenderManagerMonitor(internal_senders,sidecar_0) -> Internal - Total number of messages sent: 1, messages sent since "2022-06-28 10:39:22.516313+00:00": 1 (elapsed 0.019 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: 44, messages sent since "2022-06-28 10:39:22.511671+00:00": 21 (elapsed 0.007 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 `2022-06-28 10:39:22.511671+00:00`.
- 21 events where sent to Devo between the last UTC checkpoint and now.
- Those 21 events required `0.007 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`

```
INFO InputProcess::MainThread -> [GC] global: 20.4% -> 20.4%, process: RSS(34.50MiB -> 34.08MiB), VMS(410.52MiB -> 410.02MiB)
INFO OutputProcess::MainThread -> [GC] global: 20.4% -> 20.4%, process: RSS(28.41MiB -> 28.41MiB), VMS(705.28MiB -> 705.28MiB)
```

> ℹ️ 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>

<details>
<summary>Enable/disable the logging debug mode</summary>

Sometimes it is necessary to activate the debug mode of the collector's logging. This debug mode increases the verbosity of the log and allows you to print execution traces that are very helpful in resolving incidents or detecting bottlenecks in heavy download processes.

- To enable this option you just need to edit the configuration file and change the debug_status parameter from false to true and restart the collector.
- To disable this option, you just need to update the configuration file and change the debug_status parameter from true to false and restart the collector.

For more information, visit the configuration and parameterization section corresponding to the chosen deployment mode.
</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** |
| --- | --- | --- | --- | --- |
| `AwsModuleDefinitionError` | 1 | `"{module_properties_key_path}" mandatory property is missing or empty` | `module_properties` is not present in collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 2 | `"{module_properties_key_path}" property must be a dictionary` | `module_properties` is not a dictionary type data structure. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 3 | `"{module_properties_key_path}.tag_base" mandatory property is missing or empty` | `tag_base` is not present in collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 4 | `"{module_properties_key_path}.tag_base" property must be a string` | `tag_base` is not of type string. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 5 | `module_properties_key_path}.tag_base" property must have {event_type}, {account_id}, {region_id} and {format_version} placeholders` | `tag_base` does not literally contain all those placeholders, and they are required. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 6 | `"{module_properties_key_path}.tag_base" property is containing some unexpected placeholders, the allowed ones are: ["event_type", "account_id", "region_id", "format_version", "environment", "service_name"]` | `tag_base` has an unauthorized placeholder or is not correctly built. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 7 | `"{module_properties_key_path}.event_type_default" mandatory property is missing or empty` | `event_type_default` is not present in the collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 8 | `"{module_properties_key_path}.event_type_default" property must be a string` | `event_type_default` is not of type string. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 26 | `"{module_properties_key_path}.event_type_source_field_name" mandatory property is missing or empty` | `event_type_source_field_name` is not present in the collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 27 | `"{module_properties_key_path}.event_type_source_field_name" property must be a boolean` | `event_type_source_field_name` is not of type boolean. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 26 | `"{module_properties_key_path}.event_type_extracting_regex" mandatory property is missing or empty` | `event_type_extracting_regex` is not present in the collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 27 | `"{module_properties_key_path}.event_type_extracting_regex" property must be a boolean` | `event_type_extracting_regex` is not of type boolean. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 5 | `"{module_properties_key_path}.event_type_extracting_regex" property is not a valid regular expression` | `event_type_extracting_regex` is not a valid Regular Expression. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 7 | `"{module_properties_key_path}.enable_auto_event_type" mandatory property is missing or empty` | `enable_auto_event_type` is not present in the collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 8 | `"{module_properties_key_path}.enable_auto_event_type" property must be a string` | `enable_auto_event_type` is not of type string. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 9 | `"{module_properties_key_path}.enable_auto_event_type_config_key" mandatory property is missing or empty` | `enable_auto_event_type_config_key` is not present in the collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 10 | `"{module_properties_key_path}.enable_auto_event_type_config_key" property must be a string` | `enable_auto_event_type_config_key` is not of type string. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 31 | `"{module_properties_key_path}.event_type_processor_mapping" property should be a dictionary.` | `event_type_processor_mapping` is not of type dictionary. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 32 | `"{module_properties_key_path}.event_type_processor_mapping" exists but it is empty.` | `event_type_processor_mapping` cannot be empty, and it is. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 33 | `"{module_properties_key_path}.event_type_processor_mapping.{processor_name}.processor_class" mandatory property is missing or empty` | `processor_class` does not exist or is empty. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 34 | `"{module_properties_key_path}.event_type_processor_mapping.{processor_name}.processor_class" should be a string` | `processor_class` is not of type string. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 35 | `"{module_properties_key_path}.event_type_processor_mapping.{processor_name}.tagging" mandatory property is missing or empty` | `tagging` is not present in the collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 36 | `"{module_properties_key_path}.event_type_processor_mapping.{processor_name}.tagging" should be a string` | `tagging` is not of type string. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 10 | `"{module_properties_key_path}.sqs_queue_custom_name_key" mandatory property is missing or empty` | `sqs_queue_custom_name_key` is not present in the collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 11 | `"{module_properties_key_path}.sqs_queue_custom_name_key" property must be a string` | `sqs_queue_custom_name_key` is not of type string. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 12 | `"{module_properties_key_path}.sqs_queue_required_default_name" property must be a boolean` | `sqs_queue_required_default_name` is not of type boolean. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 13 | `"{module_properties_key_path}.sqs_queue_default_name" mandatory property is missing or empty` | `sqs_queue_default_name` is not present in the collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 14 | `"{module_properties_key_path}.sqs_queue_default_name" property must be a string` | `sqs_queue_default_name` is not of type string. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 15 | `"{module_properties_key_path}.sqs_queue_default_name" property must have {input_id} placeholder` | `sqs_queue_default_name` does not have the required `{input_id}` placeholder. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsInputConfigurationError` | 1 | `"{input_config_key_path}" mandatory property is missing or empty` | The `inputs` data structure is missing or empty in the configuration file. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `inputs`. |
| `AwsInputConfigurationError` | 2 | `"{input_config_key_path}" property must be a dictionary` | The `inputs` data structure is not of type dictionary. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `inputs`. |
| `AwsServiceConfigurationError` | 1 | `"{service_config_key_path}" mandatory property is missing or empty` | The `services` data structure is missing or empty in the configuration file. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `services`. |
| `AwsServiceConfigurationError` | 2 | `"{service_config_key_path}" property must be a dictionary` | The `services` data structure is not of type dictionary. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `services`. |
| `AwsServiceConfigurationError` | 3 | `"{service_config_key_path}.tag" property must be a string` | `tag` is not of type string. | Change the `tag` parameter to be a string. |
| `AwsServiceConfigurationError` | 4 | `"{service_config_key_path}.{sqs_queue_custom_name_key}" mandatory property is missing or empty` | The parameter indicated in the error message is not present in the configuration file. | Add the indicated parameter to the configuration file. |
| `AwsServiceConfigurationError` | 5 | `"{service_config_key_path}.{sqs_queue_custom_name_key}" property must be a string` | The parameter indicated in the error message is not of type string. | Make the indicated parameter be a string. |
| `AwsServiceConfigurationError` | 6 | `"{service_config_key_path}.{sqs_queue_custom_name_key}" property must be a string` | The parameter indicated in the error message is not of type string. | Make the indicated parameter be a string. |
| `AwsServiceConfigurationError` | 7 | `"{service_config_key_path}.{enable_auto_event_type_config_key}" property must be a string` | The parameter indicated in the error message is not of type string. | Make the indicated parameter be a string. |

### Common for all the services using the S3+SQS pipeline

| **Error type** | **Error ID** | **Error message** | **Cause** | **Solution** |
| --- | --- | --- | --- | --- |
| `AwsModuleDefinitionError` | 1 | `"{module_properties_key_path}" mandatory property is missing or empty` | `module_properties` is not present in collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 2 | `"{module_properties_key_path}" property must be a dictionary` | `module_properties` is not a dictionary type data structure. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 10 | `"{module_properties_path}.start_time_regex" mandatory property is missing or empty` | `start_time_regex` is not present at collector definition file. | This is an internal issue. Please, contact with Devo Support tea |
| `AwsModuleDefinitionError` | 11 | `"{module_properties_path}.start_time_regex" property must be a string` | `start_time_regex` is of a type other than string. | This is an internal issue. Please, contact with Devo Support tea |
| `AwsModuleDefinitionError` | 12 | `"{module_properties_path}.start_time_regex" property is not a valid regular expression` | `start_time_regex` is not a valid Regular Expression. | This is an internal issue. Please, contact with Devo Support tea |
| `AwsModuleDefinitionError` | 21 | `"{sqs_s3_processor_properties_key_path}" mandatory property is missing or empty` | The parameter indicated in the error message is not present in collector definition file. | This is an internal issue. Please, contact with Devo Support tea |
| `AwsModuleDefinitionError` | 22 | `"{sqs_s3_processor_properties_key_path}" property must be a dictionary` | The parameter indicated in the error message is not of type dictionary. | This is an internal issue. Please, contact with Devo Support tea |
| `AwsModuleDefinitionError` | 26 | `"{sqs_s3_processor_properties_key_path}.class_name" mandatory property is missing or empty` | `class_name` is empty or is not present in the collector definition file. | This is an internal issue. Please, contact with Devo Support tea |
| `AwsModuleDefinitionError` | 27 | `"{sqs_s3_processor_properties_key_path}.class_name" property must be a string` | `class_name` is not of type string. | This is an internal issue. Please, contact with Devo Support tea |
| `AwsModuleDefinitionError` | 10 | `"{module_properties_key_path}.sqs_queue_custom_name_key" mandatory property is missing or empty` | `sqs_queue_custom_name_key` is not present in the collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 11 | `"{module_properties_key_path}.sqs_queue_custom_name_key" property must be a string` | `sqs_queue_custom_name_key` is not of type string. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 12 | `"{module_properties_key_path}.sqs_queue_required_default_name" property must be a boolean` | `sqs_queue_required_default_name` is not of type boolean. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 13 | `"{module_properties_key_path}.sqs_queue_default_name" mandatory property is missing or empty` | `sqs_queue_default_name` is not present in the collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 14 | `"{module_properties_key_path}.sqs_queue_default_name" property must be a string` | `sqs_queue_default_name` is not of type string. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 15 | `"{module_properties_key_path}.sqs_queue_default_name" property must have {input_id} placeholder` | `sqs_queue_default_name` does not have the required `{input_id}` placeholder. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsInputConfigurationError` | 1 | `"{input_config_key_path}" mandatory property is missing or empty` | The `inputs` data structure is missing or empty in the configuration file. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `inputs`. |
| `AwsInputConfigurationError` | 2 | `"{input_config_key_path}" property must be a dictionary` | The `inputs` data structure is not of type dictionary. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `inputs`. |
| `AwsServiceConfigurationError` | 1 | `"{service_config_key_path}" mandatory property is missing or empty` | The `services` data structure is missing or empty in the configuration file. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `services`. |
| `AwsServiceConfigurationError` | 2 | `"{service_config_key_path}" property must be a dictionary` | The `services` data structure is not of type dictionary. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `services`. |
| `AwsServiceConfigurationError` | 3 | `"{service_config_key_path}.tag" property must be a string` | `tag` is not of type string. | Change the `tag` parameter to be a string. |
| `AwsServiceConfigurationError` | 4 | `"{service_config_key_path}.{sqs_queue_custom_name_key}" mandatory property is missing or empty` | The parameter indicated in the error message is not present in the configuration file. | Add the indicated parameter to the configuration file. |
| `AwsServiceConfigurationError` | 5 | `"{service_config_key_path}.{sqs_queue_custom_name_key}" property must be a string` | The parameter indicated in the error message is not of type string. | Make the indicated parameter be a string. |
| `AwsServiceConfigurationError` | 6 | `"{service_config_key_path}.{sqs_queue_custom_name_key}" property must be a string` | The parameter indicated in the error message is not of type string. | Make the indicated parameter be a string. |
| `AwsServiceConfigurationError` | 7 | `"{service_config_key_path}.{enable_auto_event_type_config_key}" property must be a string` | The parameter indicated in the error message is not of type string. | Make the indicated parameter be a string. |
| `AwsServiceConfigurationError` | 7 | `"{service_config_key_path}.start_time" property must be a string` | `start_time` is not of type string. | Change the `start_time` parameter to be a string. |
| `AwsServiceConfigurationError` | 8 | `The property "{service_config_key_path}.start_time" from configuration is having a wrong format, expected pattern: "{start_time_regex}"` | `start_time` parameter does not match the Regular Expression. | Change the `start_time` parameter to march the Regular Expression. |
| `AwsQueueException` | 0 | `Queue "{sqs_queue_name}" used by service "{service_name}" in "{submodule_config}" region is not available: reason: {reason}` | The queue indicated in the error message is not available. | Check the next things:<br>- Name of the queue.
- The queue exists in the indicated region.
- Read carefully the reason the error message is returning. |

### Audit (via API)

| **Error type** | **Error ID** | **Error message** | **Cause** | **Solution** |
| --- | --- | --- | --- | --- |
| `AwsModuleDefinitionError` | 1 | `"{module_properties_key_path}" mandatory property is missing or empty` | `module_properties` is not present in collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 2 | `"{module_properties_key_path}" property must be a dictionary` | `module_properties` is not a dictionary type data structure. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 3 | `"{module_properties_key_path}.tag_base" mandatory property is missing or empty` | `tag_base` is not present in collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 4 | `"{module_properties_key_path}.tag_base" property must be a string` | `tag_base` is not of type string. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 5 | `module_properties_key_path}.tag_base" property must have {event_type}, {account_id}, {region_id} and {format_version} placeholders` | `tag_base` does not literally contain all those placeholders, and they are required. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 6 | `"{module_properties_key_path}.tag_base" property is containing some unexpected placeholders, the allowed ones are: ["event_type", "account_id", "region_id", "format_version", "environment", "service_name"]` | `tag_base` has an unauthorized placeholder or is not correctly built. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 7 | `"{module_properties_key_path}.event_type_default" mandatory property is missing or empty` | `event_type_default` is not present in the collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 8 | `"{module_properties_key_path}.event_type_default" property must be a string` | `event_type_default` is not of type string. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 9 | `"{module_properties_key_path}.enable_auto_event_type" mandatory property is missing or empty` | `enable_auto_event_type` is not present in the collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 10 | `"{module_properties_key_path}.enable_auto_event_type" property must be a string` | `enable_auto_event_type` is not of type string. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 11 | `"{module_properties_key_path}.enable_auto_event_type_config_key" mandatory property is missing or empty` | `enable_auto_event_type_config_key` is empty or is not present in the collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 12 | `"{module_properties_key_path}.enable_auto_event_type_config_key" property must be a string` | `enable_auto_event_type_config_key` is not of type string. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 13 | `"{module_properties_key_path}.start_time_regex" mandatory property is missing or empty` | `start_time_regex` is empty or is not present in the collector definition file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 14 | `"{module_properties_key_path}.start_time_regex" property must be a string` | `start_time_regex` is not of type string. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 15 | `"{module_properties_key_path}.start_time_regex" property is not a valid regular expression` | `start_time_regex` is using a invalid Regular Expression. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 16 | `"{module_properties_key_path}.gap_until_now_in_minutes" mandatory property is missing or empty` | `gap_until_now_in_minutes` is empty or not present in the collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 17 | `"{module_properties_key_path}.gap_until_now_in_minutes" property must be a string` | `gap_until_now_in_minutes` is not of type integer. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 18 | `"{module_properties_key_path}.gap_until_now_in_minutes" property can not be a negative value` | `gap_until_now_in_minutes` is having a negative value, which is not allowed. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 19 | `"{module_properties_key_path}.time_slot_in_hours" mandatory property is missing or empty` | `time_slot_in_hours` is empty or is not present in the collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 20 | `"{module_properties_key_path}.time_slot_in_hours" property must be an integer` | `time_slot_in_hours` is not of type integer. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 21 | `"{module_properties_key_path}.time_slot_in_hours" property can not be 0 or a negative value` | `time_slot_in_hours` is zero or has a negative value, which is not allowed. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 22 | `"{module_properties_key_path}.sources" mandatory property is missing or empty` | `sources` is empty or is not present in the collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 23 | `"{module_properties_key_path}.sources" property exists but with wrong format, only "str" or "list" values are allowed` | `sources` is not of type string or list. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsInputConfigurationError` | 1 | `"{input_config_key_path}" mandatory property is missing or empty` | The `inputs` data structure is missing or empty in the configuration file. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `inputs`. |
| `AwsInputConfigurationError` | 2 | `"{input_config_key_path}" property must be a dictionary` | The `inputs` data structure is not of type dictionary. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `inputs`. |
| `AwsServiceConfigurationError` | 1 | `"{service_config_key_path}" mandatory property is missing or empty` | The `services` data structure is missing or empty in the configuration file. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `services`. |
| `AwsServiceConfigurationError` | 2 | `"{service_config_key_path}" property must be a dictionary` | The `services` data structure is not of type dictionary. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `services`. |
| `AwsServiceConfigurationError` | 3 | `"{service_config_key_path}.tag" property must be a string` | `tag` is not of type string. | Change the `tag` parameter to be a string. |
| `AwsServiceConfigurationError` | 4 | `"{service_config_key_path}.sources" property exists but with wrong format, only "str" or "list" values are allowed` | `sources` is not of type string or list. | Change the `sources` parameter to be a string or a list. |
| `AwsServiceConfigurationError` | 5 | `"{service_config_key_path}.gap_until_now_in_minutes" property must be an integer` | `gap_until_now_in_minutes` is not of type integer. | Change the `gap_until_now_in_minutes` parameter to be an integer. |
| `AwsServiceConfigurationError` | 6 | `"{service_config_key_path}.start_time" property must be a string` | `start_time` is not of type string. | Change the `start_time` parameter to be a string. |
| `AwsServiceConfigurationError` | 7 | `The property "{service_config_key_path}.start_time" from configuration is having a wrong format, expected pattern: "{start_time_regex}"` | `start_time` is using an invalid Regular Expression. | Change the `start_time` parameter to match the Regular Expression indicated in the error message. |
| `AwsServiceConfigurationError` | 8 | `"{service_config_key_path}.drop_event_names" property must be a list` | `drop_event_names` is not of type list. | Change the `drop_event_names` parameter to be a list. |
| `AwsServiceConfigurationError` | 9 | `"{service_config_key_path}.{enable_auto_event_type_config_key}" property must be a string` | The parameter indicated by the error message is not of type string. | Change the parameter indicated by the error message to be a string. |
| `AwsServiceConfigurationError` | 10 | `"{service_config_key_path}.time_slot_in_hours" property must be integer` | `time_slot_in_hours` is not of type integer. | Change the `time_slot_in_hours` parameter to be an integer. |

### Custom Logs


| **Error type** | **Error ID** | **Error message** | **Cause** | **Solution** |
| --- | --- | --- | --- | --- |
| `AwsInputConfigurationError` | 0 | `Mandatory property "requests_per_second" is missing (located at: aws.request_per_second)` | `requests_per_second` is not present at configuration file. | Add `requests_per_second` to the configuration file. |
| `AwsModuleDefinitionError` | 1 | `"{module_properties_key_path}" mandatory property is missing or empty` | `module_properties` is not present in collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 2 | `"{module_properties_key_path}" property must be a dictionary` | `module_properties` is not a dictionary type data structure. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 3 | `"{module_properties_key_path}.tag_base" mandatory property is missing or empty` | `tag_base` is not present in collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 4 | `"{module_properties_key_path}.tag_base" property must be a string` | `tag_base` is not of type string. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsServiceDefinitionException` | 5 | `module_properties_key_path}.tag_base" property must have {event_type}, {account_id}, {region_id} and {format_version} placeholders` | `tag_base` does not literally contain all those placeholders, and they are required. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 6 | `"{module_properties_key_path}.tag_base" property is containing some unexpected placeholders, the allowed ones are: ["event_type", "account_id", "region_id", "format_version", "environment", "service_name"]` | `tag_base` has an unauthorized placeholder or is not correctly built. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 7 | `"{module_properties_key_path}.start_time_regex" mandatory property is missing or empty` | `start_time_regex` is not present or is empty in the collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 8 | `"{module_properties_key_path}.start_time_regex" property must be a string` | `start_time_regex` is not of type string. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsModuleDefinitionError` | 9 | `"{module_properties_key_path}.start_time_regex" property is not a valid regular expression` | `start_time_regex` is not a valid Regular Expression. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsInputConfigurationError` | 1 | `"{input_config_key_path}" mandatory property is missing or empty` | The `inputs` data structure is missing or empty in the configuration file. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `inputs`. |
| `AwsInputConfigurationError` | 2 | `"{input_config_key_path}" property must be a dictionary` | The `inputs` data structure is not of type dictionary. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `inputs`. |
| `AwsServiceConfigurationError` | 1 | `"{service_config_key_path}" mandatory property is missing or empty` | The `services` data structure is missing or empty in the configuration file. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `services`. |
| `AwsServiceConfigurationError` | 2 | `"{service_config_key_path}" property must be a dictionary` | The `services` data structure is not of type dictionary. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `services`. |
| `AwsServiceConfigurationError` | 3 | `"{service_config_key_path}.tag" property must be a string` | `tag` is not of type string. | Change the `tag` parameter to be a string. |
| `AwsServiceConfigurationError` | 43 | `"{service_config_key_path}.use_first_optimized_retrieval" property must be a boolean` | `use_first_optimized_retrieval` is not of type boolean. | Change the `use_first_optimized_retrieval` parameter to be a boolean. |
| `AwsServiceConfigurationError` | 1 | `"{service_config_key_path}.log_group" mandatory property is missing or empty` | `log_group` is empty or is not present in the configuration file. | Add the `log_group` parameter to the configuration file. |
| `AwsServiceConfigurationError` | 1 | `"{service_config_key_path}.log_group" property must be a string` | `log_group` is not of type string. | Change the `log_group` parameter to be a string. |
| `AwsServiceConfigurationError` | 2 | `"{service_config_key_path}.start_time" property must be a string` | `start_time` is not of type string. | Change the `start_time` parameter to be a string. |
| `AwsServiceConfigurationError` | 1 | `The property "{service_config_key_path}.start_time" from configuration is having a wrong format, expected pattern: "{start_time_regex}"` | `start_time` is not matching the pattern indicated in the error message. | Make `start_time` match the pattern indicated in the error message. |

### Metrics

| **Error type** | **Error ID** | **Error message** | **Cause** | **Solution** |
| --- | --- | --- | --- | --- |
| `AwsServiceDefinitionException` | 1 | `"{module_properties_key_path}" mandatory property is missing or empty` | `module_properties` is not present in collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsServiceDefinitionException` | 2 | `"{module_properties_key_path}" property must be a dictionary` | `module_properties` is not a dictionary type data structure. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsServiceDefinitionException` | 5 | `"{module_properties_key_path}.tag_base" mandatory property is missing or empty` | `tag_base` is not present in collector definitions file. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsServiceDefinitionException` | 6 | `"{module_properties_key_path}.tag_base" property must be a string` | `tag_base` is not of type string. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsServiceDefinitionException` | 1 | `"{module_properties_key_path}.metric_namespace" mandatory property is missing or empty` | `metric_namespace` is empty or is not present in collector definitions. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsServiceDefinitionException` | 1 | `"{module_properties_key_path}.metric_namespace" property must be a list` | `metric_namespace` is not of type list. | This is an internal issue. Please, contact with Devo Support team. |
| `AwsInputConfigurationError` | 1 | `"{input_config_key_path}" mandatory property is missing or empty` | The `inputs` data structure is missing or empty in the configuration file. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `inputs`. |
| `AwsInputConfigurationError` | 1 | `"{input_config_key_path}" property must be a dictionary` | The `inputs` data structure is not of type dictionary. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `inputs`. |
| `AwsServiceConfigurationError` | 1 | `"{service_config_key_path}" mandatory property is missing or empty` | The `services` data structure is missing or empty in the configuration file. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `services`. |
| `AwsServiceConfigurationError` | 8 | `"{service_config_key_path}" property must be a dictionary` | The `services` data structure is not of type dictionary. | Go to the “Running the collector on…“ section in the documentation and check the data structure required for the `services`. |
| `AwsServiceConfigurationError` | 8 | `"{service_config_key_path}.tag" property must be a string` | `tag` is not of type string. | Change the `tag` parameter to be a string. |
| `AwsServiceConfigurationError` | 0 | `Mandatory property "metric_namespaces" is missing` | `metric_namespaces` is not present in configuration file. | Add `metric_namespaces` to the configuration file. |
| `AwsServiceConfigurationError` | 0 | `Mandatory property "metric_namespaces" property must be a list` | `metric_namespaces` is not of type list. | Change the `metric_namespaces` parameter to be a list. |
| `AwsServiceConfigurationError` | 1 | `When a service uses "metrics" type, the property "request_period_in_seconds" must have one of the following values: 1, 5, 10, 30, 60, or any multiple of 60` | `request_period_in_seconds` is using a value that is not allowed. | Change the `request_period_in_seconds` parameter to match one of this values: 1, 5, 10, 30, 60, or any multiple of 60. |
| `AwsServiceConfigurationError` | 4 | `"start_time" property must be a string` | `start_time` is not of type string. | Change the `start_time` parameter to be a string. |
| `AwsServiceConfigurationError` | 4 | `The property "start_time" from configuration is having a wrong format, expected: YYYY-mm-ddTHH:MM:SSZ` | `start_time` is using an incorrect format. | Change the `start_time` to match the format indicated in the error message. |
</details>

## Change log

| **Release** | **Released on** | **Release type** | **Details** | **Recommendations** |
| --- | --- | --- | --- | --- |
| `v1.14.1` | 7/1/2025 | [IMPROVEMENT]<br>[BUG fix] | **Improvements**<br>- Upgraded the DCSDK to 1.16.3<br>**Bug Fix**<br>- Fixed variable initialization on S3 generic puller | `Recommended version` |
| `v1.14.0` | 6/3/2025 | [IMPROVEMENT] | **Improvements**<br>- Upgraded the DCSDK to 1.16.2
- Upgraded SDK image base to 1.5.1 | `Upgrade` |
| `v1.13.1` | 5/27/2025 | [BUG fix] | **Bug Fix:**<br>- Added a param `delay_in_minutes` to fix missing logs issue in guardduty service. | `Upgrade` |
| `v1.13.0` | 3/21/2025 | [IMPROVEMENT]  
[BUG fix] | **Improvements**<br>- Updated DCSDK base docker image 1.5.0.
- Updated DCSDK from 1.14.0 to 1.16.1  
  
**Bug Fix:**
- Fixed the bug related to the throttling issue. | `Upgrade` |
| `v1.12.0` | 2/28/2025 | [IMPROVEMENT]  
[BUG fix] | **Improvements**<br>- Updated DCSDK base docker image 1.4.0.
- Updated DCSDK from 1.13.1 to 1.14.0:
  - Added new sender for relay in house + TLS
  - Added persistence functionality for gzip sending buffer
  - Fixed error related a ValueError exception not well controlled
  - Fixed error related with loss of some values in internal messages<br>**Bug Fix:**<br>- Fixed the bug related to delay in ingestion | `Upgrade` |
| `v1.11.0` | 1/6/2025 | [IMPROVEMENT]  
[BUG FIX] | **Improvements**<br>- Updated DCSDK base docker image 1.3.1.
- Added Unit tests and added user_guide
- Upgraded `Boto3` libraries from `1.34.97` to `1.35.92`
- Updated DCSDK from 1.11.1 to 1.13.1:
  - Added new sender for relay in house + TLS
  - Added persistence functionality for gzip sending buffer
  - Added Automatic activation of gzip sending
  - Improved behaviour when persistence fails
  - Upgraded DevoSDK dependency
  - Fixed console log encoding
  - Restructured python classes
  - Improved behaviour with non-utf8 characters
  - Decreased default size value for internal queues (Redis limitation, from 1GiB to 256MiB)
  - New persistence format/structure (compression in some cases)
  - Removed dmesg execution (It was invalid for docker execution)
  - Applied changes to make DCSDK compatible with MacOS
  - Upgrade DevoSDK dependency to version v5.4.0
  - Change internal queue management for protecting against OOMK
  - Extracted ModuleThread structure from PullerAbstract
  - Improve Controlled stop when both processes fails to instantiate
  - Improve Controlled stop when InputProcess is killed
  - Bug related to lost of collector_name , collector_id and job_id
  - Bug related queues and ValueError (edited)
  - Change internal queue management for protecting against OOMK
  - Extracted ModuleThread structure from PullerAbstract
  - Improve Controlled stop when both processes fails to instantiate
  - Improve Controlled stop when InputProcess is killed
  - Fixed error related a ValueError exception not well controlled
  - Fixed error related with loss of some values in internal mes
- **Bug Fix:**
  - Changes in code to handle the guard-duty missing logs issue
  sages | `Upgrade` |
| `v1.10.0` | 5/31/2024 | [NEW FEATURE] | **Improvements:**<br>- Implemented GuardDuty service, added puller set-up and puller for it | `Upgrade` |
| `v1.8.2` | 3/1/2024 | [IMPROVEMENT] | **Improvements:**<br>- Upgraded DCSDK Docker base image updated to `1.2.0` | `Upgrade` |
| `v1.8.1` | 2/28/2024 | [BUG FIX] | **Bug Fixes:**<br>- Fix a bug when dealing with events that have no lastEventTimestamp present in the log_stream | `Upgrade` |
| `v1.8.0` | 12/7/2023 | [IMPROVEMENT]  
[NEW FEATURE] | **New Feature**<br>- Updated method to call all the log group name if log_group parameter is this '/' in the config<br>**Improvements**<br>- Upgraded DCSDK from 1.9.2 to 1.10.2
  - Ensure special characters are properly sent to the platform
  - Changed log level to some messages from info to debug
  - Changed some wrong log messages
  - Upgraded some internal dependencies
  - Changed queue passed to setup instance constructor
  - Ability to validate collector setup and exit without pulling any data
  - Ability to store in the persistence the messages that couldn't be sent after the collector stopped
  - Ability to send messages from the persistence when the collector starts and before the puller begins working
  - Ensure special characters are properly sent to the platform | `Upgrade` |
| `v1.7.1` | 10/25/2023 | [bug fixes] | - Fixed the way the collector handles milliseconds as the `strptime` function has been updated since 2021
- Fixed the missing parameter in a method call | `Recommended version` |
| `v1.6.0` | 9/20/2023 | [NEW FEATURE] | **New features:**<br>1. Added Cisco Umbrella new data source using SQS+S3
2. Added `is_aws_service` optional parameter in `collector_definitions.yaml`.
3. Added `event_type_file_regex_patterns` optional parameter to set a dict as: `event_type -> regex_for_s3_file_key` | `Upgrade` |
| `v1.5.0` | 8/11/2023 | [IMPROVEMENT] | **Improvements**<br>1. Upgraded [`boto`] libraries from 1.21.36 to 1.28.24
2. Upgraded DCSDK from 1.3.0 to 1.9.1 | `Upgrade` |
| `v1.4.1` | 8/11/2022 | [BUG FIX] | **Bug Fixes:**<br>- Fixed a bug that prevented the use of the Assumed Role authentication method.
- Fixed a bug that prevented session renewal when using any of the Assume Authentication methods:
  - Assume Role
  - Cross Account | `Upgrade` |
| `v1.4.0` | 1/22/2022 | [NEW FEATURE]   
[IMPROVEMENT]  
[BUG FIX] | **New features:**<br>- `CrossAccount` authentication method is now available improving the way in which the credentials are shared when the collector is running in the Collector Service.<br>**Improvements:**<br>- The `audit-events-all` service (type `audits_api`) has been enhanced to allow requesting events older than 500 days.<br>**Bug Fixes:**<br>- Fixed a bug that raised a `KeyError` when the optional param `event_type_processor_mapping` was not defined running `service-events-all` service. | `Upgrade` |