# AWS Cloudwatch - Cant collect s3 tags from AWS/S3 namespace

**URL:** <https://discuss.elastic.co/t/aws-cloudwatch-cant-collect-s3-tags-from-aws-s3-namespace/225930>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [March 31, 2020, 6:00pm UTC](https://discuss.elastic.co/t/aws-cloudwatch-cant-collect-s3-tags-from-aws-s3-namespace/225930 "2020-03-31T18:00:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yotamloe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yotamloe/32/65452_2.png) [@Yotamloe](https://discuss.elastic.co/u/Yotamloe)\
**Post date:** [March 31, 2020, 6:00pm UTC](https://discuss.elastic.co/t/aws-cloudwatch-cant-collect-s3-tags-from-aws-s3-namespace/225930/1 "2020-03-31T18:00:24Z")

</div>

Hi, i'm using metricbeat 7.5.1. I'm trying to collect daily storage metrics and s3 bucket tags with the cloudwatch metricset, but its failing to collect tags. I have succeeded to describe the tags in my aws account with AWS CLI and 'AWS Resource Groups Tagging API - get-resources' using 's3' in the resource type filter parameter. this is my Cloudwatch metric set configuration:

```auto
    - module: aws
      period: 86400s
      metricsets:
        - cloudwatch   
      metrics: 
        - namespace: AWS/S3
          tags.resource_type_filter: s3

```

Can anyone help me figure out what could have go wrong here?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)\
**Post date:** [April 1, 2020, 10:23pm UTC](https://discuss.elastic.co/t/aws-cloudwatch-cant-collect-s3-tags-from-aws-s3-namespace/225930/2 "2020-04-01T22:23:55Z")

</div>

🙂 You found a bug! I was able to reproduce this problem and and I just created an issue for this in github [https://github.com/elastic/beats/issues/17419](https://github.com/elastic/beats/issues/17419). Thank you so much for reporting this! I will work on the fix asap.

---

<div class="post-metadata">

**Author:** ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)\
**Post date:** [April 2, 2020, 3:50am UTC](https://discuss.elastic.co/t/aws-cloudwatch-cant-collect-s3-tags-from-aws-s3-namespace/225930/3 "2020-04-02T03:50:03Z")

</div>

Thanks again for finding out this bug! I just pushed a PR for fixing it: [https://github.com/elastic/beats/pull/17424](https://github.com/elastic/beats/pull/17424).

---

<div class="post-metadata">

**Author:** ![Yotamloe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yotamloe/32/65452_2.png) [@Yotamloe](https://discuss.elastic.co/u/Yotamloe)\
**Post date:** [April 2, 2020, 8:32am UTC](https://discuss.elastic.co/t/aws-cloudwatch-cant-collect-s3-tags-from-aws-s3-namespace/225930/4 "2020-04-02T08:32:28Z")

</div>

Amazing. Thank you Kaiyan !

---

<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:** [April 30, 2020, 8:44am UTC](https://discuss.elastic.co/t/aws-cloudwatch-cant-collect-s3-tags-from-aws-s3-namespace/225930/5 "2020-04-30T08:44:20Z")

</div>

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