Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create search:search_excluded_data_tiers setting #192276

Closed
Show file tree
Hide file tree
Changes from 3 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
1 change: 1 addition & 0 deletions packages/kbn-data-service/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const UI_SETTINGS = {
COURIER_MAX_CONCURRENT_SHARD_REQUESTS: 'courier:maxConcurrentShardRequests',
SEARCH_INCLUDE_FROZEN: 'search:includeFrozen',
SEARCH_TIMEOUT: 'search:timeout',
SEARCH_EXCLUDED_DATA_TIERS: 'search:search_excluded_data_tiers',
HISTOGRAM_BAR_TARGET: 'histogram:barTarget',
HISTOGRAM_MAX_BARS: 'histogram:maxBars',
HISTORY_LIMIT: 'history:limit',
Expand Down
16 changes: 16 additions & 0 deletions src/plugins/data/server/ui_settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -579,5 +579,21 @@ export function getUiSettings(
schema: schema.number(),
requiresPageReload: true,
},
[UI_SETTINGS.SEARCH_EXCLUDED_DATA_TIERS]: {
name: i18n.translate('data.advancedSettings.searchExcludedDataTiers', {
defaultMessage: 'Excluded Data Tiers From Search',
crespocarlos marked this conversation as resolved.
Show resolved Hide resolved
}),
value: [],
description: i18n.translate('data.advancedSettings.searchExcludedDataTiersDesc', {
defaultMessage: `Specify the data tiers to exclude from search, such as data_cold and/or data_frozen.
When configured, indices allocated in the selected tiers will be ignored from search requests.`,
}),
type: 'array',
category: ['search'],
schema: schema.arrayOf(
schema.oneOf([schema.literal('data_cold'), schema.literal('data_frozen')])
),
requiresPageReload: false,
},
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,13 @@ export const stackManagementSchema: MakeSchemaFrom<UsageStats> = {
type: 'boolean',
_meta: { description: 'Non-default value of setting.' },
},
'search:search_excluded_data_tiers': {
type: 'array',
items: {
type: 'keyword',
_meta: { description: 'Non-default value of setting.' },
},
},
'courier:maxConcurrentShardRequests': {
type: 'long',
_meta: { description: 'Non-default value of setting.' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export interface UsageStats {
'securitySolution:excludeColdAndFrozenTiersInAnalyzer': boolean;
'securitySolution:enableCcsWarning': boolean;
'search:includeFrozen': boolean;
'search:search_excluded_data_tiers': string[];
'courier:maxConcurrentShardRequests': number;
'courier:setRequestPreference': string;
'courier:customRequestPreference': string;
Expand Down
9 changes: 9 additions & 0 deletions src/plugins/telemetry/schema/oss_plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -9794,6 +9794,15 @@
"description": "Non-default value of setting."
}
},
"search:search_excluded_data_tiers": {
"type": "array",
"items": {
"type": "keyword",
"_meta": {
"description": "Non-default value of setting."
}
}
},
"courier:maxConcurrentShardRequests": {
"type": "long",
"_meta": {
Expand Down