LogShrink:利用日志数据的共性与可变性实现高效日志压缩
LogShrink: Effective Log Compression by Leveraging Commonality and Variability of Log Data
AI总结:
本文提出LogShrink日志压缩方法,通过最长公共子序列与熵技术识别日志共性和可变性,并利用聚类采样加速分析,实验显示压缩比平均超越基线16%至356%。
摘要:
日志数据是记录系统执行过程中系统事件和状态的关键资源。然而,随着系统规模的增长,日志数据的生成变得越来越爆炸性,导致日志存储开销高昂,例如在生产环境中每天可达数PB。为了解决这一问题,日志压缩已成为减少磁盘存储并支持进一步日志分析的关键任务。遗憾的是,现有的通用压缩方法和日志专用压缩方法在利用日志数据特性方面能力有限。为了克服这些局限,我们开展了一项实证研究,并获得了关于日志数据特性的三个主要观察结果,这些特性有助于日志压缩任务。基于这些观察结果,我们提出了LogShrink,一种利用日志数据的共性与可变性的新颖且高效的日志压缩方法。我们提出了一种基于最长公共子序列和熵技术的分析器,用于识别日志消息中潜在的共性和可变性。其核心思想在于,可以利用共性和可变性以更短的表示来压缩日志数据。此外,还引入了一种基于聚类的序列采样器,以加速共性与可变性分析器。大量实验结果表明,LogShrink在压缩比上平均可超过基线方法16%至356%,同时保持合理的压缩速度。
英文摘要:
Log data is a crucial resource for recording system events and states during system execution. However, as systems grow in scale, log data generation has become increasingly explosive, leading to an expensive overhead on log storage, such as several petabytes per day in production. To address this issue, log compression has become a crucial task in reducing disk storage while allowing for further log analysis. Unfortunately, existing general-purpose and log-specific compression methods have been limited in their ability to utilize log data characteristics. To overcome these limitations, we conduct an empirical study and obtain three major observations on the characteristics of log data that can facilitate the log compression task. Based on these observations, we propose LogShrink, a novel and effective log compression method by leveraging commonality and variability of log data. An analyzer based on longest common subsequence and entropy techniques is proposed to identify the latent commonality and variability in log messages. The key idea behind this is that the commonality and variability can be exploited to shrink log data with a shorter representation. Besides, a clustering-based sequence sampler is introduced to accelerate the commonality and variability analyzer. The extensive experimental results demonstrate that LogShrink can exceed baselines in compression ratio by 16% to 356% on average while preserving a reasonable compression speed.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。