Adaptive Log Compression via Application-Specific Dictionaries
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing log compression methods are inefficient in reducing network traffic and computational load, especially in cloud and web-based applications, due to the lack of tailored compression dictionaries for specific application versions.
Innovation Solution
A computer-implemented method that receives a log stream from a remote computational system, searches for a current compression dictionary using an application identifier, and sends the dictionary to the remote system for compressing log streams, thereby optimizing compression based on the application's unique metadata.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Device complexity
If generic compression methods are used for all applications, then implementation complexity is reduced, but compression efficiency and network traffic reduction are worsened
Solution Approach 1:
The patent applies local quality by creating application-specific compression dictionaries tailored to each application's unique log format and structure. Instead of using a single generic compression method for all applications, the system generates and selects compression dictionaries that are optimized for each specific application's logging patterns, thereby maximizing compression efficiency for each application individually.
Solution Approach 2:
The system changes the compression parameters dynamically by selecting different compression dictionaries based on application identifiers. The compression method adapts its parameters (dictionary content, compression level) according to the specific application being processed, allowing optimal compression efficiency for each application while maintaining manageable system complexity through automated dictionary selection.
2Loss of energy
If application-specific compression dictionaries are created, then network traffic reduction is improved, but computational load and processing time are worsened
Solution Approach 1:
The system performs preliminary action by pre-generating and storing compression dictionaries in a library before they are needed for actual log compression. The dictionaries are created in advance based on application specifications or log sample analysis, and stored for rapid retrieval during runtime. This eliminates the need to compute compression dictionaries on-demand, significantly reducing computational load during log processing while maintaining application-specific optimization.
Solution Approach 2:
The patent uses copying by retrieving pre-computed compression dictionaries from a library rather than regenerating them. The system copies the appropriate dictionary from storage into memory for use during log compression, which is much faster and less computationally intensive than creating new dictionaries. This copying approach maintains application-specific compression optimization while minimizing real-time computational resources required.
3Productivity
If compression dictionaries are sent to remote systems, then compression efficiency is improved, but network overhead increases
Solution Approach 1:
The system extracts only the essential compression dictionary data needed for efficient log compression and transmits only this extracted information to remote systems. By separating the compression dictionary (which can be cached and reused) from the actual log data, the system minimizes network overhead. The dictionary is extracted, compressed efficiently, and then the compressed logs are transmitted, reducing the quantity of data sent over the network compared to sending uncompressed logs.
4Device complexity
If log compression is implemented without application identifiers, then system simplicity is maintained, but compression accuracy and adaptability are worsened
Solution Approach 1:
The system achieves universality by using application identifiers as a universal key to access the compression dictionary library. The same identifier-based lookup mechanism works for all applications regardless of their specific logging formats or versions. This universal approach maintains relative system simplicity while enabling high adaptability, as the system automatically adapts to different applications by simply changing the identifier used to retrieve the appropriate dictionary.
Data Source
AI summary
According to one embodiment, a method, computer system, and computer program product for log compression is provided. The embodiment comprises receiving a log stream from an instance of an application executed within a container of a remote computational system via a network connection. The log stream comprises metadata. The metadata comprises an application identifier. The application identifier uniquely identifies the executable code of the application. The embodiment further comprises searching a compression dictionary library for a current compression dictionary using the application identifier. The application identifier uniquely identifies the current compression dictionary for the application. The embodiment further comprises sending the current compression dictionary to the remote computational system via the network connection.


