Changes log level from info to debug from user complaints about logs filling up (#116518)
## Summary Changes detections log level from info to debug within the detection engine. Users have been complaining about their log files filling up in excessive size from when they have noisy rules or if they have a large amount of rules enabled.
This commit is contained in:
parent
7c73e227eb
commit
83fe1dd90a
|
@ -302,7 +302,7 @@ export const createSecurityRuleTypeWrapper: CreateSecurityRuleTypeWrapper =
|
|||
?.kibana_siem_app_url,
|
||||
});
|
||||
|
||||
logger.info(
|
||||
logger.debug(
|
||||
buildRuleMessage(`Found ${createdSignalsCount} signals for notification.`)
|
||||
);
|
||||
|
||||
|
@ -353,8 +353,7 @@ export const createSecurityRuleTypeWrapper: CreateSecurityRuleTypeWrapper =
|
|||
});
|
||||
}
|
||||
|
||||
// adding this log line so we can get some information from cloud
|
||||
logger.info(
|
||||
logger.debug(
|
||||
buildRuleMessage(
|
||||
`[+] Finished indexing ${createdSignalsCount} ${
|
||||
!isEmpty(tuples)
|
||||
|
|
|
@ -104,7 +104,7 @@ export const mlExecutor = async ({
|
|||
|
||||
const anomalyCount = filteredAnomalyResults.hits.hits.length;
|
||||
if (anomalyCount) {
|
||||
logger.info(buildRuleMessage(`Found ${anomalyCount} signals from ML anomalies.`));
|
||||
logger.debug(buildRuleMessage(`Found ${anomalyCount} signals from ML anomalies.`));
|
||||
}
|
||||
const { success, errors, bulkCreateDuration, createdItemsCount, createdItems } =
|
||||
await bulkCreateMlSignals({
|
||||
|
|
|
@ -426,7 +426,7 @@ export const signalRulesAlertType = ({
|
|||
?.kibana_siem_app_url,
|
||||
});
|
||||
|
||||
logger.info(
|
||||
logger.debug(
|
||||
buildRuleMessage(`Found ${result.createdSignalsCount} signals for notification.`)
|
||||
);
|
||||
|
||||
|
@ -478,8 +478,7 @@ export const signalRulesAlertType = ({
|
|||
});
|
||||
}
|
||||
|
||||
// adding this log line so we can get some information from cloud
|
||||
logger.info(
|
||||
logger.debug(
|
||||
buildRuleMessage(
|
||||
`[+] Finished indexing ${result.createdSignalsCount} ${
|
||||
!isEmpty(tuples)
|
||||
|
|
Loading…
Reference in a new issue