FlexParser—The adaptive log file parser for continuous results in a changing world

Kuhnert N, Maier A (2022)

Publication Language: English

Publication Type: Journal article, Original article

Publication year: 2022


Book Volume: 34

Pages Range: e2426

Journal Issue: 3

URI: https://onlinelibrary.wiley.com/doi/epdf/10.1002/smr.2426

DOI: 10.1002/smr.2426

Open Access Link: https://onlinelibrary.wiley.com/doi/10.1002/smr.2426


Any modern system writes events into files, called log files. Those contain crucial information which are subject to various analyses. Examples range from cybersecurity, intrusion detection over usage analyses to trouble shooting. Before data analysis is possible, desired information needs to be extracted first out of the semi-structured log messages. State-of-the-art event parsing often assumes static log events. However, any modern system is updated consistently and with updates also log file structures can change. We call those changes “mutation” and study parsing performance for different mutation cases. Latest research discovers mutations using anomaly detection post mortem, however, does not cover actual continuous parsing. Thus, we propose a novel and flexible parser, called FlexParser, which can extract desired values despite gradual changes in the log messages. It implies basic text preprocessing followed by a supervised Deep Learning method. We train a stateful LSTM on parsing one event per data set. Statefulness enforces the model to learn log message structures across several examples. Our model was tested on seven different, publicly available log file data sets and various kinds of mutations. Exhibiting an average F1-Score of 0.98, it outperforms other Deep Learning methods as well as state-of-the-art unsupervised parsers

Authors with CRIS profile

How to cite


Kuhnert, N., & Maier, A. (2022). FlexParser—The adaptive log file parser for continuous results in a changing world. Journal of Software: Evolution and Process, 34(3), e2426. https://doi.org/10.1002/smr.2426


Kuhnert, Nadine, and Andreas Maier. "FlexParser—The adaptive log file parser for continuous results in a changing world." Journal of Software: Evolution and Process 34.3 (2022): e2426.

BibTeX: Download