Custom fields in logs

We’d like to add custom fields to auth0 logs – in particular error logs, such as a request id that we can use to correlate auth0 logs with the logs in our backend.

For example, instead of:

"details": {
    "error": {
      "message": "Invalid credentials"
    }
  }

we’d like to have:

"details": {
    "error": {
      "message": "Invalid credentials",
      "code": "invalid.credentials",
      "requestId": "12345",
      // etc
    }
  }

Is this possible? I did a quick investigation and couldn’t find a way.

Thanks,

Luis

Hey there!

Unfortunately it’s not doable. You can however file a feature request to our product team via:

You should be contacted then by one of our product managers within 10 business days.