We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
Home/e-Resources/Computer Science & Information Technology/Log-Based Anomaly Detection with the Improved K-Nearest Neighbor
PeriodicalsComputer Science & Information Technology

Log-Based Anomaly Detection with the Improved K-Nearest Neighbor

Checking your access to this record.

Abstract & Overview

Logs play an important role in the maintenance of large-scale systems. The number of logs which indicate normal (normal logs) differs greatly from the number of logs that indicate anomalies (abnormal logs), and the two types of logs have certain differences. To automatically obtain faults by K-Nearest Neighbor (KNN) algorithm, an outlier detection method with high accuracy, is an effective way to detect anomalies from logs. However, logs have the characteristics of large scale and very uneven samples, which will affect the results of KNN algorithm on log-based anomaly detection. Thus, we propose an improved KNN algorithm-based method which uses the existing mean-shift clustering algorithm to efficiently select the training set from massive logs. Then we assign different weights to samples with different distances, which reduces the negative effect of unbalanced distribution of the log samples on the accuracy of KNN algorithm. By comparing experiments on log sets from five supercomputers, the results show that the method we proposed can be effectively applied to log-based anomaly detection, and the accuracy, recall rate and F measure with our method are higher than those of traditional keyword search method.

Cite this record

Bingming Wang, Shi Ying, Guoli Cheng, Rui Wang, Zhe Yang, Bo Dong (2020). Log-Based Anomaly Detection with the Improved K-Nearest Neighbor. International Journal of Software Engineering and Knowledge Engineering, 30(02), 239–262. https://doi.org/10.1142/s0218194020500114

Copy in another style

Wang, B., Ying, S., Cheng, G., Wang, R., Yang, Z., & Dong, B. (2020). Log-Based Anomaly Detection with the Improved K-Nearest Neighbor. International Journal of Software Engineering and Knowledge Engineering, 30(02), 239–262. https://doi.org/10.1142/s0218194020500114
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.