One important aspect of motivation is engagement. In order to learn, students need to be engaged in the learning activities. However, that does not always happen due to various factors. This paper investigates the possibility to detect the level of engagement of a learner using an e-Learning system. More specifically, we are looking for actions that could predict it. Using log files analysis we found that these actions are related to reading pages and taking tests, which are common to every e-Learning system. Several experiments showed that predictions based on attributes related to these two actions are as good as those that include a larger number of actions available in an e-Learning system. A comparison between the attributes found relevant in our research and the attributes used in previous research shows the consistency of our findings. The novelty of our approach is that the focus is on the learning time rather that on evaluation through quizzes-type activities.