Skip to main content

Site logs data source in Dash

About the Site logs data source and available fields, filters, and conditions (Pro only)

About

The site logs data source allows you to list activity and event logs from across Moodle. This data source is useful for monitoring system activity, tracking security events, or analyzing how users interact with specific resources and settings.

You can find these settings when opening the preferences of a Dash block.


Available fields

These are the building blocks available for your layout:

Site logs

  • Event name

  • Event icon

  • Event color

  • Event description

  • Event class

  • Event URL

  • Event link

  • Event button

  • Event time

  • Time since event

Course

  • Short name

  • Full name

  • Course start date

  • ID number

  • Summary

  • Course URL

  • Course button

  • Course image URL

  • Course image

  • Course image link

  • Format

  • Enable completion tracking

  • Course tags

  • Total activities

  • Users completed

  • Users not completed

  • Status

  • Enrollment options

  • Smart course button

  • Custom course fields (setup individual on your Moodle installation)

Course category

  • Category name

  • Category URL

Users

  • First name

  • Last name

  • Full name

  • Full name linked

  • Email address

  • Username

  • ID number

  • City/town

  • Country

  • Last login

  • Department

  • Institution

  • Address

  • Alternate name

  • First access

  • Description

  • User picture URL

  • User picture

  • User picture (linked to profile)

  • User profile URL

  • User profile link

  • Message URL

  • Message

  • Group

  • Custom user fields (setup individual on your Moodle installation)

Details area

  • Details button

  • Details link

Note: For how to enable and arrange these fields, see Fields preferences. To configure how the details button and link behave, see the Details area preferences.


Available filters

These are the filters available in the data source:

  • Category

  • Course

  • Course start date

  • Course end date

  • Format

  • Course tags

  • Group

  • Enrollment method

  • Enrollment status

  • Enrollment start date

  • Enrollment end date

Note: For how to enable these for your users, see Filters preferences.


Available conditions

You can restrict which courses are included in the block using the following rules:

  • Relations – Filter by specific Moodle roles or relationships.

  • Logged in user – Limits data to the current user.

  • Current course – Limits data to the course the block is currently displayed in.

  • My groups – Only shows users who share a group with the viewer.

  • Self enrollments – Filter content to show only courses where the student used a self-enrollment method.

  • Non-self enrollments – Filter content to show only courses where the student was enrolled manually or via other non-self methods.

  • Courses – Manually select specific courses to display.

  • My enrolled courses – Only shows courses where the current user is enrolled.

  • Course categories – Limits data to courses within selected Moodle categories.

  • Events – Select specific events to display in the block.

Note: For how to apply these restrictions, see Conditions preferences.

Did this answer your question?