A Story About Cohesion and Separation: Label-Free Metric for Log Parser Evaluation

Qiaolin Qin, Jianchen Zhao, Heng Li, Weiyi Shang, Ettore Merlo

Abstract

Log parsing converts log messages into structured event templates, allowing for automated log analysis and reducing manual inspection effort. To select the most compatible parser for a specific system, multiple evaluation metrics are commonly used for performance comparisons. However, existing evaluation metrics heavily rely on labeled log data, which limits prior studies to a fixed set of datasets and hinders parser evaluations and selections in the industry. Further, we discovered that different versions of ground-truth used in existing studies can lead to inconsistent performance conclusions. Motivated by these challenges, we propose a novel label-free template-level metric, PMSS (parser medoid silhouette score), to evaluate log parser performance. PMSS evaluates both parser grouping and template quality with medoid silhouette analysis and Levenshtein distance within a near-linear time complexity in general. To understand its relationship with label-based template-level metrics, FGA and FTA, we compared their evaluation outcomes for six log parsers on the standard corrected Loghub 2.0 dataset. Our results indicate that log parsers achieving the highest PMSS or FGA exhibit comparable performance, differing by only 2.1% on average in terms of the FGA score; the difference is 9.8% for FTA. PMSS is also significantly (p<1e-8) and positively correlated to both FGA and FTA: the Spearman's rho correlation coefficient of PMSS-FGA and PMSS-FTA are respectively 0.648 and 0.587, close to the coefficient between FGA and FTA (0.670). We further extended our discussion on how to interpret the conclusions from different metrics, identifying challenges in using PMSS, and provided guidelines on conducting parser selections with our metric. PMSS provides a valuable evaluation alternative when ground-truths are inconsistent or labels are unavailable.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Loghub-2.0 · Loghub 2.0 · 14 datasetsPMSS vs FGASpearman's ρ correlation, PMSS–FGA0.648Log Parser Evaluation · datasets=14 · log-parsers=6 · sample-points=84
Source quote
L814: PMSS shows significant positive correlations with both FGA and FTA. Considering the small sample size (i.e., 6 log parsers), we did not compare metric rankings per dataset. Instead, we conducted Spearman's \rho analyses with all 84 sample points to understand the correlations between PMSS and FGA-FTA. The correlations of PMSS–FGA and PMSS–FTA are statistically significant (p<1e (-8)), with coefficients of 0.648 and 0.587, respectively. For reference, the correlation between FGA and FTA is 0.670 (p<1e (-8)), indicating that PMSS exhibits a level of alignment with the label-based metrics comparable to the relationship between FGA and FTA themselves. These results suggest that PMSS effectively evaluates log parsers in terms of both event grouping and template quality, reinforcing its potential as a label-free yet integrative proxy for overall parsing performance.
Loghub-2.0 · Loghub 2.0 · 14 datasetsPMSS vs FTASpearman's ρ correlation, PMSS–FTA0.587Log Parser Evaluation · datasets=14 · log-parsers=6 · sample-points=84
Source quote
L814: PMSS shows significant positive correlations with both FGA and FTA. Considering the small sample size (i.e., 6 log parsers), we did not compare metric rankings per dataset. Instead, we conducted Spearman's \rho analyses with all 84 sample points to understand the correlations between PMSS and FGA-FTA. The correlations of PMSS–FGA and PMSS–FTA are statistically significant (p<1e (-8)), with coefficients of 0.648 and 0.587, respectively. For reference, the correlation between FGA and FTA is 0.670 (p<1e (-8)), indicating that PMSS exhibits a level of alignment with the label-based metrics comparable to the relationship between FGA and FTA themselves. These results suggest that PMSS effectively evaluates log parsers in terms of both event grouping and template quality, reinforcing its potential as a label-free yet integrative proxy for overall parsing performance.
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
Loghub-2.0 · Loghub 2.0 · 14 datasetsFGA vs FTA baselineSpearman's ρ correlation, FGA–FTA0.670Log Parser Evaluation · datasets=14 · log-parsers=6 · sample-points=84
Source quote
L814: PMSS shows significant positive correlations with both FGA and FTA. Considering the small sample size (i.e., 6 log parsers), we did not compare metric rankings per dataset. Instead, we conducted Spearman's \rho analyses with all 84 sample points to understand the correlations between PMSS and FGA-FTA. The correlations of PMSS–FGA and PMSS–FTA are statistically significant (p<1e (-8)), with coefficients of 0.648 and 0.587, respectively. For reference, the correlation between FGA and FTA is 0.670 (p<1e (-8)), indicating that PMSS exhibits a level of alignment with the label-based metrics comparable to the relationship between FGA and FTA themselves. These results suggest that PMSS effectively evaluates log parsers in terms of both event grouping and template quality, reinforcing its potential as a label-free yet integrative proxy for overall parsing performance.
BibTeX
@inproceedings{qin2026story,
  author = {Qiaolin Qin and Jianchen Zhao and Heng Li and Weiyi Shang and Ettore Merlo},
  title = {{A Story About Cohesion and Separation: Label-Free Metric for Log Parser Evaluation}},
  booktitle = {SANER},
  year = {2026},
  doi = {10.1109/saner67736.2026.00079},
}
Figure