In Django, logs are formatted following the configuration stored in the LOGGING
setting. In the native installation, the formatter that is associated to the “tracking” handler is “raw”: edx-platform/logsettings.py at 7686014144930bb9fda4ae8beb66f0392855e55a · openedx/edx-platform · GitHub
In Tutor, that formatter is “standard”: tutor/common_all.py at 38a67e6c64feae4d315008af6d2646308d3acde4 · overhangio/tutor · GitHub
All you have to do to emit tracking logs in the raw format is to create a plugin with the following “openedx-common-settings” patch:
LOGGING["handlers"]["tracking"]["formatter"] = "raw"
Beware that logs emitted in the raw format will not be correctly parsed by Cairn – though we could certainly fix that in the future.