Forwarding Open edX xAPI events to an external LRS

Forwarding Open edX xAPI events to your own learning record store is a configuration and data-governance project, not only a plugin install. This page covers when to do it, how it fits with Aspects, and what to verify.

On this page

Forwarding Open edX xAPI events to an external LRS: when a team needs it

Forwarding Open edX xAPI events to an external LRS sends the platform's tracking logs, converted into xAPI statements by the event-routing-backends plugin, to a learning record store your organization controls. Teams usually need this when they want learner activity to live in a store they own and govern, either alongside Aspects so that a second system can read the same statements, or instead of Aspects where the reporting stack is already built around another LRS. The decision is about where the statements must be kept, who can query them, and which systems need them, not about whether the platform can produce them.

The Open edX Aspects documentation describes event-routing-backends as the plugin that captures tracking logs as xAPI statements, and the Aspects pipeline then stores them in ClickHouse through Ralph or Vector. That means the statements already exist inside the Aspects pipeline before any forwarding is configured. Before you scope the work, confirm in the current Tutor and event-routing-backends documentation which backend settings control the destination endpoint, authentication, and which event types are forwarded, and whether forwarding can run in parallel with Aspects without duplicating statements in shared storage.

The main risks sit in the decisions around the store itself. Decide who owns the LRS credentials, how statements are retained and deleted, and whether any statement contains personal data that your privacy review must cover. Plan a test course with known learner actions, compare the statements that arrive in your LRS against the tracking logs, and record any gaps before course teams depend on the feed. Confirm the supported xAPI version and vocabulary your LRS expects against what the plugin emits.

Alongside Aspects or instead of Aspects

This option keeps the Aspects reporting stack in place and adds a second destination for the same tracking events. Aspects already captures tracking logs through the event-routing-backends plugin as xAPI statements, so the external LRS receives a copy while course teams keep their Superset dashboards. The team gains an independent statement archive it controls, which is useful when reports or audits need data outside the analytics database. The cost is running two systems that must agree on what was emitted.

  • Gains: a second, team-owned copy of statements alongside existing Aspects dashboards.
  • Runs: Aspects (ClickHouse, Ralph or Vector, Superset) plus the LRS and its storage, backups and upgrades.
  • Governs: the same pseudonymous identifiers in both stores, separate retention periods, and separate access lists for each system.
  • Watch for: drift between the two destinations if one fails or is misconfigured during an upgrade.
  • Operating note: test that a single learner action produces matching statements in both places.

Confirm the event-routing-backends configuration keys for your Aspects version before you add a second backend, and confirm that your chosen LRS accepts the statement format and authentication method it needs.

Configuration options and when each fits

This table compares the three main decisions: forwarding LMS tracking events through event-routing-backends, running the Aspects ClickHouse pipeline in parallel, and choosing where the LRS runs. Read each row as a question to settle before configuration starts, and use the last column as your checklist for the vendor or internal team.

OptionWhat it changesWho operates itWhen it fitsWhat to confirm
Forward from the LMS with event-routing-backendsTracking events from the LMS are sent as xAPI statements to an endpoint you name, using settings in the Tutor configurationYour platform team runs the LMS side; the LRS team runs the receiving endYou need statements in an LRS you already govern, or in a store your own analytics tools readWhich event types the plugin forwards, and whether your LRS accepts the statement shapes it sends
Keep the Aspects ClickHouse pipeline in parallelBoth the Aspects pipeline and the external LRS receive the same tracking logs, so two copies of the data existPlatform team for both, plus whoever runs ClickHouse and SupersetCourse teams already use Aspects dashboards and you want an external LRS for other systemsWhether the two destinations can fail independently, and who monitors each one
Replace Aspects with the external LRSAspects is not the reporting path; dashboards and reports must be built on the LRS dataYour analytics or data team owns reportingYour reporting stack is already standardized and Aspects dashboards are not requiredWhich course team reports you must rebuild, and whether any Aspects-only features are needed
Self-hosted LRS in your infrastructureYou run the LRS, its database, backups and access controlsYour platform or data teamData must stay in environments you control, or your security review requires itStorage sizing, backup restore tests, and the LRS vendor's support and upgrade terms
Managed LRS hosted by a vendorThe LRS runs outside your infrastructure, under the vendor's operating modelThe vendor operates the service; you manage credentials and data flowYou want less operational work and your data handling terms allow itData location, retention, subprocessors, export options and the contract's exit terms
Endpoint authentication and credentialsEach forwarding path needs credentials that the LRS accepts, stored in your secrets systemPlatform team, with the LRS team issuing keysAny setup that sends statements across a network boundaryHow keys are issued, rotated and revoked, and which accounts may write statements
Learner identifiers in statementsStatements can carry identifiers that tie activity to a person, which changes who may read the dataPrivacy or compliance lead with the platform teamReports must stay pseudonymous or a privacy review appliesWhich identifier fields are sent by default and which plugins add personal data
Current release and plugin versionPlugin behavior and settings depend on the Open edX release running in your Tutor deploymentPlatform teamEvery new named release or plugin updateThat the plugin version matches your release, since Open edX supports only the latest named release

