Skip to content

Commit

Permalink
[ObsUX][APM-Otel] Fix index pattern to accept otel indices, bump up v…
Browse files Browse the repository at this point in the history
…ersion (#196164)

Closes #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

<img width="1913" alt="image"
src="https://github.com/user-attachments/assets/eab63982-0ab3-4b0f-8557-93e96653630f">
  • Loading branch information
MiriamAparicio authored Oct 14, 2024
1 parent f7b808c commit 27548be
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 27548be

Please sign in to comment.