Skip to content

Commit bf316f3

Browse files
committed
[Logs] Restrict arrayOf size for logs sources field (#251561)
## Summary Update logs sources UI setting to impose a size limit. (cherry picked from commit 7e28a53)
1 parent 430b0dc commit bf316f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

x-pack/platform/plugins/shared/logs_data_access/common/ui_settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const uiSettings: Record<string, UiSettingsParams> = {
2626
'Sources to be used for logs data. If the data contained in these indices is not logs data, you may experience degraded functionality. Changes to this setting can potentially impact the sources queried in Log Threshold rules.',
2727
}),
2828
type: 'array',
29-
schema: schema.arrayOf(schema.string()),
29+
schema: schema.arrayOf(schema.string(), { maxSize: 1000 }),
3030
requiresPageReload: true,
3131
solutionViews: ['classic', 'oblt'],
3232
},

0 commit comments

Comments
 (0)