Chatting with Logs: An exploratory study on Finetuning LLMs for LogQL

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Seshagiri, Vishwanath, Balyan, Siddharth, Anand, Vaastav, Dhole, Kaustubh, Sharma, Ishan, Wildani, Avani, Cambronero, José, Züfle, Andreas
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912144910450688
author Seshagiri, Vishwanath
Balyan, Siddharth
Anand, Vaastav
Dhole, Kaustubh
Sharma, Ishan
Wildani, Avani
Cambronero, José
Züfle, Andreas
author_facet Seshagiri, Vishwanath
Balyan, Siddharth
Anand, Vaastav
Dhole, Kaustubh
Sharma, Ishan
Wildani, Avani
Cambronero, José
Züfle, Andreas
contents Logging is a critical function in modern distributed applications, but the lack of standardization in log query languages and formats creates significant challenges. Developers currently must write ad hoc queries in platform-specific languages, requiring expertise in both the query language and application-specific log details -- an impractical expectation given the variety of platforms and volume of logs and applications. While generating these queries with large language models (LLMs) seems intuitive, we show that current LLMs struggle with log-specific query generation due to the lack of exposure to domain-specific knowledge. We propose a novel natural language (NL) interface to address these inconsistencies and aide log query generation, enabling developers to create queries in a target log query language by providing NL inputs. We further introduce ~\textbf{NL2QL}, a manually annotated, real-world dataset of natural language questions paired with corresponding LogQL queries spread across three log formats, to promote the training and evaluation of NL-to-loq query systems. Using NL2QL, we subsequently fine-tune and evaluate several state of the art LLMs, and demonstrate their improved capability to generate accurate LogQL queries. We perform further ablation studies to demonstrate the effect of additional training data, and the transferability across different log formats. In our experiments, we find up to 75\% improvement of finetuned models to generate LogQL queries compared to non finetuned models.
format Preprint
id arxiv_https___arxiv_org_abs_2412_03612
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Chatting with Logs: An exploratory study on Finetuning LLMs for LogQL
Seshagiri, Vishwanath
Balyan, Siddharth
Anand, Vaastav
Dhole, Kaustubh
Sharma, Ishan
Wildani, Avani
Cambronero, José
Züfle, Andreas
Databases
Artificial Intelligence
Programming Languages
Logging is a critical function in modern distributed applications, but the lack of standardization in log query languages and formats creates significant challenges. Developers currently must write ad hoc queries in platform-specific languages, requiring expertise in both the query language and application-specific log details -- an impractical expectation given the variety of platforms and volume of logs and applications. While generating these queries with large language models (LLMs) seems intuitive, we show that current LLMs struggle with log-specific query generation due to the lack of exposure to domain-specific knowledge. We propose a novel natural language (NL) interface to address these inconsistencies and aide log query generation, enabling developers to create queries in a target log query language by providing NL inputs. We further introduce ~\textbf{NL2QL}, a manually annotated, real-world dataset of natural language questions paired with corresponding LogQL queries spread across three log formats, to promote the training and evaluation of NL-to-loq query systems. Using NL2QL, we subsequently fine-tune and evaluate several state of the art LLMs, and demonstrate their improved capability to generate accurate LogQL queries. We perform further ablation studies to demonstrate the effect of additional training data, and the transferability across different log formats. In our experiments, we find up to 75\% improvement of finetuned models to generate LogQL queries compared to non finetuned models.
title Chatting with Logs: An exploratory study on Finetuning LLMs for LogQL
topic Databases
Artificial Intelligence
Programming Languages
url https://arxiv.org/abs/2412.03612