Problem-solving in physics and mathematics has been characterised in terms of five phases by Schoenfeld, and these have previously been used to describe also online and blended behaviour. We argue that expanding the use of server logs to make detailed categorisations of student actions can help increase knowledge about how students solve problems. We present a novel approach for analysing server logs that relies on network analysis and principal component analysis. We used the approach to analyse student interactions with an online textbook that features physics problems. We find five ‘components of behavioural structure’: Complexity, Linear Length, Navigation, Mutuality, and Erraticism. Further, we find that problem-solving sessions can be divided into four overarching groups that differ in their Complexity and further into ten clusters that also differ on the other components. Analysing typical sessions in each cluster, we find ten different behavioural structures which we describe in terms of Schoenfeld's phases. We suggest that further research integrates this approach with other methodological approaches to get a fuller picture of how learning strategies are used by students in settings with online features.