Hi everyone,
I am currently tuning the cluster settings for the Security Analytics plugin to better manage the lifecycle and quantity of internal indices created for findings and alerts.
Based on my testing of the finding settings, I have confirmed the following behavior:
-
plugins.security_analytics.alert_finding_enabled: Whentrue, it generates the.opensearch-sap-<detector_type>-findings-<date>indices. -
plugins.security_analytics.alert_finding_max_docs: Controls the document count threshold for rolling over finding indices. -
plugins.security_analytics.alert_finding_rollover_period: Sets the frequency for the background job to check rollover conditions. -
plugins.security_analytics.finding_history_max_age: Defines the retention/timeframe for data within the findings history.
The Issue: While the documentation references plugins.security_analytics.alert_history_max_age and plugins.security_analytics.alert_history_max_docs, I am having difficulty locating the specific configuration syntax or confirming the relationship between them. Specifically:
-
Dependency Logic: The documentation suggests that if the alert count doesn’t exceed
alert_history_max_docs, a new index is created based on thealert_history_max_ageperiod. How do these two settings interact if both thresholds are reached simultaneously? -
Configuration Availability: Are these settings specifically for the Alert history indices (separate from Findings)? If so, what is the exact setting path to update them via the
_cluster/settingsAPI, as I have found some inconsistencies in the naming conventions between the docs and the actual plugin behavior.
Goal: My objective is to strictly control the number of indices generated for both Findings and Alerts to prevent index explosion in our cluster.
Suggestions for better understanding the **settings related to Findings and their use cases, as well as the settings related to Alerts and their use cases, are welcome. For reference, I will attach the document that I referred to Security Analytics settings - OpenSearch Documentation