Project

Profile

Help

Task #3289

Support for X-Correlation-ID HTTP REST header

Added by lzap@redhat.com about 2 years ago. Updated 10 months ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
API
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

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

Related to Pulp - Story #4689: As a user, I can configure pulp to accept a correlation id header NEW Actions

History

#2 Updated by lzap@redhat.com over 1 year 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

#3 Updated by bmbouter about 1 year 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.

#4 Updated by bmbouter 10 months ago

  • Status changed from NEW to CLOSED - WONTFIX

#5 Updated by lzap@redhat.com 10 months 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.

#6 Updated by bmbouter 10 months 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.

#7 Updated by dkliban@redhat.com 10 months ago

I filed a Pulp 3 story to track this effort: https://pulp.plan.io/issues/4689

#8 Updated by bmbouter 10 months ago

  • Tags Pulp 2 added

#9 Updated by bmbouter 5 days ago

  • Related to Story #4689: As a user, I can configure pulp to accept a correlation id header added

Please register to edit this issue

Also available in: Atom PDF