Project

Profile

Help

Task #3289

Support for X-Correlation-ID HTTP REST header

Added by lzap@redhat.com over 2 years ago. Updated 3 months ago.

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

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

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, Pulp logs have correlation ids in the logs of all servicesASSIGNED

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

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

#3 Updated by bmbouter almost 2 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.

#4 Updated by bmbouter over 1 year ago

  • Status changed from NEW to CLOSED - WONTFIX

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

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

#8 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

#9 Updated by bmbouter 8 months ago

  • Related to Story #4689: As a user, Pulp logs have correlation ids in the logs of all services added

#10 Updated by bmbouter 3 months ago

  • Category deleted (14)

We are removing the 'API' category per open floor discussion June 16, 2020.

Please register to edit this issue

Also available in: Atom PDF