mlsanityData to 7 Oct 2026

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

arXiv 2412.03612 ↗First posted 4 Dec 2024cs.DB cs.AI cs.PLcited by 1

Not on the map. Why?

Abstract (arXiv)

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 ~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.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 15 of its 50 references that are in the map. First posted on arXiv 4 Dec 2024.

Builds on

15 of 50 references.

References · 15

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  2. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  3. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  4. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
  5. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  6. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
  7. 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 118
  8. 2023CodeBERTScore: Evaluating Code Generation with Pretrained Models of Codecited by 101
  9. 2020Loghub: A Large Collection of System Log Datasets for AI-driven Log Analyticscited by 68
  10. 2020FIRM: An Intelligent Fine-Grained Resource Management Framework for SLO-Oriented Microservicescited by 41
  11. 2024LLMParser: An Exploratory Study on Using Large Language Models for Log Parsingcited by 32
  12. 2024Automated Data Visualization from Natural Language via Large Language Models: An Exploratory Studycited by 26
3 more
  1. 2024AI-Assisted SQL Authoring at Industry Scalecited by 3
  2. 2024Enhancing LLM Fine-tuning for Text-to-SQLs by SQL Quality Measurementcited by 3
  3. 2022Positional Paper: Schema-First Application Telemetrycited by 1

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.