Thanks. Reading through the code, it looks like only certain fields may be used in the setup.ilm.rollover_alias and setup.ilm.policy_name settings: beat.name, beat.version, agent.name, agent.version, observer.name, observer.version. Of these the first two — beat.name and beat.version are only available for backwards compatibility and must not be used; use agent.name and agent.version instead.
So any fields other than the "global" ones mentioned above are not available in the format string used in setup.ilm.rollover_alias and setup.ilm.policy_name settings.
In your configuration I see you have fields.rollover_alias and fields.policy_name which are defined under the input configuration. These fields will get added to each Beat event as it is created by the input. However, the ILM setup can happen when a user runs filebeat setup or filebeat setup --index-management. When one of these commands is run Filebeat does not read data from inputs, so the fields configured in the filebeat.inputs section don't come into play at all.
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.