TL;DR
This paper introduces Loghub-2.0, a significantly larger and more representative dataset for evaluating log parsing techniques, and uses it to conduct a comprehensive re-evaluation of 15 state-of-the-art log parsers. The study reveals that existing parsers, while performing reasonably well on smaller, older benchmarks, struggle with the scale and complexity of real-world log data, highlighting the need for more robust and efficient parsing methods.
What Problem Does This Paper Address?
Log parsing is a crucial first step in analyzing system logs, transforming unstructured text into structured data for tasks like debugging and anomaly detection. While numerous log parsing techniques exist, their effectiveness is often evaluated on limited datasets like Loghub-2k. This benchmark, containing only 2,000 log lines per dataset, fails to capture the true scale and complexity of real-world log data, leading to an overestimation of parser performance. This gap makes it difficult to assess which parsers are truly suitable for production environments, especially when dealing with infrequent but critical system events or logs with many parameters.
Methods
The authors introduce Loghub-2.0, a new collection of 14 annotated log datasets, each averaging 3.6 million log lines. This dataset was created using a rigorous, multi-stage annotation framework involving five skilled annotators. The framework includes:
- Preprocessing: Extracting fields like timestamps and logging levels, and cleaning logs.
- Log Grouping: Hierarchically grouping logs based on logging level, component, and top-K frequent tokens to facilitate annotation.
- Template Annotation: Manual identification of log templates within each group by annotators.
- Log-Template Matching: Using regular expressions to automatically map log messages to their identified templates.
- Template Refinement: Consolidating annotator results and resolving discrepancies to ensure accuracy and uniformity.
They also propose a new evaluation metric, F1-score of Group Accuracy (FGA), which is a template-level metric designed to be less sensitive to imbalanced log data compared to traditional message-level metrics like Group Accuracy (GA).
Datasets
- Loghub-2.0: The primary dataset introduced in this paper. It comprises 14 large-scale, manually annotated log datasets from diverse systems, with an average of 3.6 million log lines per dataset. This dataset is significantly larger and more representative than its predecessor.
- Loghub-2k: The widely-used benchmark dataset from previous work, used here for comparison. It contains only 2,000 log lines per dataset.
Key Insights and Ideas
- The "Loghub-2k Effect": Existing log parsers perform significantly worse on the larger, more realistic Loghub-2.0 dataset compared to the smaller Loghub-2k. This highlights that previous benchmarks may have provided an overly optimistic view of parser capabilities.
- Imbalance is a Killer: Loghub-2.0 exhibits more pronounced imbalanced template frequencies and more complex templates with higher parameter counts. These characteristics severely challenge existing parsers, especially those relying on simple statistical patterns.
- Message-Level Metrics Can Deceive: Metrics like GA and PA tend to be higher than template-level metrics (FGA, FTA) because they are skewed by frequent log templates. This can mask poor performance on infrequent but critical log events.
- Semantic Parsers Shine on Individual Logs, Struggle with Grouping: Semantic-based parsers (like UniParser and LogPPT) excel at accurately identifying template and parameter parts (high PA/FTA), but often falter in correctly grouping logs belonging to the same template (lower GA/FGA) due to their focus on local context.
- Efficiency is a Major Bottleneck: A significant number of parsers (9 out of 15) failed to complete the evaluation within a 12-hour timeout on Loghub-2.0, indicating that many current techniques are not efficient enough for production-scale log analysis.
Key Results
- Loghub-2.0 contains approximately 1900 times more messages and 3 times more templates on average compared to Loghub-2k.
- All 15 evaluated log parsers showed a significant performance degradation on Loghub-2.0 across all metrics (GA, PA, FGA, FTA) compared to Loghub-2k.
- Drain emerged as the most performant statistic-based parser, showing the highest average GA and FGA.
- Semantic parsers like UniParser and LogPPT achieved higher PA and FTA, but their GA and FGA were lower.
- 9 out of 15 parsers timed out (exceeded 12 hours) on at least one dataset in Loghub-2.0, highlighting efficiency issues.
- Parser performance drastically drops as the number of parameters in log templates increases, with some parsers achieving near-zero scores for templates with five or more parameters.
Limitations and Future Work
- Annotation Errors: The authors acknowledge that annotation errors in Loghub-2.0 are an inherent threat, though they mitigated this through a rigorous framework and experienced annotators.
- Limited Parsers: Not all log parsers are open-source, so the selection was limited to available ones. However, they included state-of-the-art parsers across different categories.
- Future Work: The paper suggests combining semantic and statistical information for improved parsing and grouping. It also emphasizes the need for future parsers to prioritize efficiency and be evaluated on logs with varying characteristics, particularly infrequent and parameter-intensive ones. The authors have made their dataset and evaluation framework publicly available to facilitate future research.
Summary updated