LogPrompt: Prompt Engineering Towards Zero-Shot and Interpretable Log Analysis

08/15/2023
by   Yilun Liu, et al.
0

Automated log analysis is crucial in modern software-intensive systems for ensuring reliability and resilience throughout software maintenance and engineering life cycles. Existing methods perform tasks such as log parsing and log anomaly detection by providing a single prediction value without interpretation. However, given the increasing volume of system events, the limited interpretability of analysis results hinders analysts' trust and their ability to take appropriate actions. Moreover, these methods require substantial in-domain training data, and their performance declines sharply (by up to 62.5 common occurrence due to rapid software updates. In this paper, we propose LogPrompt, a novel zero-shot and interpretable log analysis approach. LogPrompt employs large language models (LLMs) to perform zero-shot log analysis tasks via a suite of advanced prompt strategies tailored for log tasks, which enhances LLMs' performance by up to 107.5 Experiments on nine publicly available evaluation datasets across two tasks demonstrate that LogPrompt, despite using no training data, outperforms existing approaches trained on thousands of logs by up to around 50 conduct a human evaluation of LogPrompt's interpretability, with six practitioners possessing over 10 years of experience, who highly rated the generated content in terms of usefulness and readability (averagely 4.42/5). LogPrompt also exhibits remarkable compatibility with open-source and smaller-scale LLMs, making it flexible for practical deployment.

READ FULL TEXT
research
06/02/2023

An Evaluation of Log Parsing with ChatGPT

Software logs play an essential role in ensuring the reliability and mai...
research
03/17/2020

Self-Supervised Log Parsing

Logs are extensively used during the development and maintenance of soft...
research
08/21/2023

A Large-scale Benchmark for Log Parsing

Log data is pivotal in activities like anomaly detection and failure dia...
research
10/13/2017

Recent Advances in Zero-shot Recognition

With the recent renaissance of deep convolution neural networks, encoura...
research
08/17/2023

On the Effectiveness of Log Representation for Log-based Anomaly Detection

Logs are an essential source of information for people to understand the...
research
03/13/2018

Recurrent Neural Network Attention Mechanisms for Interpretable System Log Anomaly Detection

Deep learning has recently demonstrated state-of-the art performance on ...
research
08/01/2023

Prompts Matter: Insights and Strategies for Prompt Engineering in Automated Software Traceability

Large Language Models (LLMs) have the potential to revolutionize automat...

Please sign up or login with your details

Forgot password? Click here to reset