LogLM: From Task-based to Instruction-based Automated Log Analysis

Yilun Liu, Yuhe Ji, Shimin Tao, Minggui He, Weibin Meng +5 more
10/12/2024
cs.SEcs.CL

No official code found. Best implementation: lunyiliu/LogLM (28 stars, Apache-2.0, last commit 2025-01-07).

Abstract

Automatic log analysis is essential for the efficient Operation and Maintenance (O&M) of software systems, providing critical insights into system behaviors. However, existing approaches mostly treat log analysis as training a model to perform an isolated task ( e.g., anomaly detection, log parsing, etc.) using task-specific log-label pairs. These task-based approaches are inflexible in generalizing to complex scenarios, depend on task-specific training data, and cost significantly when deploying multiple models. In this paper, we propose an instruction-based training approach that transforms log-label pairs from multiple tasks and domains into a unified format of instruction-response pairs. Our trained model, LogLM, can follow complex user instructions and generalize better across different tasks, thereby increasing flexibility and reducing the dependence on task-specific training data. By integrating major log analysis tasks into a single model, our approach also relieves model deployment burden. Experimentally, LogLM outperforms existing approaches across five log analysis capabilities, and exhibits strong generalization abilities on complex instructions and unseen tasks.

View on arXivView PDF

Code Implementations(1)

lunyiliu/LogLMCommunity100%
Apache-2.0

From Task-based to Instruction-based Automated Log Analysis

285PythonOct 10, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{liu2024loglm,
  title  = {LogLM: From Task-based to Instruction-based Automated Log Analysis},
  author = {Yilun Liu and Yuhe Ji and Shimin Tao and Minggui He and Weibin Meng and Shenglin Zhang and Yongqian Sun and Yuming Xie and Boxing Chen and Hao Yang},
  year   = {2024},
  eprint = {2410.09352},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.09352v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.09352.svg)](https://codeofpaper.com/paper/2410.09352)

Discussion