Loading full navigation.

You can view LogPatterns from the Logs page, Alerts, the Logs tab for resources and resource groups, and supported Log Query widgets. Use LogPatterns to group log entries with similar structures and investigate recurring or unusual log activity.

For information about the fields and parameterized values available in LogPattern results, see LogPattern Results.

LogPattern Queries for JSON Logs

When you use the patterns operator with JSON logs, the operator evaluates a single string field. It does not evaluate an entire JSON object or nested keys. To identify patterns for a specific JSON attribute, you must first extract the attribute into a string field.

After extracting the attribute, apply the patterns operator to the extracted field.

For example: | patterns extracted_field

Requirements for Accessing LogPatterns

To use LogPatterns, you need an active Logs subscription or trial SKU.

Viewing LogPatterns from the Logs Page

Use the Logs page to view patterns across log data that matches your query and selected time range.

LogPattern results are limited to 20,000 log entries. If the results exceed this limit, refine the search filters or select a smaller time range.

To view LogPatterns from the Logs page, do the following:

  1. In LogicMonitor, navigate to Logs.
  2. Run a patterns query. For example: * | patterns
    If you want to identify patterns for an attribute in JSON logs, see LogPattern Queries for JSON Logs.
  3. Select the Aggregate tab.
    LogicMonitor displays the LogPatterns for the log entries that match the query.
  4. In the Pattern column, select an emphasized parameterized patterns placeholer placeholder to view the parameterized values associated with that placeholder.
    Viewing LogPatterns from the Logs Aggregate Page

LogicMonitor displays the most and least frequently occurring values for the selected parameter. You can use these values to investigate variations within log entries that match the pattern.

For information about the pattern fields and parameterized values, see LogPattern Results.

Viewing LogPatterns from Alerts Page

You can access LogPatterns from Alerts page, enabling you to view log patterns directly in the context of a single alert. Additionally, you can use the Compare functionality to evaluate how log patterns change for that alert across different time ranges, helping you identify meaningful shifts in log behavior.

Note: Results are limited to 20,000 log entries. By default, the time range includes one minute before and one minute after the alert.

To view LogPatterns from Alerts page, do the following:

  1. In LogicMonitor, navigate to Alerts, and select the alert that you want to investigate.
  2. Select the Logs tab.
  3. Toggle the Show LogPatterns switch.LogicMonitor displays the logs as patterns.
  4. In the Pattern column, select an emphasized parameterized patterns placeholer placeholder to view the parameterized values associated with that placeholder.
    For information about the pattern fields and parameterized values, see LogPattern Results.
    Viewing LogPatterns on Alerts page

    Alerts page top 10 values for parameterized patterns

Important: You can use the Compare functionality to evaluate the log pattern changes only when the Show LogPatterns toggle is enabled.

  1. To compare LogPatterns, select Compare and do the following:
    1. In the Compare Patterns dialog box, select the Second Time Period.
    2. Select one of the available time periods, or select Custom range to specify a time range
  2. (Optional) If you select Custom range, choose a start date and end date, then apply the selection.
    For a custom range, the start time must be earlier than the end time.
    Compare Patterns Time period modal
    LogicMonitor compares the patterns from the two time ranges.

    Review the updated comparison results in the table. After comparison, LogicMonitor updates the table with additional columns that describe how each pattern changed between the two time periods.
    Compare Logpatterns for Alerts

    Pattern Type values are determined as follows:
    • Increase — CompareCount is greater than Count
    • Drop — CompareCount is less than Count
    • Missing — Count is greater than 0 and CompareCount equals 0
    • New — Count equals 0 and CompareCount is greater than 0
    • NoChange — Count equals CompareCount

Viewing LogPatterns from Resources Page

  1. In LogicMonitor, go to Resource Tree, and select the resource or resource group you want.
  2. From the Resource details panel, select the Logs tab.
  3. Toggle the Show LogPatterns switch to view logs in patterns.
    Viewing LogPatterns from Resources Tree
  4. In the Pattern column, select an emphasized parameterized patterns placeholer placeholder to view the parameterized values associated with that placeholder.
    LogicMonitor displays up to 10 of the most frequently occurring values and up to 10 of the least frequently occurring values associated with the selected placeholder.
    Resources LogPatterns top 10 values
  5. To investigate the log entries associated with a pattern, select More, and then select Query profile.
    LogicMonitor displays the selected query in a new window.

You can use the parameterized values to investigate variations within the log entries that match the pattern.

For information about the pattern fields and parameterized values, see LogPattern Results.

Viewing LogPatterns in a Log Query Widget

  1. In LogicMonitor, navigate to Dashboards.
  2. Create a Log Query widget.For more information, see Log Query Widget.
  3. In Logs data type, select Aggregate.
  4. In the Log Query field, enter a patterns query.
    For example: * | patterns
  5. Set the widget view to Table.

Recommendation: Use the table view to make LogPattern results easier to review.

  1. Configure the remaining widget settings as needed, and select Save.
    The widget displays the LogPattern results on the dashboard.
  2. In the Pattern column, select an emphasized parameterized patterns placeholer placeholder to view the parameterized values associated with that placeholder.
    Widget LogPatterns top 10 values occurence

For information about the fields and parameterized values available in LogPattern results, see LogPattern Results.

14-day access to the full LogicMonitor platform