Bug 1426404

Summary: [RFE] Backport session/request id in logs
Product: Red Hat Satellite Reporter: Satellite Program <pm-sat>
Component: WebUIAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Evgeni Golov <egolov>
Severity: low Docs Contact:
Priority: low    
Version: 6.2.5CC: bkearney, cduryee, chrobert, egolov, jcallaha, lzap
Target Milestone: UnspecifiedKeywords: FutureFeature, PrioBumpField, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: All   
URL: http://projects.theforeman.org/issues/15863
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1408420 Environment:
Last Closed: 2018-02-21 12:38:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1408420    
Bug Blocks:    

Comment 2 Evgeni Golov 2017-08-09 12:39:35 UTC
VERIFIED

Version Tested:
Satellite-6.3 Snap 10
foreman-1.15.2-1.el7sat.noarch
satellite-6.3.0-16.0.beta.el7sat.noarch

# grep pattern /etc/foreman/logging.yaml 
  :pattern: "%d %.8X{request} [%c] [%.1l] %m\n"

Example log excerpt:
2017-08-09 12:36:34 614be896 [app] [I] Started GET "/node/sat63-qa-rhel7-puppet4.kangae.example.com?format=yml" for 192.168.121.175 at 2017-08-09 12:36:34 +0000
2017-08-09 12:36:34 614be896 [app] [I] Processing by HostsController#externalNodes as YML
2017-08-09 12:36:34 614be896 [app] [I]   Parameters: {"name"=>"sat63-qa-rhel7-puppet4.kangae.example.com"}
2017-08-09 12:36:34 614be896 [app] [I] Current user: foreman_api_admin (administrator)
2017-08-09 12:36:34 614be896 [app] [I]   Rendered text template (0.0ms)
2017-08-09 12:36:34 614be896 [app] [I] Completed 200 OK in 126ms (Views: 0.4ms | ActiveRecord: 11.3ms)

Comment 5 errata-xmlrpc 2018-02-21 12:38:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336