Skip to content

[FEATURE] handle multiple CustomLog directives #386

@boileaum

Description

@boileaum

Is your feature request related to a problem?

Handle multiple CustomLog directives in the same config file (see https://httpd.apache.org/docs/2.4/fr/mod/mod_log_config.html#customlog).

Describe the solution you'd like

The following apache config example:

CustomLog /var/log/apache2/access.log combined
CustomLog "|/usr/bin/logger -t apache -p local6.info" combined

could be translated into the pillar file as:

apache:
  sites:
    default:
      CustomLog:
         - /var/log/apache2/access.log combined
         - "|/usr/bin/logger -t apache -p local6.info" combined

Describe alternatives you've considered

A personal hack independent of this formula.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions