---
title: Quickstart: Collect data with AWS Firehose
description: Learn how to use AWS Firehose to send logs and metrics to Elastic Observability for monitoring and analysis.
url: https://www.elastic.co/docs/solutions/observability/get-started/quickstart-collect-data-with-aws-firehose
products:
  - Elastic Cloud Serverless
  - Elastic Observability
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Quickstart: Collect data with AWS Firehose
<warning>
  This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
</warning>

In this quickstart guide, you’ll learn how to use AWS Firehose to send logs and metrics to Elastic.
The AWS Firehose streams are created using a CloudFormation template, which can collect all available CloudWatch logs and metrics for your AWS account.
This approach requires minimal configuration as the CloudFormation template creates a Firehose stream, enables CloudWatch metrics collection across all namespaces, and sets up an account-level subscription filter for CloudWatch log groups to send logs to Elastic via Firehose. You can use an AWS CLI command or upload the template to the AWS CloudFormation portal to customize the following parameter values:
<dropdown title="Required Input Parameters">
  - `ElasticEndpointURL`: Elastic endpoint URL.
  - `ElasticAPIKey`: Elastic API Key.
</dropdown>

<dropdown title="Optional Input Parameters">
  - `HttpBufferInterval`: The Kinesis Firehose HTTP buffer interval, in seconds. Default is `60`.
  - `HttpBufferSize`: The Kinesis Firehose HTTP buffer size, in MiB. Default is `1`.
  - `S3BackupMode`: Source record backup in Amazon S3, failed data only or all data. Default is `FailedDataOnly`.
  - `S3BufferInterval`: The Kinesis Firehose S3 buffer interval, in seconds. Default is `300`.
  - `S3BufferSize`: The Kinesis Firehose S3 buffer size, in MiB. Default is `5`.
  - `S3BackupBucketARN`: By default, an S3 bucket for backup will be created. You can override this behavior by providing an ARN of an existing S3 bucket that ensures the data can be recovered if record processing transformation does not produce the desired results.
  - `Attributes`: List of attribute name-value pairs for HTTP endpoint separated by commas. For example "name1=value1,name2=value2".
</dropdown>

<dropdown title="Optional Input Parameters Specific for Metrics">
  - `EnableCloudWatchMetrics`: Enable CloudWatch Metrics collection. Default is `true`. When CloudWatch metrics collection is enabled, by default a metric stream will be created with metrics from all namespaces.
  - `FirehoseStreamNameForMetrics`: Name for Amazon Data Firehose Stream for collecting CloudWatch metrics. Default is `elastic-firehose-metrics`.
  - `IncludeOrExclude`: Select the metrics you want to stream. You can include or exclude specific namespaces and metrics. If no filter namespace is given, then default to all namespaces. Default is `Include`.
  - `MetricNameFilters`: Comma-delimited list of namespace-metric names pairs to use for filtering metrics from the stream. If no metric name filter is given, then default to all namespaces and all metrics. For example "AWS/EC2:CPUUtilization|NetworkIn|NetworkOut,AWS/RDS,AWS/S3:AllRequests".
  - `IncludeLinkedAccountsMetrics`: If you are creating a metric stream in a monitoring account, specify `true` to include metrics from source accounts that are linked to this monitoring account, in the metric stream. Default is `false`.
  - `Tags`: Comma-delimited list of tags to apply to the metric stream. For example "org:eng,project:firehose".
</dropdown>

<dropdown title="Optional Input Parameters Specific for Logs">
  - `EnableCloudWatchLogs`: Enable CloudWatch Logs collection. Default is `true`. When CloudWatch logs collection is enabled, an account-level subscription filter policy is created for all CloudWatch log groups (except the log groups created for Firehose logs).
  - `FirehoseStreamNameForLogs`: Name for Amazon Data Firehose Stream for collecting CloudWatch logs. Default is `elastic-firehose-logs`.
</dropdown>

