Task #3289
closedSupport for X-Correlation-ID HTTP REST header
0%
Description
Hello, in Satellite 6 we send X-Correlation-ID HTTP header to backend systems for syslog correlation. We need this string (usually a hexa string 6-10 characters but can be arbitrary string) to be present in all logs related to this request. This should be configurable for syslog logger (usually via format wildcards like %correlation_id) in configuration file, but this is not a must.
When you support systemd-journald this must be added to all logs as well via explicit field named CORRELATION_ID.
I think I requested this feature already but cannot find it, close if you find it thanks.
Related issues
Updated by lzap@redhat.com almost 7 years ago
Created Katello task: http://projects.theforeman.org/issues/22296
Updated by lzap@redhat.com over 6 years ago
The following tickets are needed in order to improve logging in Foreman:
https://pulp.plan.io/issues/3372
https://pulp.plan.io/issues/3289
https://pulp.plan.io/issues/3288
Updated by bmbouter about 6 years ago
To do this in all the places, the correlation ID would need to be known at the webserver, the resource manager, and the workers.
Updated by bmbouter over 5 years ago
- Status changed from NEW to CLOSED - WONTFIX
Updated by lzap@redhat.com over 5 years ago
Hey, this is a recognized Satellite 6 feature, was this close intentional? Pulp is the only component we are waiting for to provide this capability, it's been implemented for everything else. You are scheduled as last since heavy work on Pulp 3, but we need this feature. Thanks for info.
Updated by bmbouter over 5 years ago
With Pulp3 I think this should work already by the user installing a package like django-cid and configuring the cid variable in a custom formatter. If there is more we need to do in Pulp3 to support this we can re-open, just let us know.
Updated by dkliban@redhat.com over 5 years ago
I filed a Pulp 3 story to track this effort: https://pulp.plan.io/issues/4689
Updated by bmbouter almost 5 years ago
- Related to Story #4689: As a user, Pulp logs have correlation ids in the logs of all services added
Updated by bmbouter over 4 years ago
- Category deleted (
14)
We are removing the 'API' category per open floor discussion June 16, 2020.