From 27548befc83cf6ea755e950ea011865a8491f7c5 Mon Sep 17 00:00:00 2001 From: Miriam <31922082+MiriamAparicio@users.noreply.github.com> Date: Mon, 14 Oct 2024 22:49:52 +0100 Subject: [PATCH] [ObsUX][APM-Otel] Fix index pattern to accept otel indices, bump up version (#196164) Closes https://github.com/elastic/kibana/issues/195653 ### The problem The current service definition used by the transforms uses the`traces-apm*` indices and service.name as identifier fields, otel has `traces-*.otel-*` ### Solution Modify the definition of the index patterns to look for `traces*` We can see now otel service in the entities inventory image --- .../server/lib/entities/built_in/services_from_ecs_data.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/services_from_ecs_data.ts b/x-pack/plugins/entity_manager/server/lib/entities/built_in/services_from_ecs_data.ts index d6aa4d08ad221..37c8b0f854dc8 100644 --- a/x-pack/plugins/entity_manager/server/lib/entities/built_in/services_from_ecs_data.ts +++ b/x-pack/plugins/entity_manager/server/lib/entities/built_in/services_from_ecs_data.ts @@ -10,14 +10,14 @@ import { BUILT_IN_ID_PREFIX } from './constants'; export const builtInServicesFromEcsEntityDefinition: EntityDefinition = entityDefinitionSchema.parse({ - version: '0.4.0', + version: '0.5.0', id: `${BUILT_IN_ID_PREFIX}services_from_ecs_data`, name: 'Services from ECS data', description: 'This definition extracts service entities from common data streams by looking for the ECS field service.name', type: 'service', managed: true, - indexPatterns: ['logs-*', 'filebeat*', 'traces-apm*'], + indexPatterns: ['logs-*', 'filebeat*', 'traces-*'], latest: { timestampField: '@timestamp', lookbackPeriod: '10m',