Yes, you can - you need a control viz with 2 separate option lists(one for Test/Prod and one for the servers). For the server control you configure the environment as parent:
You need to use the fields.env option as tags cannot create keys with values as it is an array of keywords(see definition here). It could be possible to use the tags (though I have not tried it myself) by specifying tags as field name for the environment but if there are other tags added to the event those would show up as well(e.g. grok_parse_failure, ...).
No @Wolfram_Haussig sorry for the previous message. I have the field in to discovery as string but I continue to do not see field in visualization Field. It is strange
The dropdown menu is dynamically populated with the results of a terms aggregation
My guess is that the field is not marked as aggregatable in the index pattern. more than likely, the field was automatically mapped as text instead of keyword which does not support aggregation.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.