LogNLQ:基于解析器诱导和语义基础模式的自然语言日志查询
LogNLQ: Natural-Language Log Querying with Parser-Induced and Semantically Grounded Schemas
AI总结:
研究自然语言日志查询难题,提出LogNLQ框架,通过解析日志成表、双粒度语义标注及语义搜索获取候选模式,结合大语言模型生成可执行SQL,还引入LogNLQ-Bench,实验证明其性能优越。
摘要:
日志对现代软件系统监测和故障诊断至关重要,但自然语言查询日志仍是挑战。现有方法有局限,本文提出LogNLQ框架,将自然语言日志查询转化为基于解析器诱导和语义基础模式的可执行SQL生成。介绍了LogNLQ-Bench基准,实验表明LogNLQ性能远超基线。
英文摘要:
Logs are essential for system monitoring and failure diagnoses in modern software systems, yet querying them through natural language remains an open challenge. Existing approaches either treat logs as plain text, generate queries for schema-light backends, or assume predefined relational schemas, but none addresses a fundamental obstacle: raw logs carry no executable schema over which structured queries can be defined and run. To address these limitations, we present LogNLQ, a framework that formulates natural-language log querying as executable SQL generation over parser-induced and semantically grounded schemas. LogNLQ parses raw logs into template-partitioned relational tables, then applies dual-granularity semantic grounding to annotate both templates and parameter columns with interpretable names and descriptions. At query time, relevant schema candidates are retrieved via semantic search, and a large language model (LLM) generates executable SQL constrained to the retrieved context. To support rigorous evaluation, we introduce LogNLQ-Bench, an execution-verified benchmark of 8,895 queries over four real-world log datasets. Experimental results demonstrate that LogNLQ consistently outperforms all representative baselines by wide margins, with especially pronounced gains on analytically complex scenario queries.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。