Class AccessLogging

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<AccessLoggingBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class AccessLogging
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<AccessLoggingBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    AccessLogging describes how client requests should be logged.
    See Also:
    Serialized Form
    • Method Detail

      • getDestination

        public LoggingDestination getDestination()
        AccessLogging describes how client requests should be logged.
      • setDestination

        public void setDestination​(LoggingDestination destination)
        AccessLogging describes how client requests should be logged.
      • getHttpCaptureCookies

        public List<IngressControllerCaptureHTTPCookie> getHttpCaptureCookies()
        httpCaptureCookies specifies HTTP cookies that should be captured in access logs. If this field is empty, no cookies are captured.
      • setHttpCaptureCookies

        public void setHttpCaptureCookies​(List<IngressControllerCaptureHTTPCookie> httpCaptureCookies)
        httpCaptureCookies specifies HTTP cookies that should be captured in access logs. If this field is empty, no cookies are captured.
      • setHttpCaptureHeaders

        public void setHttpCaptureHeaders​(IngressControllerCaptureHTTPHeaders httpCaptureHeaders)
        AccessLogging describes how client requests should be logged.
      • getHttpLogFormat

        public String getHttpLogFormat()
        httpLogFormat specifies the format of the log message for an HTTP request.


        If this field is empty, log messages use the implementation's default HTTP log format. For HAProxy's default HTTP log format, see the HAProxy documentation: http://cbonte.github.io/haproxy-dconv/2.0/configuration.html#8.2.3


        Note that this format only applies to cleartext HTTP connections and to secure HTTP connections for which the ingress controller terminates encryption (that is, edge-terminated or reencrypt connections). It does not affect the log format for TLS passthrough connections.

      • setHttpLogFormat

        public void setHttpLogFormat​(String httpLogFormat)
        httpLogFormat specifies the format of the log message for an HTTP request.


        If this field is empty, log messages use the implementation's default HTTP log format. For HAProxy's default HTTP log format, see the HAProxy documentation: http://cbonte.github.io/haproxy-dconv/2.0/configuration.html#8.2.3


        Note that this format only applies to cleartext HTTP connections and to secure HTTP connections for which the ingress controller terminates encryption (that is, edge-terminated or reencrypt connections). It does not affect the log format for TLS passthrough connections.

      • getLogEmptyRequests

        public String getLogEmptyRequests()
        logEmptyRequests specifies how connections on which no request is received should be logged. Typically, these empty requests come from load balancers' health probes or Web browsers' speculative connections ("preconnect"), in which case logging these requests may be undesirable. However, these requests may also be caused by network errors, in which case logging empty requests may be useful for diagnosing the errors. In addition, these requests may be caused by port scans, in which case logging empty requests may aid in detecting intrusion attempts. Allowed values for this field are "Log" and "Ignore". The default value is "Log".
      • setLogEmptyRequests

        public void setLogEmptyRequests​(String logEmptyRequests)
        logEmptyRequests specifies how connections on which no request is received should be logged. Typically, these empty requests come from load balancers' health probes or Web browsers' speculative connections ("preconnect"), in which case logging these requests may be undesirable. However, these requests may also be caused by network errors, in which case logging empty requests may be useful for diagnosing the errors. In addition, these requests may be caused by port scans, in which case logging empty requests may aid in detecting intrusion attempts. Allowed values for this field are "Log" and "Ignore". The default value is "Log".
      • getAdditionalProperties

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

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

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