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

Json logging for puppet db fails

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: PDB 5.2.7
    • Fix Version/s: None
    • Component/s: DOCS, PuppetDB
    • Labels:
      None
    • CS Priority:
      Reviewed
    • Zendesk Ticket IDs:
      33946
    • Zendesk Ticket Count:
      1
    • Release Notes:
      Bug Fix
    • QA Risk Assessment:
      Needs Assessment

      Description

      This case is being raised on behalf of a customer. This was found on version 2018.1.7 and replicated on 2018.1.8.

      Unable to use puppetdb json logging ( https://puppet.com/docs/puppetdb/5.2/logging.html ) as it fails with an error on restart after enabling functionality. 

      Once replaced '<encoder>' with '<encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">'

      ( see screenshot puppetdb-logback.png )

      The restart of the puppetdb fails and produces the following error 

      java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/MappingJsonFactory

      ( see screenshoterror-starting-puppetdb.png )

      Removing class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder" from the encoder allows puppetdb to start again.

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jason.stewart Jason Stewart
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support