Show
Exporting from table
Login as admin
Navigate to Reports > Logs in site administration
Change All days dropdown to Today, <date> and press Get these logs
Set Download table data as to Javascript Object Notation (.json) and press Download
Open downloaded file in a text editor
Confirm that the exported JSON contains an array of objects as such (where each object property matches the corresponding column from the table):
[[{
"time": "19\/05\/21, 14:46",
"userfullname": "Admin User",
"affecteduser": "-",
"eventcontext": "Front page",
"component": "Logs",
"eventname": "Log report viewed",
"description": "The user with id '2' viewed the log report for the course with id '1'.",
"origin": "web",
"ipaddress": "172.20.0.1"
},{
...
},
Exporting forum posts
Create a new course
Navigate to Announcement forum
Add a new topic
Open the Actions menu and press Export
Set Format to Javascript Object Notation (.json) and press Export
Open downloaded file in a text editor
Confirm that the exported JSON contains an array of objects as such:
[[{
"id": 1,
"discussion": 1,
"parent": 0,
"userid": 2,
"userfullname": "Admin User",
"created": 1621431779,
"modified": 1621431779,
"mailed": 0,
"subject": "ASF",
"message": "<p dir=\"ltr\" style=\"text-align:left;\">ASdaf<br \/><\/p>",
"messageformat": 1,
"messagetrust": 0,
"attachment": 0,
"totalscore": 0,
"mailnow": 0,
"deleted": 0,
"privatereplyto": 0,
"privatereplytofullname": null,
"wordcount": 1,
"charcount": 5
}]]