Abstract
Logs have been widely adopted in software system development and maintenance because of the rich system runtime information they contain. In recent years, the increase of software size and complexity leads to the rapid growth of the volume of logs. To handle these large volumes of logs efficiently and effectively, a line of research focuses on intelligent log analytics powered by AI (artificial intelligence) techniques. However, only a small fraction of these techniques have reached successful deployment in industry because of the lack of public log datasets and necessary benchmarking upon them. To fill this significant gap between academia and industry and also facilitate more research on AI-powered log analytics, we have collected and organized loghub, a large collection of log datasets. In particular, loghub provides real-world log datasets collected from a wide range of systems, including distributed systems, supercomputers, operating systems, mobile systems, server applications, and standalone software. In this paper, we summarize the statistics of these datasets, introduce some practical log usage scenarios, and present a case study on anomaly detection to demonstrate how loghub facilitates the research and practice in this field.
Introduction
In modern software engineering, system logs serve as the "black box" flight recorders of runtime behavior. As systems scale, they generate logs at staggering rates—sometimes exceeding 50 GB per hour—making manual inspection impossible. While researchers have proposed numerous AI-driven techniques to automate log analysis, the field has faced two major hurdles: data scarcity due to privacy concerns and a lack of standardized benchmarks. Without a common ground, comparing the effectiveness of different algorithms fairly is nearly impossible.
The Log Analytics Lifecycle
Log analytics is not a single step but a continuous process spanning the entire software lifecycle. It begins in the Development Phase, where developers decide what and where to log. During the Runtime Phase, logs are collected and often compressed to manage storage. Finally, in the Operation and Maintenance Phase, logs are parsed and analyzed using machine learning and deep learning techniques to ensure system health.
The Loghub Dataset Collection
To address the lack of public data, we present Loghub, a curated collection of 19 real-world datasets totaling over 77 GB. These datasets are categorized into six types of systems, providing a diverse testing ground for automated tools. Notably, six of these datasets are labeled with ground-truth anomaly information, which is critical for evaluating supervised learning models.
Benchmarking and Key Insights
Beyond hosting data, we established a benchmarking framework for three critical tasks: parsing, compression, and anomaly detection.
Log Parsing
Parsing converts unstructured text into structured events. Our evaluation of 13 different parsers revealed a "No Free Lunch" reality: no single parser dominates every dataset. While simple logs like Apache are easily parsed, intricate structures in Mac or OpenStack logs remain challenging. Drain emerged as the most robust parser, achieving the highest average accuracy of 0.865 across all datasets.
Log Compression
Managing the massive storage footprint of logs is vital. We found that general-purpose compression (like lzma) is effective, but "log-aware" tools like Logzip—which exploit the repetitive nature of log templates—can improve compression ratios by up to 15x compared to standard gzip.
Anomaly Detection
In anomaly detection, supervised models like Decision Trees achieve near-perfect F1-scores (~0.99) on datasets like HDFS. However, because real-world anomalies are rare, obtaining labels is difficult. Unsupervised methods are more practical for production but currently suffer from lower recall, with Invariants Mining performing best among them (0.915 F1-score).
Conclusion and Future Work
Loghub has already seen significant adoption, with over 15,000 downloads by more than 380 organizations. However, challenges remain, particularly regarding "concept drift" as software updates change log patterns. Future work will focus on increasing labeled data, improving real-time efficiency for high-volume streams, and advancing diagnostic depth to support Root Cause Analysis (RCA).
Summary updated