﻿---
title: Configure the output
description: You configure Heartbeat to write to a specific output by setting options in the Outputs section of the heartbeat.yml config file. Only a single output...
url: https://www.elastic.co/elastic/docs-builder/docs/3028/reference/beats/heartbeat/configuring-output
products:
  - Beats
  - Heartbeat
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Configure the output
You configure Heartbeat to write to a specific output by setting options in the Outputs section of the `heartbeat.yml` config file. Only a single output may be defined.
The following topics describe how to configure each supported output. If you’ve secured the Elastic Stack, also read [Secure](https://www.elastic.co/elastic/docs-builder/docs/3028/reference/beats/heartbeat/securing-heartbeat) for more about security-related configuration options.
- [Elastic Cloud Hosted](https://www.elastic.co/elastic/docs-builder/docs/3028/reference/beats/heartbeat/configure-cloud-id)
- [Elasticsearch](https://www.elastic.co/elastic/docs-builder/docs/3028/reference/beats/heartbeat/elasticsearch-output)
- [Logstash](https://www.elastic.co/elastic/docs-builder/docs/3028/reference/beats/heartbeat/logstash-output)
- [Kafka](https://www.elastic.co/elastic/docs-builder/docs/3028/reference/beats/heartbeat/kafka-output)
- [Redis](https://www.elastic.co/elastic/docs-builder/docs/3028/reference/beats/heartbeat/redis-output)
- [File](https://www.elastic.co/elastic/docs-builder/docs/3028/reference/beats/heartbeat/file-output)
- [Console](https://www.elastic.co/elastic/docs-builder/docs/3028/reference/beats/heartbeat/console-output)
- [Discard](https://www.elastic.co/elastic/docs-builder/docs/3028/reference/beats/heartbeat/discard-output)

<tip>
  When sending data to Elasticsearch Serverless, configure the Elasticsearch output with your project's endpoint URL and an API key. Refer to [Beats for Elasticsearch Serverless](https://www.elastic.co/elastic/docs-builder/docs/3028/reference/beats/serverless/beats) for setup instructions.
</tip>