Log Based Fault Localization with Unsupervised Log Segmentation
Preprint
- 15 August 2024
- preprint
- Published by MDPI AG in Preprints.org
Abstract
Localizing faults in a software is a tedious process. The manual approach is becoming impractical because of the large size and complexity of contemporary computer systems as well as their logs, which are often the primary source of information about the fault. Log-based Fault Localization (LBFL) is a popular method applied for this purpose. However, in real-world scenarios, this method is vulnerable to a large number of previously unseen log lines. In this paper, we propose a novel method that can guide programmers to the location of a fault by creating a hierarchy of log lines with the highest rank, selected by the traditional LBFL method. We use the intuition that the symptoms of faults are in the context of normal behavior, whereas suspicious log lines grouped together are from new or additional functionalities turned on during faulty execution. To obtain this context, we used unsupervised log sequence segmentation, which has been previously used to segment log sequences into meaningful segments. Experiments on real-life examples show that our method reduces the effort to find the most crucial logs by up to 64% compared to the traditional timestamp approach. We demonstrated that context is highly useful in advancing fault localization, showing the possibility of further speeding up the process.Keywords
All Related Versions
- Version 1, 2024-08-15, Preprints
- Published version: Applied Sciences, 14 (18), 8421.
This publication has 7 references indexed in Scilit:
- Failure Diagnosis in Microservice Systems: A Comprehensive Survey and AnalysisACM Transactions on Software Engineering and Methodology, 2025
- Unsupervised Log Sequence SegmentationIEEE Access, 2024
- On the effectiveness of log representation for log-based anomaly detectionEmpirical Software Engineering, 2023
- Slice-based statistical fault localizationJournal of Systems and Software, 2014
- The DStar Method for Effective Software Fault LocalizationIEEE Transactions on Reliability, 2013
- BP NEURAL NETWORK-BASED EFFECTIVE FAULT LOCALIZATIONInternational Journal of Software Engineering and Knowledge Engineering, 2009
- An empirical study of static program slice sizeACM Transactions on Software Engineering and Methodology, 2007