How to set up xAPI forwarding to an LRS in order

This sequence takes a running Open edX platform from a confirmed release and Tutor version to verified xAPI statements arriving in your own learning record store. Each step ends with a check, so a failure is caught before statements reach production reporting.

  1. Confirm the Open edX release and Tutor version

    The platform engineer records the Open edX release running in production, the Tutor version that deploys it, and the event-routing-backends version your build pins. Compatibility between these three determines which configuration keys and plugin hooks apply, so the team checks the plugin's compatibility against the release before changing anything. Done means a written version record exists for the LMS and Studio images, and a copy of the current configuration is saved so the change can be reverted.

  2. Confirm event-routing-backends and tracking log routing

    The platform engineer confirms that event-routing-backends is installed in the LMS image and that tracking events are routed to it, using the plugin's documented settings for the tracking backend. Confirm which event types the plugin processes and whether any events already go to a separate Aspects pipeline. Done means a test event produced by a learner action in a sandbox course appears in the routing backend's logs, or the team has a written list of the gaps to fix.

  3. Define the xAPI statement scope and identifiers

    The analytics lead and the course team agree which events become statements, which verbs and activity types map to each event, and how learners, courses and units are identified. Decide whether learner identifiers are pseudonymous or direct, because that choice drives data protection review and access rules in the LRS. Done means a signed-off mapping table lists every forwarded event, its xAPI verb, its object identifier pattern and the privacy classification of each identifier.

  4. Configure the LRS endpoint and credentials

    The platform engineer creates a dedicated LRS account for the LMS with the narrowest write permissions the LRS supports, then stores the endpoint and credentials in the secrets store used by the deployment rather than in plain configuration files. Confirm the endpoint uses TLS and that the LRS accepts the xAPI version your mapping was written for. Done means a manual test statement sent with those credentials is accepted by the LRS and is visible to the team member who owns the store.

  5. Test forwarding with a non-production course

    The engineer enables forwarding on a staging LMS and creates a non-production course with a fixed set of test activities, such as one video, one problem and one discussion post, performed by test accounts. Each action is recorded so the expected statements are known in advance. Done means the LRS receives statements for every mapped event, failed deliveries appear in the logs with a clear error, and no statement contains data outside the mapping table.

  6. Verify statement counts and content against LMS events

    The analytics lead compares the number of recorded test actions with the number of statements in the LRS, then checks a sample of statements field by field against the mapping table, including timestamps, verbs, object identifiers and result fields. Repeat the comparison after a deliberate delivery failure to confirm retries or gaps are visible. Done means the counts match, every sampled statement is correct, and the team has written the reconciliation method so future checks follow the same steps.

  7. Document the setup and decide the Aspects relationship

    The platform engineer and analytics lead record the final configuration, the mapping table, the credential rotation owner and the reconciliation procedure, and state whether the LRS runs alongside Aspects or replaces it. Running both means the team must confirm that the two pipelines do not duplicate statements in shared stores. Done means the runbook is stored with the platform documentation and the production change is approved by the data owner.

How LMS tracking events reach an external LRS

The flow starts in the LMS, where tracking logs record learner activity. The event-routing-backends plugin converts those events into xAPI statements, which are the hand-off point for both paths. One branch sends statements to your own LRS across a trust boundary, and an optional branch feeds the Aspects pipeline, where Ralph or Vector writes to ClickHouse. Check what crosses the boundary, including learner identifiers, and which branch each team relies on.

