Send the logs from filebeat to cloudwatch? Filbeat does not have an output for Cloudwatch, the only available outputs are these.
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.
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.
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.