Moodle logs not showing user activity for students using the Moodle iPad app

Moodle logs not showing user activity for students using the Moodle iPad app

Wil New發表於
Number of replies: 15

Hi all,

First time discussion post here, so apologies if it should be posted elsewhere. Happy to learn from your instruction... 微笑

I'm managing the Moodle site for my school in Sydney, Australia and am pretty new to it, so am feeling my way through it at the moment. As one of the teachers at the school, I like to check the logs of particular pages so that I know when students are accessing those pages. However, just recently some of our students have started using our Moodle site via the mobile Moodle app on iPad, and it appears that their activity is not appearing in our logs. I've tested this using an iPad and have found that despite visiting various pages and courses, none of my activity appears in the logs.

Is anyone aware of anything that I need to change in the setup of Moodle to enable logs of iPad-based activity to be kept?

If any further information is required, please let me know and I'll be happy to supply it.

Thanks so much,
Wil.

評比平均分數: -
In reply to Wil New

Re: Moodle logs not showing user activity for students using the Moodle iPad app

Howard Miller發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片

I'm not sure I fully understand what's going on, but there's some stuff in the tracker. For example... https://tracker.moodle.org/browse/MOBILE-782

In reply to Howard Miller

Re: Moodle logs not showing user activity for students using the Moodle iPad app

Wil New發表於
Thanks so much Howard, I appreciate your quick response.


That issue is identical to my issue, so thanks for sending me there. I've spent the last little bit of time looking into it and have installed the plugin as suggested on the site. I have also made the various changes to the Moodle site in the backend as the article suggests, but have tested on my iPad some more and have found no change - that is, none of the pages on our Moodle site that I've visited appear in the logs.

I'll keep looking through the link that you sent me to see if I missed anything.

In reply to Wil New

Re: Moodle logs not showing user activity for students using the Moodle iPad app

Mary Cooch發表於
Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Testers的相片 Translators的相片

Hello and welcome to Moodle 微笑 I hope you come back again for other support (and to support others when you feel up to it)

Howard has posted a useful link and it might be worth your looking at the final comment there, if that helps. It would be good if you could also tell us which version of Moodle you are using and which version of the mobile app? There is a dedicated forum for the mobile app and so I am going to move this thread over to there... hold on to your  seats 微笑

In reply to Mary Cooch

Re: Moodle logs not showing user activity for students using the Moodle iPad app

Wil New發表於

The version of Moodle we're using is 2.8.2.

The version of the Moodle app on iPad is Moodle Mobile 2.8.

Thanks for the welcome Mary, and for the information. I'll definitely respond to those who have been generous enough to grant my query a response.

Thanks,
Wil.

In reply to Wil New

Re: Moodle logs not showing user activity for students using the Moodle iPad app

Ken Task發表於
Particularly helpful Moodlers的相片

The following may/may not help as both are not in the Moodle UI but might give you something to use in comparison.

For what Moodle records in DB, sql query of the DB for Moodle:

select userid,model,platform,version from `mdl_user_devices`

For what Apache records in raw access logs of site from the directory containing
the access_log of apache:

fgrep iPad /var/log/httpd/access_log

'spirit of sharing', Ken

In reply to Ken Task

Re: Moodle logs not showing user activity for students using the Moodle iPad app

Wil New發表於

Hi Ken,

Thanks for the quick response, most appreciated.

Regrettably, I truly am a noob to Moodle and don't understand what you mean. I believe you mentioned the Moodle user interface and I've heard of SQL and databases before, but have no idea of how to implement the instructions you gave above regarding SQL or Apache. Sorry, I'd love to give it a go, I'm just not sure how to go about it!

In reply to Wil New

Re: Moodle logs not showing user activity for students using the Moodle iPad app

Ken Task發表於
Particularly helpful Moodlers的相片

No need to apologize.  Everyone has been a noob at one time.  Moodle will 'grow' on ya! [like it not! ;)]  

The things I suggested would probably help only in verifying an iPad user was getting there and info about the version of iOS the iPad was running as the Apache server sees the device.   Could make a difference.  But, for now, just stick with Moodle UI.

Will share one more thing ... in a Moodle 2.8.10 (Build: 20160111) thought I remember having to turn on web services for mobile apps.   After doing so and checking log in Moodle UI noticed references for the 'source' to be 'cli' ... which is "command line".   Would make sense to me IF the iOS Moodle App was using webservices calls for some things.   Have any references in your logs in the course column where 'cli' shows as opposed to 'web' other?

'spirit of sharing', Ken



In reply to Ken Task

Re: Moodle logs not showing user activity for students using the Moodle iPad app

