AI Chat Paper
Note: Please note that the following content is generated by AMiner AI. SciOpen does not take any responsibility related to this content.
{{lang === 'zh_CN' ? '文章概述' : 'Summary'}}
{{lang === 'en_US' ? '中' : 'Eng'}}
Chat more with AI
Article Link
Collect
Submit Manuscript
Show Outline
Outline
Show full outline
Hide outline
Outline
Show full outline
Hide outline
Regular Paper

Cognition: Accurate and Consistent Linear Log Parsing Using Template Correction

University of Chinese Academy of Sciences, Beijing 100049, China
Institute of Computing Technology, Chinese Academy of Sciences, Beijing 100190, China
Purple Mountain Laboratories, Nanjing 211111, China
Computer Network Information Center, Chinese Academy of Sciences, Beijing 100083, China
Show Author Information

Abstract

Logs contain runtime information for both systems and users. As many of them use natural language, a typical log-based analysis needs to parse logs into the structured format first. Existing parsing approaches often take two steps. The first step is to find similar words (tokens) or sentences. Second, parsers extract log templates by replacing different tokens with variable placeholders. However, we observe that most parsers concentrate on precisely grouping similar tokens or logs. But they do not have a well-designed template extraction process, which leads to inconsistent accuracy on particular datasets. The root cause is the ambiguous definition of variable placeholders and similar templates. The consequences include abuse of variable placeholders, incorrectly divided templates, and an excessive number of templates over time. In this paper, we propose our online log parsing approach Cognition. It redefines variable placeholders via a strict lower bound to avoid ambiguity first. Then, it applies our template correction technique to merge and absorb similar templates. It eliminates the interference of commonly used parameters and thus isolates template quantity. Evaluation through 16 public datasets shows that Cognition has better accuracy and consistency than the state-of-the-art approaches. It also saves up to 52.1% of time cost on average than the others.

Electronic Supplementary Material

Download File(s)
JCST-2106-11691-Highlights.pdf (144.6 KB)

References

【1】
【1】
 
 
Journal of Computer Science and Technology
Pages 1036-1050

{{item.num}}

Comments on this article

Go to comment

< Back to all reports

Review Status: {{reviewData.commendedNum}} Commended , {{reviewData.revisionRequiredNum}} Revision Required , {{reviewData.notCommendedNum}} Not Commended Under Peer Review

Review Comment

Close
Close
Cite this article:
Tian R, Diao Z-L, Jiang H-Y, et al. Cognition: Accurate and Consistent Linear Log Parsing Using Template Correction. Journal of Computer Science and Technology, 2023, 38(5): 1036-1050. https://doi.org/10.1007/s11390-021-1691-3

954

Views

1

Crossref

2

Web of Science

2

Scopus

0

CSCD

Received: 15 January 2021
Revised: 21 July 2021
Accepted: 21 July 2021
Published: 30 September 2023
© Institute of Computing Technology, Chinese Academy of Sciences 2023