Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-3884

Improve default logging configuration for PuppetDB

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDB 6.0.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      PuppetDB
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Hide
      If using the default logback.xml configuration, PuppetDB should notice log config file changes every 60 seconds. Recent versions of PuppetDB had stopped noticing as a result of changes to Trapperkeeper (TK-426).
      Show
      If using the default logback.xml configuration, PuppetDB should notice log config file changes every 60 seconds. Recent versions of PuppetDB had stopped noticing as a result of changes to Trapperkeeper ( TK-426 ).

      Description

      The default logback configuration bundled with the puppetdb and pe-puppetdb packages can be improved by:

      • Updating the configuration to no longer require a service restart or reload
        in order for changes to be picked up (TK-426).
      • Formatting timestamps in application logs to include the time zone in order
        to enable debugging of geographically distributed installations (PE-13490).

      These changes will allow DEBUG logging to be enabled without requiring a restart
      or reload that may destroy application state and improve the usefulness of log
      data from installations that span multiple time zones.

      Recommendations:

      • Logback configuration should include scanPeriod="60 seconds" to allow
        log levels and other settings to be adjusted without requiring service
        restarts or reloads.
      • Logback patterns for application logs should use a RFC 3339
        compatible representation that includes the Time Zone. A Java
        SimpleDateFormat that works with logback is:

      %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  chuck Charlie Sharpsteen
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: