diff --git a/x-pack/plugins/infra/public/components/alerting/logs/expression_editor/editor.tsx b/x-pack/plugins/infra/public/components/alerting/logs/expression_editor/editor.tsx index bc09c7de150ec..295e60552cce5 100644 --- a/x-pack/plugins/infra/public/components/alerting/logs/expression_editor/editor.tsx +++ b/x-pack/plugins/infra/public/components/alerting/logs/expression_editor/editor.tsx @@ -132,7 +132,7 @@ export const Editor: React.FC = (props) => { const supportedFields = useMemo(() => { if (sourceStatus?.logIndexFields) { return sourceStatus.logIndexFields.filter((field) => { - return field.type === 'string' || field.type === 'number'; + return (field.type === 'string' || field.type === 'number') && field.searchable; }); } else { return [];