Exploring Log Analytics
Log analytics enables you to explore and visualize metrics derived from your log data through filtering and aggregation. You can apply filters to narrow your dataset, then generate charts based on log counts or other metrics using facet selectors and aggregation functions. This feature helps you identify patterns and trends within your logs for analysis and troubleshooting.
Add log filters
Add any log filters as described in the Log Search View to filter down logs for charting
Explore count-based log metrics
-
Choose
count_log_eventsfromthe log facet selector. -
Choose number as the normalization function.
-
Choose
rateorcount_over_timeas the Range/time aggregation function. -
Click Generate chart to chart the count-based metric.
Explore facet log metrics
-
Choose the log facet from the log facet selector.
-
Choose one of
number,bytes, ordurationas the function to normalize the facet value. -
Choose
countto count the number of times the log facet appears in thetime-step. -
Choose one of the log facet-based range aggregation functions.
-
Click Generate chart.
Metric aggregations
To work with metrics, you must often aggregate them. Aggregations consist of the aggregation, a specified grouping, a limit, and the step size.
-
Aggregation:
In the
(Show) clause of your query, the aggregation is
(
count unique of).Select either a label or a facet from the drop-down.
-
Grouping:
In the
(by) clause, select the grouping from the drop-down: either Everything, or one of the labels or facets.
-
Limit:
In the
(limit to) close, specify either
(top, default) or
(bottom) limit, and then select the appropriate number from the drop-down (default is 10).
-
Step size:
In the
(roll up every) clause, specify the size of the time step by selecting from the drop-down.
This value determines the incremental aggregations of the plot. For example, it specifies the width of the bar in bar charts.
The default values and possible choices change depending on the overall interval of the chart; see Interval.