Modern software systems generate massive log messages that serve as
crucial data for monitoring. Effective log analysis requires log parsing
to transform unstructured logs into structured representations. However,
existing token-based parsing metho...
Modern software systems generate massive log messages that serve as
crucial data for monitoring. Effective log analysis requires log parsing
to transform unstructured logs into structured representations. However,
existing token-based parsing methods often fail to recognize nested
variable structures, such as JSON objects or arrays, leading to parsing
errors where templates become either overly specific or general.
This study proposes an improved log parsing method utilizing Nested Named
Entity Recognition (NNER) to address these limitations. The proposed
approach identifies hierarchical structure within logs and generates
multiple candidate templates with various levels of generality. It then
applies the Minimum Description Length (MDL) principle to select the
optimal template set that balances model simplicity and data encoding
efficiency. Additionally, an iterative filtering strategy is implemented
to ensure time efficiency when processing large-scale datasets.
Empirical evaluations on real-world logs from Hadoop, Spark, and
Apache-IoTDB demonstrate that the proposed method improves parsing
accuracy by 0.098 to 0.230 compared to existing parsers. Notably, it
shows superior performance in logs with complex nested structures where
traditional methods fail. Furthermore, the results indicate that higher
parsing quality enhances the performance of anomaly detection tasks.
These findings highlight that advanced log structure analysis is a
critical prerequisite for robust system anomaly detection.