Correlation_id Not Showing in Log Despite Setting x-correlation-id Header

Overview

The correlation_id is not showing in the log despite setting the x-correlation-id header.

Applies To

  • Headers
  • correlation_id

Solution

The correlation log is appended in the references section of the logs when the [header](Request Correlation) is passed in the management API calls. Correlation ID has been enabled for all public cloud customers. Contact Auth0 support to request this feature be enabled for private cloud customer.

Sample Curl call

curl -L -X PATCH 
'https://[your-tenant].[region].auth0.com/api/v2/users/auth0|UserUUID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Correlation-ID: myCorrelationID' \
-H 'Authorization: Bearer eyJ..redacted' \
-d '{"given_name":"abcd"}'

Generated log:

1 Like