# Filebeat and EC2 Tags

**URL:** <https://discuss.elastic.co/t/filebeat-and-ec2-tags/98737>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 29, 2017, 5:36pm UTC](https://discuss.elastic.co/t/filebeat-and-ec2-tags/98737 "2017-08-29T17:36:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![StivOstenberg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stivostenberg/32/4681_2.png) [@StivOstenberg](https://discuss.elastic.co/u/StivOstenberg)\
**Post date:** [August 29, 2017, 5:36pm UTC](https://discuss.elastic.co/t/filebeat-and-ec2-tags/98737/1 "2017-08-29T17:36:25Z")

</div>

Howdy;  
There is a processor called "add\_cloud\_metadata" that adds 5 EC2 metadata fields, but does not appear to grab the tags. Since that is where instances user defined data is defined, would be nice if it also pulled "metadata.cloud.tags.TAGNAME = TAGVALUE. Am I missing something?

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [August 29, 2017, 8:40pm UTC](https://discuss.elastic.co/t/filebeat-and-ec2-tags/98737/2 "2017-08-29T20:40:28Z")

</div>

I don't believe that tag information is provided as part of the [EC2 metadata service](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html). There is user-data but it's not the EC2 tags AFAIK.

Tag information is obtained through the [EC2 DescribeTags API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTags.html). You can use the instance-id from the metadata service to get the tags, but it's done through a separate API call from the metadata service and that call requires authentication parameters. It's the authentication requirement that ruins the party.

---

<div class="post-metadata">

**Author:** ![StivOstenberg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stivostenberg/32/4681_2.png) [@StivOstenberg](https://discuss.elastic.co/u/StivOstenberg)\
**Post date:** [August 29, 2017, 9:14pm UTC](https://discuss.elastic.co/t/filebeat-and-ec2-tags/98737/3 "2017-08-29T21:14:36Z")

</div>

Yep. That is what I had to do, Andrew. Sigh.

---

<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:** [September 26, 2017, 9:14pm UTC](https://discuss.elastic.co/t/filebeat-and-ec2-tags/98737/4 "2017-09-26T21:14:51Z")

</div>

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