# How to specify multiple filters in cloudwatch plugin?

**URL:** <https://discuss.elastic.co/t/how-to-specify-multiple-filters-in-cloudwatch-plugin/79811>\
**Category:** Logstash\
**Created:** [March 23, 2017, 8:49pm UTC](https://discuss.elastic.co/t/how-to-specify-multiple-filters-in-cloudwatch-plugin/79811 "2017-03-23T20:49:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tri](https://avatars.discourse-cdn.com/v4/letter/t/6bbea6/32.png) [@tri](https://discuss.elastic.co/u/tri)\
**Post date:** [March 23, 2017, 8:49pm UTC](https://discuss.elastic.co/t/how-to-specify-multiple-filters-in-cloudwatch-plugin/79811/1 "2017-03-23T20:49:16Z")

</div>

Hi all,  
Just wonder if anybody have a working example of using more than one values in the cloudwatch plugin filters parameter? I have a situation where I need to specify a number of tags in the filters parameter in order to narrow down to the set of instances that I want to import Cloudwatch metrics from, following the documentation, specifying something simple like works fine:  
filters =\> {"tag:Environment" =\> "test"}

When I tried filtered on multiple values like:  
filters =\> [{"tag:Environment" =\> "test"}, {"tag:Product" =\> "XYZ"}]  
which is a valid syntax according to the document, I got an error back (seems to be an Amazon AWS error):

Error: expected string value for key name of member 1 of option filters  
Exception: AWS::Core::OptionGrammar::FormatError

Cloudwatch plugin version: 2.0.0  
Logstash version: 5.1.1

Thanks

---

<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 20, 2017, 8:49pm UTC](https://discuss.elastic.co/t/how-to-specify-multiple-filters-in-cloudwatch-plugin/79811/2 "2017-04-20T20:49:28Z")

</div>

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