diff --git a/x-pack/plugins/fleet/server/services/api_keys/logstash_api_keys.ts b/x-pack/plugins/fleet/server/services/api_keys/logstash_api_keys.ts index f072bf0777566..66888223b02d1 100644 --- a/x-pack/plugins/fleet/server/services/api_keys/logstash_api_keys.ts +++ b/x-pack/plugins/fleet/server/services/api_keys/logstash_api_keys.ts @@ -24,7 +24,8 @@ export async function canCreateLogstashApiKey(esClient: ElasticsearchClient) { 'synthetics-*-*', '.logs-endpoint.diagnostic.collection-*', '.logs-endpoint.action.responses-*', - 'profiling-*-*', + 'profiling-*', + '.profiling-*', ], privileges: ['auto_configure', 'create_doc'], }, @@ -59,7 +60,8 @@ export async function generateLogstashApiKey(esClient: ElasticsearchClient) { 'synthetics-*-*', '.logs-endpoint.diagnostic.collection-*', '.logs-endpoint.action.responses-*', - 'profiling-*-*', + 'profiling-*', + '.profiling-*', ], privileges: ['auto_configure', 'create_doc'], }, diff --git a/x-pack/plugins/fleet/server/services/data_streams.ts b/x-pack/plugins/fleet/server/services/data_streams.ts index 0cf7568c94772..6dd60a4e0be1e 100644 --- a/x-pack/plugins/fleet/server/services/data_streams.ts +++ b/x-pack/plugins/fleet/server/services/data_streams.ts @@ -8,7 +8,7 @@ import type { IndicesDataStream, IndicesIndexTemplate } from '@elastic/elasticsearch/lib/api/types'; import type { ElasticsearchClient } from '@kbn/core/server'; -const DATA_STREAM_INDEX_PATTERN = 'logs-*-*,metrics-*-*,traces-*-*,synthetics-*-*,profiling-*-*'; +const DATA_STREAM_INDEX_PATTERN = 'logs-*-*,metrics-*-*,traces-*-*,synthetics-*-*,profiling-*'; class DataStreamService { public async getAllFleetDataStreams(esClient: ElasticsearchClient) {