[eem] add service_summary to builtin service definition (#190240)

This commit is contained in:
Kevin Lacabane 2024-08-14 09:37:03 +02:00 committed by GitHub
parent e73f68867b
commit 5fd68e4147
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 4 deletions

View file

@ -20,14 +20,19 @@ const serviceTransactionFilter = (additionalFilters: string[] = []) => {
export const builtInServicesFromLogsEntityDefinition: EntityDefinition =
entityDefinitionSchema.parse({
version: '0.1.0',
version: '1.0.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*', 'metrics-apm.service_transaction.1m*'],
indexPatterns: [
'logs-*',
'filebeat*',
'metrics-apm.service_transaction.1m*',
'metrics-apm.service_summary.1m*',
],
history: {
timestampField: '@timestamp',
interval: '1m',

View file

@ -52,7 +52,7 @@ const assertHasCreatedDefinition = (
id: generateHistoryIngestPipelineId(builtInServicesFromLogsEntityDefinition),
processors: expect.anything(),
_meta: {
definitionVersion: '0.1.0',
definitionVersion: '1.0.0',
managed: true,
},
});
@ -60,7 +60,7 @@ const assertHasCreatedDefinition = (
id: generateLatestIngestPipelineId(builtInServicesFromLogsEntityDefinition),
processors: expect.anything(),
_meta: {
definitionVersion: '0.1.0',
definitionVersion: '1.0.0',
managed: true,
},
});