Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-6467

syslog audit event handler created although required property not set

    Details

      Description

      syslog audit event handler created although felix console displays Unable to create SyslogAuditEventHandler 'syslog': null

      Steps:
      1. run default openidm
      2. create syslog audit event handler with TCP protocol and without specifying connection timeout

      {"class":"org.forgerock.audit.handlers.syslog.SyslogAuditEventHandler","config":{"protocol":"TCP","host":"localhost","port":1469,"connectTimeout":0,"facility":"KERN","severityFieldMappings":[],"buffering":{"enabled":false},"name":"syslog","topics":["config","activity","authentication","access","recon","sync"],"enabled":true}}

      3. save
      4. UI displays Audit configurations have been saved and event handler is visible in UI
      5. felix console displays

      Unable to create SyslogAuditEventHandler 'syslog': null
      org.forgerock.audit.AuditException: Unable to create SyslogAuditEventHandler 'syslog': null
             	at org.forgerock.audit.events.handlers.DependencyProviderAuditEventHandlerFactory.create(DependencyProviderAuditEventHandlerFactory.java:60)
             	at org.forgerock.audit.AuditServiceBuilder.buildAuditEventHandlers(AuditServiceBuilder.java:212)
             	at org.forgerock.audit.AuditServiceBuilder.build(AuditServiceBuilder.java:198)
      ...
      Caused by: java.lang.IllegalArgumentException: Syslog 'connectTimeout' is required for TCP connections
             	at org.forgerock.util.Reject.ifTrue(Reject.java:207)
             	at org.forgerock.audit.handlers.syslog.SyslogAuditEventHandler.<init>(SyslogAuditEventHandler.java:86)
             	... 29 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jason Jason Lemay
                Reporter:
                markg Mark Gibson
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: