Adaptive Log Analysis for Real-Time Error Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current log analysis systems lack the ability to efficiently identify and report real-time errors and issues in complex computing systems with hierarchical structures, as they struggle to extract meaningful patterns from repetitive and variable log messages.

Innovation Solution

A log analyzer that identifies static and variable portions of log messages using a dictionary of meaningful words and co-occurring word lists, generates templates, computes metrics based on log message frequency, and updates templates incrementally to detect system issues and report status effectively.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If traditional log analysis systems process log messages, then they can record system events, but they cannot efficiently identify real-time errors and meaningful patterns from repetitive log messages

Engineering Contradiction:
Improveerror detection accuracyVSAvoidlog analysis efficiency
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The log analysis system segments log messages into structured components including timestamp, log level, component, and message content. This segmentation enables precise error detection by analyzing specific fields while improving processing efficiency through standardized parsing routines.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system extracts meaningful patterns and error indicators from repetitive log messages by identifying key fields and anomalies. Error patterns are extracted and aggregated separately from normal operational logs, enabling efficient real-time error detection without processing entire log volumes.

Inventive Principle:
Principle #2Taking out (Extraction)

2Measurement precision

If the log analyzer processes all log messages in detail, then it can identify errors accurately, but it increases processing time and computational resources

Engineering Contradiction:
Improveerror identification accuracyVSAvoidprocessing time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The log analyzer applies partial processing by focusing only on critical fields and error-indicative patterns rather than analyzing every character of each log message. This selective approach maintains error identification accuracy while significantly reducing processing time and computational overhead.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The system skips detailed analysis of normal operational logs that match known benign patterns, rushing through these with minimal processing. Only logs exhibiting error characteristics trigger detailed analysis, enabling fast processing of high-volume logs while maintaining accurate error detection.

Inventive Principle:
Principle #21Skipping (Rushing through)

3Productivity

If the system uses a fixed template for log analysis, then processing is fast, but it cannot adapt to new error patterns or system changes

Engineering Contradiction:
Improveprocessing speedVSAvoidtemplate adaptability
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The log analysis system employs dynamic templates that automatically adapt to new log formats and error patterns. Templates are updated based on learned patterns from incoming logs, allowing the system to maintain high processing speeds while becoming increasingly adaptable to new error types and system configurations.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system incorporates feedback mechanisms where analysis results from processed logs feed back into template refinement. New error patterns detected in the logs trigger template updates, creating a self-improving system that maintains processing speed while continuously adapting to new scenarios.

Inventive Principle:
Principle #23Feedback

4Loss of information

If the log analyzer stores and processes all log messages, then it has complete data for analysis, but it increases memory usage and storage requirements

Engineering Contradiction:
Improvedata completenessVSAvoidmemory usage
Core Design Contradiction:
Loss of informationVSQuantity of substance

Solution Approach 1:

The system extracts only essential information from log messages for storage and analysis, such as error patterns, frequency counts, and key metadata. Complete log messages are processed in-stream without being fully stored, maintaining analytical completeness while minimizing memory and storage requirements.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The log analyzer discards processed log messages after extracting relevant patterns and metrics. Temporary data structures hold only aggregated statistics and current error states during processing, recovering and releasing memory continuously to maintain low resource usage while preserving essential analysis information.

Inventive Principle:
Principle #34Discarding and recovering

Data Source

PatentUS11366712B1Adaptive log analysis
Publication Date: 2022.06.21 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11366712B1 patent drawing
  • US11366712B1 patent drawing
  • US11366712B1 patent drawing

AI summary

A method for obtaining information and status about a monitored system by adaptively analyzing log messages is provided. A log analyzer receives log messages generated by a monitored system. The log analyzer identifies static and variable portions in the received log messages. The log analyzer generates a template based on the identified static and variable portions of the received log messages. The log analyzer computes a metric for the generated template based on a number of log messages that fall within the template. The log analyzer reports a status in the monitored system based on the computed metric.