# Provide Back EC2 Tags as metadata

**URL:** <https://discuss.elastic.co/t/provide-back-ec2-tags-as-metadata/228386>\
**Category:** Beats\
**Tags:** elastic-stack-monitoring\
**Created:** [April 16, 2020, 5:39pm UTC](https://discuss.elastic.co/t/provide-back-ec2-tags-as-metadata/228386 "2020-04-16T17:39:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sheldonh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sheldonh/32/66466_2.png) [@sheldonh](https://discuss.elastic.co/u/sheldonh)\
**Post date:** [April 16, 2020, 5:39pm UTC](https://discuss.elastic.co/t/provide-back-ec2-tags-as-metadata/228386/1 "2020-04-16T17:39:58Z")

</div>

I'm used to telegraf and influxdb structure, so perhaps this is a beginner issue.  
I found a related issue: [Filebeat and EC2 Tags](https://discuss.elastic.co/t/filebeat-and-ec2-tags/98737)

However, I didn't see any solution. I currently modified my setup script to parse ec2 tags and then attach them to in the yaml with the format of:

```auto
- add_tags:
    tags: [foo]
    target: Scope
- add_tags:
    tags: [test]
    target: ssm_scope

```

None of these show up in the uptime monitor (heartbeat). Ideally, I'd want to pull all ec2 tags, with a filter to exclude a few possibly, for each monitor.

The instance has full permissions to get ec2 metadata, so using the AWSPowershell SDK I can grab and edit the yaml file. However, I was hoping for a solution to grab the metadata automatically for any of my beats apps and ensure that these tags which provide me a valuable way to generate dashboards and metrics would be automatically included.

Is this possible and am I using the correct format to include multiple tags back?

---

<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:** [May 14, 2020, 7:39pm UTC](https://discuss.elastic.co/t/provide-back-ec2-tags-as-metadata/228386/2 "2020-05-14T19:39:59Z")

</div>

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