Analyze log spikes and drops
editAnalyze log spikes and drops
edit[preview] This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
Observability provides built-in log rate analysis capabilities, based on advanced statistical methods, to help you find and investigate the causes of unusual spikes or drops in log rates.
To analyze log spikes and drops:
- In your Observability project, go to AIOps → Log rate analysis.
- Choose a data view or saved search to access the log data you want to analyze.
-
In the histogram chart, click a spike (or drop) to start the analysis.
When the analysis runs, it identifies statistically significant field-value combinations that contribute to the spike or drop, and then displays them in a table:
Notice that you can optionally turn on Smart grouping to summarize the results into groups. You can also click Filter fields to remove fields that are not relevant.
The table shows an indicator of the level of impact and a sparkline showing the shape of the impact in the chart.
- Select a row to display the impact of the field on the histogram chart.
- From the Actions menu in the table, you can choose to view the field in Discover, view it in Log Pattern Analysis, or copy the table row information to the clipboard as a query filter.
To pin a table row, click the row, then move the cursor to the histogram chart. It displays a tooltip with exact count values for the pinned field which enables closer investigation.
Brushes in the chart show the baseline time range and the deviation in the analyzed data. You can move the brushes to redefine both the baseline and the deviation and rerun the analysis with the modified values.
Log pattern analysis
editUse log pattern analysis to find patterns in unstructured log messages and examine your data. When you run a log pattern analysis, it performs categorization analysis on a selected field, creates categories based on the data, and then displays them together in a chart. The chart shows the distribution of each category and an example document that matches the category. Log pattern analysis is useful when you want to examine how often different types of logs appear in your data set. It also helps you group logs in ways that go beyond what you can achieve with a terms aggregation.
To run log pattern analysis:
- Follow the steps under Analyze log spikes and drops to run a log rate analysis.
- From the Actions menu, choose View in Log Pattern Analysis.
- Select a category field and optionally apply any filters that you want.
-
Click Run pattern analysis.
The results of the analysis are shown in a table:
- From the Actions menu, click the plus (or minus) icon to open Discover and show (or filter out) the given category there, which helps you to further examine your log messages.