Gerrit has an event stream which is available with appropriate permissions by using ssh -p 29418 gerrit.wikimedia.org gerrit stream-events. It generates a stream a json events and Zuul use that. https://gerrit.wikimedia.org/r/Documentation/cmd-stream-events.html
There is a Gerrit plugin, events-kafka, which can turn Gerrit into a Kafka producer generating events:
https://gerrit.googlesource.com/plugins/events-kafka/+/refs/heads/master/src/main/resources/Documentation
We should check how to set it up and whether we can send that to our data lake. From a brief discussion with analytics, they require some specific fields: https://wikitech.wikimedia.org/wiki/Event_Platform/Schemas/Guidelines#Required_fields
There is a JSONSchema mentioned, I don't think I have ever seen that in Gerrit core.
Would also need to read https://wikitech.wikimedia.org/wiki/Event_Platform