Tracking events become xAPI statements that branch to an external LRS or Aspects.

Security and privacy controls for forwarded learner data

Forwarding tracking events to an external LRS moves learner activity out of the LMS and into a store you must protect on its own terms. The cards below cover what goes into each statement, how it travels and is authenticated, who can read it, how long it lives, where it runs, and how failures are recorded. Each item is a decision for your own security and privacy review, and none of them is a certification claim.

Pseudonymous or identified statements

Decide before the first statement is sent whether the actor is a pseudonymous identifier or a directly identifying value such as an email address or name. Review the event-routing-backends mapping for each event type, because the same plugin can emit different identifiers depending on configuration. Confirm which fields leave the LMS with a sample of real statements from a test course, and check whether free-text fields or IP-derived data are included.

edx-platform repository

Transport encryption and credential handling

Statements should travel only over TLS to the LRS endpoint, with certificate validation enabled in the forwarding code path. Store the LRS credential in your secrets system, not in a settings file committed to a repository, and give the LMS a dedicated key that can write statements but cannot read them back. Plan rotation as a recurring task, and record who holds the key and when it was last changed.

Access control on the LRS

Treat the LRS as a store of personal data with its own role model. Separate write access for the LMS, read access for course teams and analysts, and administrative access for platform operators. Confirm that the LRS supports per-client scopes and audit logs for reads, since course-team reports often need only aggregated views.

Retention and deletion of statements

Set a retention period for statements that matches your data protection commitments and the purpose of each report. Confirm that the LRS can delete statements by actor or by time range, and that deletions reach backups on a schedule you can state. Ask whether the LRS treats statements as immutable records, since that affects how you honor erasure requests.

Separation of the LRS from LMS servers

Run the LRS on infrastructure that is separate from the LMS web and worker nodes, with its own network boundary and database. This limits the blast radius if the LMS is compromised and keeps analytics load from competing with learner traffic. Document which subnets and service accounts can reach the LRS, and test that the LMS cannot query it directly outside the forwarding path.

Logging of forwarding failures

Log every failed send with the event type, time, HTTP status and a non-identifying reference to the event, but never the full statement body or credentials. Set an alert on sustained failure, because dropped statements leave silent gaps in course reports. Review these logs as part of your incident process, since a failure burst can also signal a misconfiguration that exposed data to the wrong endpoint.

Questions buyers ask before forwarding xAPI to an LRS

How much effort and cost should we expect to forward Open edX xAPI events to an LRS?

Effort follows the scope you agree in writing, so the main cost drivers are the number of event types you forward, the LRS you choose, the governance review your data owners require, and the testing you need before go-live. Each driver adds work on a different side. Forwarding a narrow set of statements from a few courses is far smaller than forwarding every tracking event from a whole platform. An LRS you already run costs less to integrate than one you must provision and secure. Ask any partner for a quote that lists these four drivers separately, and ask which of them are one-time work and which recur, such as connector upkeep and retesting after upgrades.

How long does an xAPI forwarding project take on Open edX?

Duration depends on the same drivers as cost: how many event types are in scope, whether the LRS is ready to receive statements, how long data owners take to approve what leaves the platform, and how many test courses you need to verify each statement shape. A project with a short, agreed event list and an LRS already in place moves faster than one that needs new infrastructure and a privacy review. Ask for a timeline tied to named milestones, and confirm which approvals sit on your side of the schedule.

What must our team provide before the work starts?

You need to provide the following before implementation can begin:

  • LRS access, including an endpoint, credentials for a dedicated account, and confirmation of the xAPI version it accepts
  • Decisions from data owners on which learner fields may leave the platform and how long the LRS keeps them
  • Test courses, enrolled test learners and a staging Open edX environment where statements can be checked safely

Missing any of these usually delays the project more than the technical work does.

Can our own engineers build xAPI forwarding without outside help?

Yes, if your team already runs Open edX with Tutor and has someone comfortable with Python, Django settings and xAPI statement structure. The work involves installing and configuring the event-routing-backends plugin, mapping tracking events to statements, handling failed deliveries, and testing each event type. Teams with no prior Open edX operations experience usually take longer and carry more risk during upgrades. Ask your team to name an owner for the plugin configuration and for reviewing statements after each platform change.

