I. Introduction
As a kind of textual data, logs have become an indispensable component in various computer software systems. To better record system status information, logs tend to be more unstructured [1]. Automatically parsing these unstructured logs is crucial for tasks like spotting system anomalies [2], [3], identifying root causes of failures [4], [5], mining log patterns, improving compression rates [6], [7], and enhancing security diagnostics [8], [9].