# Custom logs from Logstash to Cloudwatch

**URL:** https://discuss.elastic.co/t/custom-logs-from-logstash-to-cloudwatch/350955
**Category:** Logstash
**Created:** [January 12, 2024, 1:15pm UTC](https://discuss.elastic.co/t/custom-logs-from-logstash-to-cloudwatch/350955 "2024-01-12T13:15:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Vadsgator](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vadsgator/32/122949_2.png) [@Vadsgator](https://discuss.elastic.co/u/Vadsgator)
#### Post date: [January 12, 2024, 1:15pm UTC](https://discuss.elastic.co/t/custom-logs-from-logstash-to-cloudwatch/350955/1 "2024-01-12T13:15:54Z")

</div>

Hiya,

Currently there is no actual support to send custom logs from Logstash to Cloudwatch. (There is a way to send metrics data using the Cloudwatch Output Plugin) and there was some support for a plugin called logstash-output-cloudwatchlogs, [GitHub - amazon-archives/logstash-output-cloudwatchlogs: A logstash plugin that allows to send logs to AWS CloudWatch Logs service.](https://github.com/awslabs/logstash-output-cloudwatchlogs)

But it doesn't work anymore. I tried sending the logs from filebeat but it can only output to one destination.

Now, I'm trying to get it sent from Logstash as the flow is Filebeat -\> Logstash -\> Elasticsearch.

Is there any possibility to make this work in Logstash or can I send the logs from Elasticsearch to Cloudwatch?

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [January 12, 2024, 1:55pm UTC](https://discuss.elastic.co/t/custom-logs-from-logstash-to-cloudwatch/350955/2 "2024-01-12T13:55:28Z")

</div>

> [@Vadsgator](#):
>
> But it doesn't work anymore. I tried sending the logs from filebeat but it can only output to one destination.

Send the logs from filebeat to cloudwatch? Filbeat does not have an output for Cloudwatch, the only available outputs are [these](https://www.elastic.co/guide/en/beats/filebeat/current/configuring-output.html).

> [@Vadsgator](#):
>
> Is there any possibility to make this work in Logstash or can I send the logs from Elasticsearch to Cloudwatch?

Unfortunately no for both cases, Logstash does not have an output plugin to Cloudwatch and Elasticsearch does not send data to anywhere.

An alternative would be to use a different tool, like[vector](https://vector.dev).

In this case you would need to change your data ingestion flow and add a Kafka to make it possible to have two different tools reading from the same source.

For example, you would have filebeat sending the logs to Kafka and then both Logstash and vector would read from the same topic, but with different group id, and send the logs to their destinations.

Somethinkg like this:

Filebeat -\> Kafka  
Kafka -\> Logstash -\> Elasticsearch  
Kafka -\> Vector -\> Cloudwatch

Depending on what transformations you are doing in Logstash, you may be able to do the same transformations in vector and use vector to ship the logs to both Elasticsearch and Cloudwatch, this way you would be able to drop Logstash.

In my experience you can replace Logstash with Vector in most of the cases.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [February 9, 2024, 1:55pm UTC](https://discuss.elastic.co/t/custom-logs-from-logstash-to-cloudwatch/350955/3 "2024-02-09T13:55:49Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
