You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'This rule is attempting to query data from Elasticsearch indices listed in the "Index pattern" section of the rule definition, however no index matching: ["logs-endpoint.alerts-*"] was found. This warning will continue to appear until a matching index is created or this rule is de-activated. If you have recently enrolled agents enabled with Endpoint Security through Fleet, this warning should stop once an alert is sent from an agent. name: "fake name" id: "fake id" rule id: "fake rule id" signals index: "fakeindex"'
895
+
);
896
+
expect(res).toBeTruthy();
897
+
});
898
+
899
+
test('returns true when missing logs-endpoint.alerts-* index and rule name is NOT Endpoint Security',async()=>{
'This rule is attempting to query data from Elasticsearch indices listed in the "Index pattern" section of the rule definition, however no index matching: ["logs-endpoint.alerts-*"] was found. This warning will continue to appear until a matching index is created or this rule is de-activated. name: "fake name" id: "fake id" rule id: "fake rule id" signals index: "fakeindex"'
consterrorString=`The following index patterns did not match any indices: ${JSON.stringify(
119
+
consterrorString=`This rule is attempting to query data from Elasticsearch indices listed in the "Index pattern" section of the rule definition, however no index matching: ${JSON.stringify(
119
120
inputIndices
120
-
)}`;
121
-
logger.error(buildRuleMessage(errorString));
122
-
awaitruleStatusService.warning(errorString);
121
+
)} was found. This warning will continue to appear until a matching index is created or this rule is de-activated. ${
122
+
ruleName==='Endpoint Security'
123
+
? 'If you have recently enrolled agents enabled with Endpoint Security through Fleet, this warning should stop once an alert is sent from an agent.'
0 commit comments