Apm creates a global index for all services by default:
apm-%{[beat.version]}-%{+yyyy.MM.dd}
Considering the management of ES storage capacity, I need to analyze the data growth trend of some major services, not the total amount of all services
I want to automatically create an index for each new service. Is there any experience I can refer to?
You can change the index name by setting either output.elasticsearch.index or output.elasticsearch.indices. These configuration variables take an index name "format string", which can reference fields the events. For your use-case, you can include %{[service.name]} in the format string to create an index per service.
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.