Skip to content

Commit bbdeaeb

Browse files
authored
[Observability] Add logs anomalies and categorization to serverless (#2625)
1 parent 68bee8b commit bbdeaeb

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed
-399 KB
Loading
-150 KB
Loading

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
mapped_pages:
33
- https://www.elastic.co/guide/en/observability/current/categorize-logs.html
44
applies_to:
5-
stack: all
5+
stack: ga
6+
serverless: ga
67
products:
78
- id: observability
89
---
@@ -17,16 +18,14 @@ The **Categories** page enables you to identify patterns in your log events quic
1718
This feature makes use of {{ml}} {{anomaly-jobs}}. To set up jobs, you must have `all` {{kib}} feature privileges for **{{ml-app}}**. Users that have full or read-only access to {{ml-features}} within a {{kib}} space can view the results of *all* {{anomaly-jobs}} that are visible in that space, even if they do not have access to the source indices of those jobs. You must carefully consider who is given access to {{ml-features}}; {{anomaly-job}} results may propagate field values that contain sensitive information from the source indices to the results. For more details, refer to [Set up {{ml-features}}](/explore-analyze/machine-learning/setting-up-machine-learning.md).
1819
::::
1920

20-
21-
2221
## Create log categories [create-log-categories]
2322

2423
Create a {{ml}} job to categorize log messages automatically. {{ml-cap}} observes the static parts of the message, clusters similar messages, classifies them into message categories, and detects unusually high message counts in the categories.
2524

2625
1. Open the **Categories** page by finding `Logs / Categories` in the [global search field](/explore-analyze/find-and-organize/find-apps-and-objects.md). You are prompted to use {{ml}} to create log rate categorizations.
2726
2. Choose a time range for the {{ml}} analysis. By default, the {{ml}} job analyzes log messages no older than four weeks and continues indefinitely.
2827
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 **Stack Management** in the main menu or use the [global search field](/explore-analyze/find-and-organize/find-apps-and-objects.md).
29-
4. Click **Create ML job**. The job is created, and it starts to run. It takes a few minutes for the {{ml}} robots to collect the necessary data. After the job processed the data, you can view the results.
28+
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.
3029

3130

3231
## Analyze log categories [analyze-log-categories]
@@ -46,7 +45,7 @@ The category row contains the following information:
4645
* datasets: the name of the datasets where the categories are present.
4746
* maximum anomaly score: the highest anomaly score in the category.
4847

49-
To view a log message under a particular category, click the arrow at the end of the row. To further examine a message, it can be viewed in the corresponding log event on the **Stream** page or displayed in its context.
48+
To view a log message for a particular category, click the arrow at the end of the row. To further examine it, click **View in Discover** or **View in context**
5049

5150
:::{image} /solutions/images/observability-log-opened.png
5251
:alt: Opened log category

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
mapped_pages:
33
- https://www.elastic.co/guide/en/observability/current/inspect-log-anomalies.html
44
applies_to:
5-
stack: all
5+
stack: ga
6+
serverless: ga
67
products:
78
- id: observability
89
---
@@ -22,18 +23,14 @@ You can also view log anomalies directly in the [{{ml-app}} app](/explore-analyz
2223
This feature makes use of {{ml}} {{anomaly-jobs}}. To set up jobs, you must have `all` {{kib}} feature privileges for **{{ml-app}}**. Users that have full or read-only access to {{ml-features}} within a {{kib}} space can view the results of *all* {{anomaly-jobs}} that are visible in that space, even if they do not have access to the source indices of those jobs. You must carefully consider who is given access to {{ml-features}}; {{anomaly-job}} results may propagate field values that contain sensitive information from the source indices to the results. For more details, refer to [Set up {{ml-features}}](/explore-analyze/machine-learning/setting-up-machine-learning.md).
2324
::::
2425

25-
26-
2726
## Enable log rate analysis and {{anomaly-detect}} [enable-anomaly-detection]
2827

2928
Create a {{ml}} job to detect anomalous log entry rates automatically.
3029

31-
1. Select **Anomalies**, and you’ll be prompted to create a {{ml}} job which will carry out the log rate analysis.
30+
1. From the main menu, go to **Other tools****Logs Anomalies**, or find `Logs anomalies` in the [global search field](/explore-analyze/find-and-organize/find-apps-and-objects.md). From here, you’ll be prompted to create a {{ml}} job which will carry out the log rate analysis.
3231
2. Choose a time range for the {{ml}} analysis.
3332
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 **Stack Management** in the main menu or use the [global search field](/explore-analyze/find-and-organize/find-apps-and-objects.md).
34-
4. Click **Create {{ml-init}} job**.
35-
5. You’re now ready to explore your log partitions.
36-
33+
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.
3734

3835
## Anomalies chart [anomalies-chart]
3936

0 commit comments

Comments
 (0)