Add number room and user id to logs media stats type 32 logs and other

Hello!
We log data from the janus server into apm, but there is a problem that we need to pull out all session ids of users that could be created within one room in order to find out the full picture of statistics in logs with type 32 and subtype 3 (media stats or Report/stats)

At the moment, we first have to filter by room and user id to find all the session ids that could have been created, and sometimes there are many of them

Then make a separate request where all session ids are indicated in the filters to see the full picture of events, not only media but also others

Is it possible to add this field to all logs in Event Handlers so that, by simple filtering, you can find out what kind of logs were associated with this room and, if possible, also the user id that is sent in the request

{
request: “join”,
ptype: “publisher”,
id: …
}

Or is it better for us to change the source code ourselves for our own purposes, but there will be a problem with the janus update; when trying to update, there may be conflicts with our solution

@lorenzo Hello!
Could you give me some advice on this issue?)

@lorenzo Help us please with logging

Sorry but we’re not going to change events pushed by handlers. In case some events reference previous events, you can use other fields (like handle ID, for instance) for correlation purposes.

2 Likes