Class PolicyAuditConfig

    • Constructor Detail

      • PolicyAuditConfig

        public PolicyAuditConfig()
        No args constructor for use in serialization
      • PolicyAuditConfig

        public PolicyAuditConfig​(String destination,
                                 Long maxFileSize,
                                 Integer maxLogFiles,
                                 Long rateLimit,
                                 String syslogFacility)
    • Method Detail

      • getDestination

        public String getDestination()
        destination is the location for policy log messages. Regardless of this config, persistent logs will always be dumped to the host at /var/log/ovn/ however Additionally syslog output may be configured as follows. Valid values are: - "libc" -> to use the libc syslog() function of the host node's journdald process - "udp:host:port" -> for sending syslog over UDP - "unix:file" -> for using the UNIX domain socket directly - "null" -> to discard all messages logged to syslog The default is "null"
      • setDestination

        public void setDestination​(String destination)
        destination is the location for policy log messages. Regardless of this config, persistent logs will always be dumped to the host at /var/log/ovn/ however Additionally syslog output may be configured as follows. Valid values are: - "libc" -> to use the libc syslog() function of the host node's journdald process - "udp:host:port" -> for sending syslog over UDP - "unix:file" -> for using the UNIX domain socket directly - "null" -> to discard all messages logged to syslog The default is "null"
      • getMaxFileSize

        public Long getMaxFileSize()
        maxFilesSize is the max size an ACL_audit log file is allowed to reach before rotation occurs Units are in MB and the Default is 50MB
      • setMaxFileSize

        public void setMaxFileSize​(Long maxFileSize)
        maxFilesSize is the max size an ACL_audit log file is allowed to reach before rotation occurs Units are in MB and the Default is 50MB
      • getMaxLogFiles

        public Integer getMaxLogFiles()
        maxLogFiles specifies the maximum number of ACL_audit log files that can be present.
      • setMaxLogFiles

        public void setMaxLogFiles​(Integer maxLogFiles)
        maxLogFiles specifies the maximum number of ACL_audit log files that can be present.
      • getRateLimit

        public Long getRateLimit()
        rateLimit is the approximate maximum number of messages to generate per-second per-node. If unset the default of 20 msg/sec is used.
      • setRateLimit

        public void setRateLimit​(Long rateLimit)
        rateLimit is the approximate maximum number of messages to generate per-second per-node. If unset the default of 20 msg/sec is used.
      • getSyslogFacility

        public String getSyslogFacility()
        syslogFacility the RFC5424 facility for generated messages, e.g. "kern". Default is "local0"
      • setSyslogFacility

        public void setSyslogFacility​(String syslogFacility)
        syslogFacility the RFC5424 facility for generated messages, e.g. "kern". Default is "local0"
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)