Once they are docs, that's true, but you didn't say that you were pulling data out of elasticsearch Set docinfo => true on the elasticsearch input and refer to %{[@metadata][_index]} in the path string.
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.