<important>
  Some AWS services need additional manual configuration to properly ingest logs and metrics. For more information, check the [AWS integration](https://www.elastic.co/docs/reference/integrations/aws) documentation.
</important>

Data collection with AWS Firehose is supported on Elastic Cloud Hosted deployments in AWS, Azure and GCP.

## Prerequisites

<applies-switch>
  <applies-item title="stack:" applies-to="Elastic Stack: Generally available">
    - An [Elastic Cloud Hosted](https://cloud.elastic.co/registration?page=docs&placement=docs-body) deployment. The deployment includes an Elasticsearch cluster for storing and searching your data, and Kibana for visualizing and managing your data.
    - A user with the `superuser` [built-in role](https://www.elastic.co/docs/reference/elasticsearch/roles) or the privileges required to onboard data.
      <dropdown title="Expand to view required privileges">
      - [**Cluster**](https://www.elastic.co/docs/reference/elasticsearch/security-privileges#privileges-list-cluster): `['monitor', 'manage_own_api_key']`
      - [**Index**](https://www.elastic.co/docs/reference/elasticsearch/security-privileges#privileges-list-indices): `{ names: ['logs-*-*', 'metrics-*-*'], privileges: ['auto_configure', 'create_doc'] }`
      - [**Kibana**](https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/kibana-privileges): `{ spaces: ['*'], feature: { fleet: ['all'], fleetv2: ['all'] } }`
      </dropdown>
    - An active AWS account and the necessary permissions to create delivery streams.

    <note>
      The default CloudFormation stack is created in the AWS region selected for the user’s account. This region can be modified either through the AWS Console interface or by specifying a `--region` parameter in the AWS CLI command when creating the stack.
    </note>
  </applies-item>

  <applies-item title="serverless:" applies-to="Elastic Cloud Serverless: Generally available">
    - An Elastic Observability Serverless project. To learn more, refer to [Create an Observability project](https://www.elastic.co/docs/solutions/observability/get-started).
    - A user with the **Admin** role or higher—required to onboard system logs and metrics. To learn more, refer to [Assign user roles and privileges](/docs/deploy-manage/users-roles/cloud-organization/user-roles#general-assign-user-roles).
    - An active AWS account and the necessary permissions to create delivery streams.
  </applies-item>
</applies-switch>


## Limitations

The AWS Firehose receiver has the following limitations:
- It does not support AWS PrivateLink.
- It is not available for on-premise Elastic Stack deployments.
- The CloudFormation template detects and ingests logs and metrics within a single AWS region only.

The following table shows the type of data ingested by the supported AWS services:

| AWS Service                 | Data type     |
|-----------------------------|---------------|
| VPC Flow Logs               | Logs          |
| API Gateway                 | Logs, Metrics |
| CloudTrail                  | Logs          |
| Network Firewall            | Logs, Metrics |
| Route53                     | Logs          |
| WAF                         | Logs          |
| DynamoDB                    | Metrics       |
| EBS                         | Metrics       |
| EC2                         | Metrics       |
| ECS                         | Metrics       |
| ELB                         | Metrics       |
| EMR                         | Metrics       |
| MSK                         | Metrics       |
| Kinesis Data Stream         | Metrics       |
| Lambda                      | Metrics       |
| NAT Gateway                 | Metrics       |
| RDS                         | Metrics       |
| S3                          | Metrics       |
| SNS                         | Metrics       |
| SQS                         | Metrics       |
| Transit Gateway             | Metrics       |
| AWS Usage                   | Metrics       |
| VPN                         | Metrics       |
| Uncategorized Firehose Logs | Logs          |


## Collect your data

<applies-switch>
  <applies-item title="stack:" applies-to="Elastic Stack: Generally available">
    1. In Kibana, go to the **Observability** UI and click **Add Data**.
    2. Under **What do you want to monitor?** select **Cloud**, **AWS**, and then select **AWS Firehose**.
       ![](https://www.elastic.co/docs/solutions/images/observability-quickstart-aws-firehose-entry-point.png)

    1. Click **Create Firehose Stream in AWS** to create a CloudFormation stack from the CloudFormation template.
    2. Go back to the **Add Observability Data** page.
  </applies-item>

  <applies-item title="serverless:" applies-to="Elastic Cloud Serverless: Generally available">
    1. [Create a new Elastic Observability Serverless project](https://www.elastic.co/docs/solutions/observability/get-started), or open an existing one.
    2. In your Elastic Observability Serverless project, go to **Add Data**.
    3. Under **What do you want to monitor?** select **Cloud**, **AWS**, and then select **AWS Firehose**.
       ![](https://www.elastic.co/docs/solutions/images/serverless-quickstart-aws-firehose-entry-point.png)

    1. Click **Create Firehose Stream in AWS** to create a CloudFormation stack from the CloudFormation template.
    2. Go back to the **Add Observability Data** page.
  </applies-item>
</applies-switch>


## Visualize your data

After installation is complete and all relevant data is flowing into Elastic, the **Visualize your data** section allows you to access the different dashboards for the various services.
![AWS Firehose dashboards](https://www.elastic.co/docs/solutions/images/observability-quickstart-aws-firehose-dashboards.png)

Here is an example of the VPC Flow logs dashboard:
![AWS Firehose VPC flow](https://www.elastic.co/docs/solutions/images/observability-quickstart-aws-firehose-vpc-flow.png)

Refer to [What is Elastic Observability?](https://www.elastic.co/docs/solutions/observability) for a description of other useful features.