Does forwarding xAPI to an external LRS replace Aspects?

Not by default. Aspects captures tracking logs through event-routing-backends, stores statements in ClickHouse through Ralph or Vector, and presents them in Superset dashboards. An external LRS receives the same kind of xAPI statements through a separate route, so you can run both, or send statements only to your LRS and build reports there. Choosing instead of Aspects means you take on the storage, reporting and dashboard work that Aspects otherwise provides. Decide this with the course team's reporting needs in view.

How does xAPI forwarding affect Open edX upgrades?

Each named Open edX release changes the events the platform emits and the plugins that route them, so forwarding configuration must be retested after every upgrade. The latest named release is the only supported release, so plan upgrades as a recurring task rather than a one-time build. Verify statement output in staging for each event type after an upgrade, and confirm with your partner how plugin version pins will be managed. Ask whether retesting is part of an upgrade quote or a separate line item.

What should we check about governance and privacy before forwarding statements?

Check which personal identifiers each statement carries, where the LRS stores them, who can query them, and how long they remain. Statements can include learner identifiers, course details and timestamps, so the data owner should approve the exact field list before any statement leaves your infrastructure. Keep the LRS in a location that your compliance team has reviewed. Ask any partner to show the field mapping in writing as part of the design phase.

Running xAPI forwarding after launch

Once statements reach your LRS, the forwarding path needs an owner who watches it every week, not just at launch. Start by monitoring the event-routing-backends side for failed sends, retries and dropped events, and alert on the gap between tracking log volume and statements accepted by the LRS. A forwarder that fails quietly looks healthy in the LMS while your reports slowly go stale. Agree on who receives those alerts, what counts as an incident, and how far back you will replay events after an outage. Confirm with your LRS vendor or operator how they report rejected statements, since a silent rejection is the most common way a forwarding gap goes unnoticed.

Upgrades are the change most likely to break forwarding. Each Open edX release can alter the tracking events the platform emits, the fields inside them, or the plugins that map them to statements. Upgrades are covered in detail by the Open edX upgrades group, so treat that work as a standing release gate rather than an afterthought. Verawood is the current named release, and Open edX supports only the latest named release at a time, so plan your upgrade cadence around that. Before each upgrade, compare a sample of emitted events and resulting statements against the previous version, and keep a test course that exercises quizzes, video, discussions and enrollment.

Statement schemas and LRS capacity also need periodic review. Keep a written mapping of every verb and object your team emits, and review it whenever course teams request new interactions or custom XBlocks start publishing events. On capacity, ask your LRS operator what sustained write rate, storage growth and retention limits apply, and set a retention period that matches your policy and your data protection obligations. Schedule a regular access review covering LRS accounts, API credentials used by the forwarder, and the people who can query learner-level statements. Revoke credentials for departed staff, rotate forwarder keys on a set schedule, and record each review so it can be shown to an auditor.

How DeployOpen works on this

DeployOpen scopes forwarding Open edX xAPI events to an external LRS as a written, fixed-scope piece of work inside your own infrastructure. We confirm which tracking events leave the platform, where they land, and how they are tested and handed over, so your data team and security reviewers can check the setup before it runs in production.

How we scope

  • Inventory the event types your LRS must receive, and which Open edX tracking events map to them.
  • Confirm the target LRS, its xAPI version support, endpoint location and credential handling in writing.
  • Agree in writing whether forwarding runs alongside Aspects or replaces it, with owners named for each pipeline.

How we build

  • Install and configure event-routing-backends in your Tutor-based deployment, with settings kept in version-controlled configuration.
  • Build and test the mapping from Open edX events to xAPI statements, including actor, verb and object fields.
  • Verify delivery with test courses, failed-request handling and a review of what personal data each statement carries.

How we hand over

  • Document the event mapping, configuration keys, credentials location and the steps to add a new event type.
  • Provide a test plan and results showing statements received by the LRS for each agreed event type.
  • Walk your operations and data teams through monitoring, retries and the runbook for a failed forwarding job.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer when your Open edX release changes.
  • Retest forwarding after each platform upgrade or Tutor plugin change, since event fields can shift between releases.
  • Confirm with your team which support hours, response paths and change process apply before the engagement starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.