Juan Leyva發表於
Core developers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片

Hi,

for enabling logging in Moodle 2.8 you'd need to install this plugin in your site:

https://docs.moodle.org/30/en/Moodle_Mobile_additional_features

This is an official plugin that comes with some additional Web Services for your version that will enable user actions to be recorded in the Moodle log.

The origin column in the log table will be different, it will say "ws" (means web service, the Mobile app uses web services to retrieve and send information to Moodle).

Juan

評比平均分數:Useful (1)
In reply to Juan Leyva

Re: Moodle logs not showing user activity for students using the Moodle iPad app

Wil New發表於

Hi Juan (and Ken above you),

Thanks for that, most appreciated (and apologies for the late reply - busy times at school!). I have installed the plugin and it seems to be working, although it's not entirely 100% solved. In our logs I can now see a Moodle user who is accessing our Moodle site via an iPad and the "Origin" column does indeed display "ws" for this user, but the "Event Context" column (which for other users shows the specific page that they visited) only shows "System" and doesn't give any specific information. I've included a screenshot to show what it looks like. The screenshot below shows user "Kayla" at the top visiting the page "Course: Stage 5 Commerce" through a web browser and user "Joel" at the bottom, recorded as "System" as opposed to a specific page that I had this user test for me.


Do you know of any way to have the "Event Context" column show the specific page that an iPad user has visited?

Thanks,
Wil.

In reply to Wil New

Re: Moodle logs not showing user activity for students using the Moodle iPad app

Juan Leyva發表於
Core developers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片

Hi Wil,

the log entries you see, are not the one created by the plugin, these log entries are created by the Web Service API layer, if everything is correctly configured, you should see the exact same entries you see with origin "web" but with origin "ws" that should be the only difference.

I think that you've installed the local_mobile plugin but is not properly configured, may I have your site URL to do a remote test? (You can send it to me via a private message)

Juan

In reply to Juan Leyva

Re: Moodle logs not showing user activity for students using the Moodle iPad app

Wil New發表於

Hi Juan,

Thanks again for your assistance yesterday via message with the suggestion that one of the steps to set up the plugin was not yet completed.

I think we're nearly there, but I have one more question. I had the same student log in again and try some pages yesterday, but only the main Course page is logged - the sub-pages that he accessed in the Course "Stage 5 PDH" do not show up in the log. Below is another screenshot of what I'm now seeing.

It's great that I can see the Course that he has looked at, but if there's a way that you know of for the more detailed information of which specific page the user looks at to be displayed, that'd be amazing.

Thanks,
Wil.


In reply to Wil New

Re: Moodle logs not showing user activity for students using the Moodle iPad app

Juan Leyva發表於
Core developers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片

Hi Wil,

can you attach again the screenshot? I don't see it in your post

Juan

In reply to Juan Leyva

Re: Moodle logs not showing user activity for students using the Moodle iPad app

Wil New發表於

Hi Juan,

Sure thing, sorry it didn't come through before. Here it is:


Thanks,
Wil.

In reply to Wil New

Re: Moodle logs not showing user activity for students using the Moodle iPad app

Juan Leyva發表於
Core developers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片

Hi Wil,

when you say the "sub-pages" that he accessed, are you talking about other course modules, course sections?

I'd need to know the exact pages you accessed with the user because the app should log almost everything (but only if you are connected/online at that moment)

BTW, I'd suggest you to look to the log via the Course -> report -> log options, in that way you won't see the log entries for the web services

Juan

In reply to Juan Leyva

Re: Moodle logs not showing user activity for students using the Moodle iPad app

Wil New發表於

Hi Juan,

Thanks for your continued interest in this, it is very much appreciated.

The "sub-pages" that I'm referring to are course sections, I believe. For example, I have a course called "Stage 5 PDH". In this course I have a Folder called "Keynote Slides" and a page called "Videos". The student who I asked to test Moodle for me has been to both of those pages and has recorded the day and time that they visited the page, but their visit is not recorded in the logs except to say that they have visited the course.

The screenshot below shows student Joel accessing the Folder "Keynote Slides" from a MacBook on the 11th February. It then shows him accessing the same folder on both the 17th and 23rd February, but this time from his school iPad. For the times when Joel was using an iPad, only "Course: Stage 5 PDH" is shown in the logs, even though he visited the same folder (the "Keynotes Slides" folder) that was shown previously on the 11th February when he used a MacBook.

Does this help to explain the issue better?

This report was obtained through Course Administration -> Reports -> Logs - is that the area that you suggested I look?

Thanks,
Wil.