Lost in Translation? Converting RegExes for Log Parsing into Dynatrace Pattern Language

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Fragner, Julian, Macho, Christian, Dieber, Bernhard, Pinzger, Martin
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913910263644160
author Fragner, Julian
Macho, Christian
Dieber, Bernhard
Pinzger, Martin
author_facet Fragner, Julian
Macho, Christian
Dieber, Bernhard
Pinzger, Martin
contents Log files provide valuable information for detecting and diagnosing problems in enterprise software applications and data centers. Several log analytics tools and platforms were developed to help filter and extract information from logs, typically using regular expressions (RegExes). Recent commercial log analytics platforms provide domain-specific languages specifically designed for log parsing, such as Grok or the Dynatrace Pattern Language (DPL). However, users who want to migrate to these platforms must manually convert their RegExes into the new pattern language, which is costly and error-prone. In this work, we present Reptile, which combines a rule-based approach for converting RegExes into DPL patterns with a best-effort approach for cases where a full conversion is impossible. Furthermore, it integrates GPT-4 to optimize the obtained DPL patterns. The evaluation with 946 RegExes collected from a large company shows that Reptile safely converted 73.7% of them. The evaluation of Reptile's pattern optimization with 23 real-world RegExes showed an F1-score and MCC above 0.91. These results are promising and have ample practical implications for companies that migrate to a modern log analytics platform, such as Dynatrace.
format Preprint
id arxiv_https___arxiv_org_abs_2506_19539
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Lost in Translation? Converting RegExes for Log Parsing into Dynatrace Pattern Language
Fragner, Julian
Macho, Christian
Dieber, Bernhard
Pinzger, Martin
Software Engineering
Artificial Intelligence
D.2.7
Log files provide valuable information for detecting and diagnosing problems in enterprise software applications and data centers. Several log analytics tools and platforms were developed to help filter and extract information from logs, typically using regular expressions (RegExes). Recent commercial log analytics platforms provide domain-specific languages specifically designed for log parsing, such as Grok or the Dynatrace Pattern Language (DPL). However, users who want to migrate to these platforms must manually convert their RegExes into the new pattern language, which is costly and error-prone. In this work, we present Reptile, which combines a rule-based approach for converting RegExes into DPL patterns with a best-effort approach for cases where a full conversion is impossible. Furthermore, it integrates GPT-4 to optimize the obtained DPL patterns. The evaluation with 946 RegExes collected from a large company shows that Reptile safely converted 73.7% of them. The evaluation of Reptile's pattern optimization with 23 real-world RegExes showed an F1-score and MCC above 0.91. These results are promising and have ample practical implications for companies that migrate to a modern log analytics platform, such as Dynatrace.
title Lost in Translation? Converting RegExes for Log Parsing into Dynatrace Pattern Language
topic Software Engineering
Artificial Intelligence
D.2.7
url https://arxiv.org/abs/2506.19539