tags is an array, and it cannot be used in variable substitution for the index name. You can add a custom field and use this field, something like this:
Another option is to use indices instead of index, that allows to define more advanced rules for index selection, you'd have to replace your index with something like:
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.