TL;DR
This paper introduces Loghub-2.0, a significantly larger and more representative dataset for evaluating log parsing techniques, addressing the limitations of previous benchmarks. They re-evaluate 15 state-of-the-art log parsers on this new dataset, revealing performance degradations and highlighting the need for more robust evaluation metrics and parsers that handle diverse log characteristics and efficiency demands.
What Problem Does This Paper Address?
Log parsing is a crucial first step for analyzing unstructured log data, enabling tasks like debugging and anomaly detection. While many log parsing tools exist, their effectiveness and suitability for real-world production systems are often unclear due to limitations in existing benchmarks. The primary issues are:
- Limited Scale and Representativeness: The widely-used Loghub-2k dataset contains only 2,000 log lines per dataset, which is insufficient to capture the complexity and scale of real-world logs (often millions of lines). This can lead to optimistic performance estimates that don't hold up in production.
- Sensitivity of Evaluation Metrics: Traditional message-level metrics (like Group Accuracy) can be misleadingly high on imbalanced datasets, where a few common log templates dominate. This masks poor performance on less frequent but potentially critical log events.
- Lack of Granular Analysis: Existing studies often report overall performance, failing to assess how parsers handle specific types of logs, such as infrequent events or logs with many parameters, which are vital for in-depth system diagnosis.
Methods
The authors tackle these problems through a multi-pronged approach:
- Loghub-2.0 Dataset Construction: They created a new benchmark dataset, Loghub-2.0, by annotating 14 existing log datasets from various systems. This dataset is significantly larger, averaging 3.6 million log lines per dataset, and features manually annotated log templates and parameters. The annotation process involved a rigorous framework with five steps: preprocessing, log grouping (using hierarchical clustering based on logging level, component, and frequent tokens), manual template annotation, log-template matching (using regular expressions), and template refinement.
- New Evaluation Metric (FGA): To address the sensitivity of message-level metrics to imbalanced data, they propose the F1-score of Group Accuracy (FGA). FGA is a template-level metric that measures the harmonic mean of precision and recall for correctly grouped templates, giving equal weight to all templates regardless of their frequency.
- Granular Performance Evaluation: They go beyond overall performance by evaluating parsers on subsets of logs categorized by template frequency (infrequent vs. frequent) and parameter count (no parameters, few parameters, many parameters). This allows for a deeper understanding of parser behavior under different conditions.
- Re-evaluation of Existing Parsers: They conduct a comprehensive re-evaluation of 15 state-of-the-art log parsers (13 statistic-based and 2 semantic-based) on Loghub-2.0 using their proposed metrics and granular analysis.
Datasets
- Loghub-2k: The previously widely-used benchmark dataset, consisting of 2,000 log lines per dataset.
- Loghub-2.0: The newly introduced, large-scale benchmark dataset. It comprises 14 datasets with an average of 3.6 million log lines each, manually annotated with log templates and parameters. This dataset is designed to be more representative of real-world log data characteristics.
Key Insights and Ideas
- Loghub-2.0 is a much tougher challenge: The sheer scale and increased complexity (more templates, more imbalanced frequencies, and more parameter-intensive templates) of Loghub-2.0 cause a significant performance drop for most existing log parsers compared to their performance on Loghub-2k.
- Message-level metrics can be misleading: Metrics like Group Accuracy (GA) and Parsing Accuracy (PA) are heavily influenced by the frequency of log templates. This can lead to inflated scores that don't reflect true performance on less common but critical log events.
- Template-level metrics are crucial: The proposed FGA and existing template-level metrics (like FTA) provide a more realistic assessment by treating all templates equally, revealing performance gaps that message-level metrics hide.
- Semantic parsers excel at individual log accuracy but struggle with grouping: While semantic parsers like UniParser and LogPPT show higher accuracy in identifying template and parameter parts (PA, FTA), they often perform worse in grouping logs belonging to the same template (GA, FGA) because they might overlook global patterns.
- Efficiency is a major bottleneck: A significant number of parsers (9 out of 15) fail to complete the evaluation within a 12-hour timeout on Loghub-2.0, highlighting their impracticality for large-scale production systems.
- Parameter-intensive logs are a major weakness: Parsers perform exceptionally well on logs without parameters but show a dramatic decline in effectiveness as the number of parameters increases, indicating a significant challenge in accurately parsing complex log messages.
Key Results
- Loghub-2.0 has approximately 1,900 times more messages and 3 times more templates on average compared to Loghub-2k.
- Loghub-2.0 exhibits more imbalanced template frequencies and more complex log templates with a higher average number of parameters.
- All evaluated log parsers showed a significant degradation in performance on Loghub-2.0 compared to Loghub-2k, with a greater degree of variance across datasets.
- 9 out of 15 parsers failed to process all datasets in Loghub-2.0 within a 12-hour timeframe.
- Semantic-based parsers (UniParser, LogPPT) achieved higher PA and FTA, but lower GA and FGA.
- Performance declines significantly as the number of parameters in log templates increases, with some parsers achieving very low scores (e.g., FGA of 0.16 for LogPPT on logs with >= 5 parameters).
- Drain was identified as the most performant statistic-based parser for grouping (highest GA and FGA).
Limitations and Future Work
- Annotation Errors: The authors acknowledge that annotation errors in Loghub-2.0 are a potential threat due to the lack of source code access, though they mitigated this with a rigorous annotation framework.
- Limited Parsers: Not all log parsers are open-source, limiting the selection. However, they included state-of-the-art parsers across various categories.
- Future Work:
- Combine Semantic and Statistical Information: Future parsers could benefit from integrating both semantic understanding and statistical patterns to improve both parsing and grouping.
- Focus on Efficiency: Designing parsers that meet the performance demands of large-scale applications is crucial.
- Address Parameter-Intensive Logs: Future research should focus on improving parser effectiveness for logs with many parameters.
- Continue Dataset Development: The availability of Loghub-2.0 and the benchmark protocol should facilitate further research and easy comparison of new log parsing techniques.
Summary updated