monitoring the student's behavior is challenging for teachers in online learning, which is crucial to solving. It is because, in this pandemic period, online learning is required to minimize the spreading of coronavirus. However, research in this domain is not much. This study provides an alternative to this problem by classifying students' behavior in the e-Learning system, where the k-NN is applied to mine the students' behavior. In addition, this paper also tests the proper parameters to improve the performance of k-NN: k and distance. The experimental result shows that the best performance on the cross-validation technique is reached by Euclidean distance and, on the percentage-split, is achieved by distance-Manhattan. These are indicated by the highest accuracy level obtained by neighbors of five and 20 fold, about 96.9% on the cross-validation technique. On the percentage split technique, the highest accuracy level, about 95.3%, is reached by neighbors of four and split 50%. In this best performance, four students are misclassified on the cross-validation and six on the percentage split.