# \[Filebeat\] Bug with aws-cloudwatch logs using log\_group\_arn

**URL:** <https://discuss.elastic.co/t/filebeat-bug-with-aws-cloudwatch-logs-using-log-group-arn/350930>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 12, 2024, 10:35am UTC](https://discuss.elastic.co/t/filebeat-bug-with-aws-cloudwatch-logs-using-log-group-arn/350930 "2024-01-12T10:35:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blaj\_Dragos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/blaj_dragos/32/130747_2.png) [@Blaj\_Dragos](https://discuss.elastic.co/u/Blaj_Dragos)\
**Post date:** [January 12, 2024, 10:35am UTC](https://discuss.elastic.co/t/filebeat-bug-with-aws-cloudwatch-logs-using-log-group-arn/350930/1 "2024-01-12T10:35:48Z")

</div>

Hi! I have a filebeat system with the following configuration as an input:

```auto
filebeat.inputs:
    - type: aws-cloudwatch
      log_group_arn: arn:aws:logs:eu-west-1:*:log-group:/ecs/log:*
      scan_frequency: 30s
      start_position: beginning
      access_key_id: *
      secret_access_key: *

```

What I expected to happen is to get all the streams from the log group and output them to logstash. Instead the filebeat is not getting any logs and changes between aws-cloudwatch input worker has started and aws-cloudwatch input worker has stopped.  
But when I change the configuration to:

```auto
filebeat.inputs:
    - type: aws-cloudwatch
      log_group_arn: arn:aws:logs:eu-west-1:*:log-group:/ecs/log:*
      log_streams: name_of_stream
      scan_frequency: 30s
      start_position: beginning
      access_key_id: *
      secret_access_key: *

```

It works only for the specified stream. I want to be able to get all the logs streams at the start of the filebeat execution and the real-time logs that will be created after the execution.

Thank you for your time!

---

<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, 12:35pm UTC](https://discuss.elastic.co/t/filebeat-bug-with-aws-cloudwatch-logs-using-log-group-arn/350930/2 "2024-02-09T12:35:59Z")

</div>

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