CoChat

Benchmarking Large Language Models for Log Analysis, Security, and Interpretation

Open access
Karlsen, Egil, Luo, Xiao, Zincir-Heywood, Nur, Heywood, Malcolm · 2024 · Journal of Network and Systems Management

The DOI matches its Crossref record; 26 of the 26 references it cites were found in a registry or an index.

Abstract

Large Language Models (LLM) continue to demonstrate their utility in a variety of emergent capabilities in different fields. An area that could benefit from effective language understanding in cybersecurity is the analysis of log files. This work explores LLMs with different architectures (BERT, RoBERTa, DistilRoBERTa, GPT-2, and GPT-Neo) that are benchmarked for their capacity to better analyze application and system log files for security. Specifically, 60 fine-tuned language models for log analysis are deployed and benchmarked. The resulting models demonstrate that they can be used to perform log analysis effectively with fine-tuning being particularly important for appropriate domain adaptation to specific log types. The best-performing fine-tuned sequence classification model (DistilRoBERTa) outperforms the current state-of-the-art; with an average F1-Score of 0.998 across six datasets from both web application and system log sources. To achieve this, we propose and implement a new experimentation pipeline (LLM4Sec) which leverages LLMs for log analysis experimentation, evaluation, and analysis.

Overview

Integrity signals

Registry

Crossref · 10.1007/s10922-024-09831-x

Cites

26 of 26 references verified0 citation errors · 0 not checkable

Statistics

Recomputing p-values needs the paper’s full text.

Verification

Claims the paper makes

We couldn’t retrieve this paper’s full text, so its claims and self-check weren’t run. The registry and citation checks still apply.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Citations

Cites

Show all 26 references

Research works printed but not linked: 6

  1. ECML/PKDD: ECML/PKDD 2007 Discovery Challenge (2021). https://gitlab.fing.edu.uy/gsi/web-application-attacks-datasets/-/tree/master/ecml_pkdd
  2. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., Polosukhin, I.: Attention is all you need. CoRR (2017). arXiv:abs/1706.03762
  3. Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., Stoyanov, V.: RoBERTa: a robustly optimized BERT pretraining approach. CoRR (2019). arXiv:abs/1907.11692
  4. Sanh, V., Debut, L., Chaumond, J., Wolf, T.: DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter (2019). ArXiv:abs/1910.01108
  5. Kokalj, E., Škrlj, B., Lavrač, N., Pollak, S., Robnik-Šikonja, M.: BERT meets Shapley: extending SHAP explanations to transformer-based classifiers. In: Toivonen, H., Boggia, M. (eds.) Proceedings of the EACL Hackashop on News Media Content Analysis and Automated Report Generation, 2021, pp. 16–21. Association for Computational Linguistics (2021). https://aclanthology.org/2021.hackashop-1.3
  6. Maaten, L., Hinton, G.: Visualizing data using t-SNE. J. Mach. Learn. Res. 9, 2579–2605 (2008)

Cited by

See all 72

Metadata

Authors
Karlsen, E., Luo, X., Zincir-Heywood, N., & Heywood, M.
Affiliations
  • Dalhousie University (CA)
  • Oklahoma State University (US)
Corresponding author
Karlsen, Egil
Venue
Journal of Network and Systems Management
Published
2024-06-13
Volume
32
Issue
3
ISSN
  • 1064-7570 (ISSN-L)
  • 1573-7705
OpenAlex
W4399625707
Cited by
71
References
25
Citations by year
2026: 31 · 2025: 35 · 2024: 5
FWCI
11.85
Type
journal article
Language
en
Open access
Licence
Locations
  • Journal of Network and Systems Management (publishedVersion)
  • arXiv (Cornell University) (submittedVersion, cc-by-nc-nd)
  • arXiv (Cornell University)
Topics
  • Physical Sciences › Computer Science › Computer Networks and Communications › Network Security and Intrusion Detection
  • Physical Sciences › Computer Science › Computer Networks and Communications › Software System Performance and Reliability
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
Keywords
large language models, log analysis, cybersecurity, log classification, fine-tuning, DistilRoBERTa, BERT, RoBERTa, GPT-2, GPT-Neo, system logs, benchmarking, domain adaptation

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

How to cite

Cite CoChat for the checks on this page, and the paper for its own findings.

This page
CoChat. (2026). Citation check: Benchmarking Large Language Models for Log Analysis, Security, and Interpretation. https://app.cochat.ai/papers/10.1007/s10922-024-09831-x
The paper
Karlsen, E., Luo, X., Zincir-Heywood, N., & Heywood, M. (2024). Benchmarking Large Language Models for Log Analysis, Security, and Interpretation. Journal of Network and Systems Management. https://doi.org/10.1007/s10922-024-09831-x

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.