# Filter instances

**URL:** <https://discuss.elastic.co/t/filter-instances/214372>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [January 9, 2020, 8:36am UTC](https://discuss.elastic.co/t/filter-instances/214372 "2020-01-09T08:36:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samerd](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@Samerd](https://discuss.elastic.co/u/Samerd)\
**Post date:** [January 9, 2020, 8:36am UTC](https://discuss.elastic.co/t/filter-instances/214372/1 "2020-01-09T08:36:54Z")

</div>

Hi,

i want to monitor specific instance only called 'logz\_io':  
Can we use filter instances :  
i found this example , but it is not working :

```
   - module: aws
     period: 10s
     metricsets:
         - ec2
     default_region: eu-central-1
     access_key_id: 'xxxxxx'
     secret_access_key: 'xxx+xxxxx'
     tags_filter:
         - key: "Name"
     value: "logz_io"
```

---

<div class="post-metadata">

**Author:** ![Mario\_Castro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_castro/32/35107_2.png) [@Mario\_Castro](https://discuss.elastic.co/u/Mario_Castro)\
**Post date:** [January 22, 2020, 12:29pm UTC](https://discuss.elastic.co/t/filter-instances/214372/2 "2020-01-22T12:29:02Z")

</div>

Hi @Samerd 🙂

Just indentation of the `value` seems incorrect, check this example [https://www.elastic.co/guide/en/beats/metricbeat/7.5/metricbeat-metricset-aws-ec2.html#\_configuration\_example\_3](https://www.elastic.co/guide/en/beats/metricbeat/7.5/metricbeat-metricset-aws-ec2.html#_configuration_example_3) :

```auto
   - module: aws
     period: 10s
     metricsets:
         - ec2
     default_region: eu-central-1
     access_key_id: 'xxxxxx'
     secret_access_key: 'xxx+xxxxx'
     tags_filter:
         - key: "Name"
           value: "logz_io"

```

---

<div class="post-metadata">

**Author:** ![Samerd](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@Samerd](https://discuss.elastic.co/u/Samerd)\
**Post date:** [February 12, 2020, 12:06pm UTC](https://discuss.elastic.co/t/filter-instances/214372/3 "2020-02-12T12:06:48Z")

</div>

it was copy mistake , but in my configuration it was correct (the value was inside the tags\_filter)

---

<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:** [March 11, 2020, 12:06pm UTC](https://discuss.elastic.co/t/filter-instances/214372/4 "2020-03-11T12:06:54Z")

</div>

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