Original install method (e.g. download page, yum, from source, etc.): Elastic Cloud
Describe the bug:
The Elastic Agent integration is not installed before monitoring data streams are created. This means default mappings are being applied and that dynamic fields are enabled. This could causes mapping explosions and data type conflicts depending on what is contained in the logs and metrics.
Steps to reproduce:
Launch a new Elastic Cloud instance.
Create agent policy with monitoring metrics/logs enabled.
Enroll Agent.
View that Filebeat (or other components) logs and metrics are populated in logs-elastic_agent.filebeat-default and metrics-elastic_agent.filebeat-default.
Check the index template associated to those data streams. It will be the default logs and metrics templates instead of the templates contained in the elastic_agent package.
Verify that the "Elastic Agent" package is not listed on the Installed Integrations tab.
Expected behavior:
The Elastic Agent integration would be installed either at first launch of Fleet or when the first Agent policy enables monitoring.
Any additional context:
Do not test this case using elastic-package. It has been explicitly configured to install elastic_agent via the kibana.yml. This has probably masked the bug from most integration developers.
Kibana version: 8.7.0, 8.7.1, possibly earlier
Original install method (e.g. download page, yum, from source, etc.): Elastic Cloud
Describe the bug:
The Elastic Agent integration is not installed before monitoring data streams are created. This means default mappings are being applied and that dynamic fields are enabled. This could causes mapping explosions and data type conflicts depending on what is contained in the logs and metrics.
Steps to reproduce:
logs-elastic_agent.filebeat-default
andmetrics-elastic_agent.filebeat-default
.logs
andmetrics
templates instead of the templates contained in theelastic_agent
package.Expected behavior:
The Elastic Agent integration would be installed either at first launch of Fleet or when the first Agent policy enables monitoring.
Any additional context:
Do not test this case using
elastic-package
. It has been explicitly configured to installelastic_agent
via the kibana.yml. This has probably masked the bug from most integration developers.