liu.seSearch for publications in DiVA
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • oxford
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Comparing Anomaly Detection Techniques on Offline and Online Log Data
Linköping University, Department of Computer and Information Science.
Linköping University, Department of Computer and Information Science.
2025 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesisAlternative title
Jämförelse av anomaly detection tekniker på offline och onlinelog data (Swedish)
Abstract [en]

Generated log data contains valuable insight into potential security threats. However,

these logs are of large quantities, and handling it manually is quite a challenge. The need

for high-scoring automated anomaly detection is large, specifically within the context of

offline and online anomaly detection. Detecting anomalies offline creates opportunity to

debug, error trace and analyze root causes. An online setting, on the other hand, enables

the opportunity to detect anomalous behavior and prevent threats before they escalate

into actual security incidents.

In this study a method consisting of four steps was applied. First already collected

log datasets were downloaded, HDFS-v1 and BGL from Loghub. Followed by log parsing,

the BGL dataset was already structured and there was no need for log parsing but for the

HDFS dataset drain was applied to retrieve event templates. The next step was to extract

features from the data, which was done by a session window approach for the HDFS

dataset and a sliding window method for the BGL dataset. Lastly, the anomaly detection

techniques were executed with the processed data. Three algorithms were implemented in

offline scenarios, Isolation Forest, PCA and LogClustering. Two algorithms, Half-Space

Trees and One-Class SVM, were implemented in online scenarios. The algorithm SVM

was also applied and used as a benchmark for the offline algorithms. In addition, an

iterative approach was used to record the best possible results.

By comparing three offline and two online anomaly detection techniques, this thesis

concludes the best anomaly detection technique within each use case. LogClustering

achieved the best performance in the offline scenario. Among the two online methods,

Half-Space Trees performed better on the HDFS dataset, while One-Class SVM showed

better results on the BGL dataset. Additionally, a comparison is done between offline and

online anomaly detection, where the offline algorithms performed the best. The results are

then discussed and reasoned about before proposing interesting topics for future research.

Place, publisher, year, edition, pages
2025. , p. 32
Keywords [en]
anomaly detection, log data, online log data, streaming data, PCA, Isolation Forest, Log Clustering, Oneclass-SVM, Half-Space Trees, offline, online
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:liu:diva-215854ISRN: LIU-IDA/LITH-EX-G--25/081--SEOAI: oai:DiVA.org:liu-215854DiVA, id: diva2:1979609
Subject / course
Information Technology
Presentation
2025-06-05, 15:15 (Swedish)
Supervisors
Examiners
Available from: 2025-07-01 Created: 2025-06-30 Last updated: 2025-07-01Bibliographically approved

Open Access in DiVA

fulltext(1113 kB)352 downloads
File information
File name FULLTEXT01.pdfFile size 1113 kBChecksum SHA-512
76d2b64546a46fa8d46ab0cb81f82662dd907a952e71bb9e4e1eae030e15b2ac7286b0745fbf880a9c6174e6c8b8334f5d6df971a441f8212547ffab9bb2e839
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Arthur, CarlThulin, Carl
By organisation
Department of Computer and Information Science
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 354 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 568 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • oxford
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf