I have about 2000 Elastic agents (version 8.9.0) connected to a system with 3 Fleet servers (version 8.9.0).
We have about 20 different agent policies, because the various Elastic agents are sending
slightly different logs, and for certain cases we need to specify specific pipelines to process the logs.
In the Fleet UI, if I go to kbn:/app/fleet/data-streams ,
I can see each dataset associated with each Elastic Agent.
Is it possible to specify ILM policies for each elastic agent's data set in the agent policy?
Or do ILM policies for an elastic agent's data set need to be specified outside of the agent policy?
I'm having difficulty figuring this out.
Thanks for any help.
Elastic Agent uses the same ILM policy for everything, it is an ILM policy named logs, every integration will use this same ILM policy.
You can customize the data retention using a custom ILM policy according to the documentation, but this is a manual process that needs to be done for every data set in every integration.
For example, if an integration have 10 data sets, you will need to create 10 custom templates, you can use the same ILM policy for these templates, but you will need one template per dataset per integration.
The same thing applies to custom ingest pipelines, you can create custom ingest pipelines per dataset per integration.
I'm not using 8.9, but unless anything has changed the policy is still named logs, you need to toggle the option Include managed system policies to show the managed policies.
You need to follow the steps in the documentation, which is basically what you described, but yes, you will need a template for every data stream.
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.