Bug 1473278 - [RFE] support changes of HTTPD logging config via S2I build in php image
[RFE] support changes of HTTPD logging config via S2I build in php image
Product: Red Hat Software Collections
Classification: Red Hat
Component: rh-php70-docker (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: 3.1
Assigned To: Remi Collet
BaseOS QE - Apps
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2017-07-20 07:55 EDT by Carsten Lichy-Bittendorf
Modified: 2018-04-11 10:31 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2018-04-11 10:31:18 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Carsten Lichy-Bittendorf 2017-07-20 07:55:14 EDT
Proposed title of this feature request
 - support changes of logging config via S2I build in php image

Who is the customer behind the request?
 -    Account: name (acct #): La Poste - 5366280
 -    TAM customer: yes

What is the nature and description of the request?
 - the customer likes to be able to adjust the logging configuration of the httpd via S2I build
 - today, the logging config is part of the httpd.conf, which is write protected for group and others. So it can't get changed in scope of S2I

Why does the customer need this? (List the business requirements here)
 - the logging format need to get adjusted to have the logs in json format to be abble to process all logs in the same format.

How would the customer like to achieve this? (List the functional requirements here)
 - A looging.conf file containing a default logging config should be added to the config.d folder with file-permission allowing adjustments furing S2I build
 - inactivate the lines containing the default logging config in httpd.conf.
 This would allow to make the logging config configurable, while all other settings in httpd.conf are still protected.

For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.
 - apply a change to the looging.conf file in a S2I build and check if this results in the expected logging format/location.

Is there already an existing RFE upstream or in Red Hat Bugzilla?
 - Non found so far

Does the customer have any specific time-line dependencies and which release would they like to target (i.e. RHEL5, RHEL6)?

Is the sales team involved in this request and do they have any additional input?
 - Sales is looped in, so no further input.

List any affected packages or components.
 - php70-rhel7 image
 - to the customer makes sense to apply the solution also to other images packaging Apache httpd

Would the customer be able to assist in testing this functionality if implemented?
 - yes
Comment 7 François Cami 2018-04-11 10:31:18 EDT
This can be solved with the existing image by adding a file to the configuration directory, and include all needed logging directives in a VirtualHost:

<VirtualHost *:80>
CustomLog "logs/access2_log" combined

Note You need to log in before you can comment on or make changes to this bug.