How to store/log roomName, participant display name

Using the API, I know how to add an event listener for videoConferenceJoined, I want to know in which file(which location to be exact) I should add an event listener for this event in my jitsi meet server installed in Ubuntu. I want to store these data in a firebase database(when a room is created, when a participant leaves/joins etc). Please help

The proper place for this is to create a prosody module which can execute some logic internally or hitting an external service using REST. For example this module listens for join/leave events and room create/destroy events: https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_speakerstats_component.lua