Auth0 Home Blog Docs

Improving the logs!



Not sure if the following are possible, but if they are, they would be very helpful:

  1. Consistent log formatting: Each log has a type and the format of the log (other than being JSON) varies from type to type. E.g., one log type might report user_id, another might report username or email, and others might report some combination of those. It would help if user_id and email we always reported, username if present, and all three at the top of the log entry (in addition to whatever might be under details). There’s nickname vs. username, and some of the log types substitute user_name for username. And apparently not all ‘user delete’ log events are sdu type events. User deletes can also be sapi events with a “Deleted user” description. All this variability makes it very difficult to grok the logs when troubleshooting. E.g., I had an alert set up in Sumologic for user delete events… but it only triggered on sdu events, not sapi + descripton=“Deleted user”.

  2. Log the source client name / ID on sapi log types. Right now only the tenant ID is recorded. There’s no way to know which client updated a users profile. If possible, include an identifier for the user (management dashboard user, delegated admin dashboard user, etc.) who made the change, if the change was made by a user. There’s no chain connecting ‘user profile updated’ back to a person / client / api.

  3. Probably not possible, but a some sort of session ID that links related logs would be amazingly useful. We could check the logs for an event of interest, grab the session ID and then pull all the logs related to that session.



Per the following post we have moved to a new way of gathering product feedback from the community. This specific feature request has been added to the new process.