用于日志分析的正则表达式索引。扩展版本
Regular Expression Indexing for Log Analysis. Extended Version
AI总结:
本文提出了REI,一种用于日志数据正则表达式查询的新型索引系统,其基于$n$-gram的索引策略和高效存储机制仅用2.1%额外空间即实现高达14倍加速,且模块化设计易于部署。
摘要:
在本文中,我们提出了REI的设计与架构,这是一种用于对正则表达式查询的日志数据进行索引的新型系统。我们的主要贡献是一种基于$n$-gram的索引策略和高效的存储机制,与不使用索引的最先进regex处理引擎相比,该机制仅使用2.1%的额外空间即可实现高达14倍的加速。我们进行了详细的研究,分析了索引的空间使用情况和工作负载执行时间的改善,揭示了一些有趣的见解。具体而言,我们表明,即使是倒排索引等在文本处理库中被广泛使用的策略的优化实现,在日志分析任务的正则表达式索引上也可能导致次优性能。总体而言,本文提出的REI方法在评估日志数据上的正则表达式查询时提供了显著的提升。REI也是模块化的,可以与现有的正则表达式包一起工作,使其易于在各种环境中部署。REI的代码可在https://github.com/mush-zhang/REI-Regular-Expression-Indexing获取。
英文摘要:
In this paper, we present the design and architecture of REI, a novel system for indexing log data for regular expression queries. Our main contribution is an $n$-gram-based indexing strategy and an efficient storage mechanism that results in a speedup of up to 14x compared to state-of-the-art regex processing engines that do not use indexing, using only 2.1% of extra space. We perform a detailed study that analyzes the space usage of the index and the improvement in workload execution time, uncovering interesting insights. Specifically, we show that even an optimized implementation of strategies such as inverted indexing, which are widely used in text processing libraries, may lead to suboptimal performance for regex indexing on log analysis tasks. Overall, the REI approach presented in this paper provides a significant boost when evaluating regular expression queries on log data. REI is also modular and can work with existing regular expression packages, making it easy to deploy in a variety of settings. The code of REI is available at https://github.com/mush-zhang/REI-Regular-Expression-Indexing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。