Skip to content

Commit 502f69e

Browse files
Add 120-day default retention period notes for ML jobs in log anomalies and log categories
Co-authored-by: florent-leborgne <[email protected]>
1 parent 9322ab2 commit 502f69e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

solutions/observability/logs/categorize-log-entries.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ Create a {{ml}} job to categorize log messages automatically. {{ml-cap}} observe
2727
3. Add the indices that contain the logs you want to examine. By default, Machine Learning analyzes messages in all log indices that match the patterns set in the **logs sources** advanced setting. To open **Advanced settings**, find it in the navigation menu or by using the [global search field](/explore-analyze/find-and-organize/find-apps-and-objects.md).
2828
4. Click **Create ML job**. This creates and runs the job. It takes a few minutes for the {{ml}} robots to collect the necessary data. After the job has processed the data, you can view its results.
2929

30+
::::{note}
31+
The {{ml}} job created for log categories has a default retention period of 120 days for results. This means that categorization results older than 120 days are automatically deleted to save storage space. You can change this retention period by modifying the `results_retention_days` setting for the job.
32+
::::
33+
3034

3135
## Analyze log categories [analyze-log-categories]
3236

solutions/observability/logs/inspect-log-anomalies.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ Create a {{ml}} job to detect anomalous log entry rates automatically.
3232
3. Add the indices that contain the logs you want to examine. By default, Machine Learning analyzes messages in all log indices that match the patterns set in the **logs source** advanced setting. To open **Advanced settings**, find it in the navigation menu or by using the [global search field](/explore-analyze/find-and-organize/find-apps-and-objects.md).
3333
4. Click **Create ML job**. This creates and runs the job. It takes a few minutes for the {{ml}} robots to collect the necessary data. After the job has processed the data, you can view its results.
3434

35+
::::{note}
36+
The {{ml}} job created for log anomalies has a default retention period of 120 days for results. This means that anomaly detection results older than 120 days are automatically deleted to save storage space. You can change this retention period by modifying the `results_retention_days` setting for the job.
37+
::::
38+
3539
## Anomalies chart [anomalies-chart]
3640

3741
The Anomalies chart shows an overall, color-coded visualization of the log entry rate, partitioned according to the value of the Elastic Common Schema (ECS) [`event.dataset`](ecs://reference/ecs-event.md) field. This chart helps you quickly spot increases or decreases in each partition’s log rate.

0 commit comments

Comments
 (0)