Demonstration-Free: Towards More Practical Log Parsing with Large Language Models
Open Access
- 27 October 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 153-165
Abstract
Log parsing, the process of converting raw log messages into structured formats, is an important initial step for automated analysis of logs of large-scale software systems. Traditional log parsers often rely on heuristics or handcrafted features, which may not generalize well across diverse log sources or require extensive model tuning. Recently, some log parsers have utilized powerful generative capabilities of large language models (LLMs). However, they heavily rely on demonstration examples, resulting in substantial overhead in LLM invocations. To address these issues, we propose LogBatcher, a cost-effective LLM-based log parser that requires no training process or labeled data. To leverage latent characteristics of log data and reduce the overhead, we divide logs into several partitions through clustering. Then we perform a cache matching process to match logs with previously parsed log templates. Finally, we provide LLMs with better prompt context specialized for log parsing by batching a group of logs from each partition. We have conducted experiments on 16 public log datasets and the results show that LogBatcher is effective and efficient for log parsing.Keywords
This publication has 37 references indexed in Scilit:
- Log Parsing: How Far Can ChatGPT Go?2023
- Prompting Large Language Models with Answer Heuristics for Knowledge-Based Visual Question Answering2023
- From Images to Textual Prompts: Zero-shot Visual Question Answering with Frozen Large Language Models2023
- Self-Attentive Classification-Based Anomaly Detection in Unstructured Logs2020
- Examining the stability of logging statementsEmpirical Software Engineering, 2017
- LogSed: Anomaly Diagnosis through Mining Time-Weighted Control Flow Graph in Logs2017
- Spell: Streaming Parsing of System Event Logs2016
- LogCluster - A data clustering and pattern mining algorithm for event logs2015
- Detection of Early-Stage Enterprise Infection by Mining Large-Scale Log Data2015
- Computation of normalized edit distance and applicationsIEEE Transactions on Pattern Analysis and Machine Intelligence, 1993