Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
},
Expand Down Expand Up @@ -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'],
},
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/fleet/server/services/data_streams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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-*';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, this pattern is used to query for data streams so that they show in Fleet > Data streams

do you know if this is something profiling wants? if profiling data streams/indices should be viewed and managed elsewhere, maybe we need to remove it here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far we considered this OK. But trying to get more opinions from the team...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, glad that it was considered already. this is an easy change to make down the road


class DataStreamService {
public async getAllFleetDataStreams(esClient: ElasticsearchClient) {
Expand Down