Intelligent Log Retention for Microservices Applications

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current backup systems for microservices applications lack the ability to intelligently retain and analyze logs, leading to a high probability of losing critical failure logs due to traditional log deletion mechanisms based on aging or simple factors, which can result in missed failure patterns and increased frustration and cost for users.

Innovation Solution

An intelligent log retention process that dynamically adjusts retention based on operation success or failure rates, using a log analytical engine to assign weights for additional retention time for failed operations and balance storage space with analysis needs, while purging successful logs to maintain disk space.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of substance

If traditional log deletion mechanisms based on aging are used, then storage space is optimized, but critical failure logs are lost with high probability

Engineering Contradiction:
Improvestorage spaceVSAvoidlog retention reliability
Core Design Contradiction:
Loss of substanceVSReliability

Solution Approach 1:

The system dynamically changes the retention parameter of logs based on their content and context. Instead of using a fixed aging policy, the log analytical engine analyzes log entries and assigns different retention durations to different logs. Critical failure logs are identified through pattern matching and anomaly detection, then assigned extended retention periods while successful operation logs are deleted after standard retention periods, thus optimizing both storage space and reliability.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The log analytical engine continuously monitors log patterns and provides feedback to the log retention mechanism. When failure patterns are detected through analysis, the system adjusts retention policies in real-time to preserve relevant logs. The system learns from historical failure patterns and improves its ability to identify and retain critical logs, creating a closed-loop feedback system that enhances both storage efficiency and failure analysis capability.

Inventive Principle:
Principle #23Feedback

2Reliability

If all logs are retained for extended periods, then failure analysis capability is improved, but storage space is wasted

Engineering Contradiction:
Improvefailure analysis capabilityVSAvoidstorage space
Core Design Contradiction:
ReliabilityVSLoss of substance

Solution Approach 1:

The system applies different retention qualities to different log entries based on their local characteristics. Instead of uniformly retaining all logs, the log analytical engine evaluates each log entry individually or in groups, identifying those with failure patterns, anomalies, or critical information. These high-value logs are retained for extended periods while normal successful operation logs are deleted after standard retention periods, thus improving failure analysis capability without wasting storage space on redundant logs.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The retention duration parameter is dynamically changed based on log content analysis. The system transitions from a static retention policy to a dynamic one where the retention period is adjusted according to the identified value of each log entry. Critical logs receive extended retention parameters while less important logs follow standard deletion schedules, optimizing the balance between analysis capability and storage consumption.

Inventive Principle:
Principle #35Parameter changes

3Device complexity

If simple aging-based log deletion is used, then system complexity is reduced, but failure pattern identification capability is lost

Engineering Contradiction:
Improvelog management complexityVSAvoidfailure pattern information
Core Design Contradiction:
Device complexityVSLoss of information

Solution Approach 1:

The log management system performs self-service through automated analysis and classification. The log analytical engine automatically processes log entries, identifies failure patterns using machine learning and anomaly detection algorithms, and makes autonomous decisions about log retention without requiring manual configuration or intervention. This self-service capability enables sophisticated failure pattern identification while keeping the user-facing system complexity low, as users simply enable the feature without needing to configure complex parameters.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system performs preliminary analysis of log patterns continuously in the background before failures occur. By pre-processing and analyzing log data streams, the system builds knowledge bases of failure patterns and anomalies that can be quickly queried when failures occur. This preliminary action enables the system to identify and retain relevant logs proactively, rather than reacting after failures have occurred and logs have been deleted by simple aging mechanisms.

Inventive Principle:
Principle #10Preliminary action

4Ease of operation

If logs are deleted based on fixed retention policies, then storage management is simplified, but intermittent failures cannot be investigated

Engineering Contradiction:
Improvestorage management easeVSAvoidinvestigation time
Core Design Contradiction:
Ease of operationVSLoss of time

Solution Approach 1:

The log retention policy transitions from a static fixed schedule to a dynamic adaptive policy. The system continuously monitors operation status and dynamically adjusts retention periods based on real-time conditions. When intermittent failures or anomalies are detected, the system automatically extends retention for related logs beyond the standard schedule. This dynamic approach maintains simple storage management through automated policies while ensuring logs are available for investigating intermittent failures that occur unpredictably.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS12093122B2Intelligent log analysis and retention for microservices applications
Publication Date: 2024.09.17 DELL PROD LP
  • US12093122B2 patent drawing
  • US12093122B2 patent drawing
  • US12093122B2 patent drawing

AI summary

Embodiments for an intelligent log analysis and retention for microservices applications. Such log analysis is helpful in troubleshooting failure conditions that may occur intermittently or repeatedly within a microservices environment. Executed operations by microservices, applications, or components generate logs, and these logs are classified based on certain parameters. A default log retention period defines how long the logs are stored in the system, and a log analytical engine determines and assigns weights constituting additional retention time to keep logs for failed operations. These logs can then be analyzed to determine causes of the failure, and build failure models to predict future failure conditions. Logs for successful operations can be timely deleted to save storage space.