Project

Profile

Help

Task #3289

closed

Support for X-Correlation-ID HTTP REST header

Added by lzap@redhat.com almost 7 years ago. Updated over 4 years 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 servicesCLOSED - CURRENTRELEASEdaviddavis

Actions
Actions #2

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

Actions #3

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.

Actions #4

Updated by bmbouter over 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #5

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.

Actions #6

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.

Actions #7

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

Actions #8

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added
Actions #9

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
Actions #10

Updated by bmbouter over 4 years ago

  • Category deleted (14)

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

Also available in: Atom PDF