Make sure that main ECS fields are mapped in the Elastic Agent integration #8252
Labels
bug
Something isn't working, use only for issues
Integration:elastic_agent
Elastic Agent
Team:Elastic-Agent-Data-Plane
Label for the Agent Data Plane team [elastic/elastic-agent-data-plane]
Recently we had a report that
log.file.path
is not mapped in events created in the Elastic-Agent integration (dataset:elastic_agent.endpoint_security-external
).Another report that
error.message
is not mapped inlogs-elastic_agent.filebeat-syslog
either.All the
logs-*-*
data streams includinglogs-elastic_agent.endpoint_security-external
are created from this logs-template.jsonwhich is composed of these component templates:
The last 2 were added ~4 months ago in this PR (should have been released with 8.9.x) elastic/elasticsearch#96171
Which means the
log.file.path
field should be mapped via this dynamic mapping:https://github.com/elastic/elasticsearch/blob/48fcb2e7d4651b95a8e22612e2ec001ad4c4bdc4/x-pack/plugin/core/template-resources/src/main/resources/ecs-dynamic-mappings.json#L100
However, I see that dynamic mappings are disabled in the integration:
integrations/packages/elastic_agent/data_stream/endpoint_sercurity_logs/manifest.yml
Line 7 in ffe9c35
It seems we have two options (both need to be tested):
true
hereintegrations/packages/elastic_agent/data_stream/endpoint_sercurity_logs/manifest.yml
Line 7 in ffe9c35
log.file.path
) here https://github.com/elastic/integrations/blob/ffe9c35004696815c24fdb89aa86778d2ea67885/packages/elastic_agent/data_stream/endpoint_sercurity_logs/fields/ecs.yml(1) might have big impact and lead to performance issues, see #1298 (comment)
(2) is fixing the currently reported symptom instead of the root cause and we might receive more reports in the future.
The text was updated successfully, but these errors were encountered: