Class AccessLogging
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.v1.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
-
-
Constructor Summary
Constructors Constructor Description AccessLogging()No args constructor for use in serializationAccessLogging(LoggingDestination destination, List<IngressControllerCaptureHTTPCookie> httpCaptureCookies, IngressControllerCaptureHTTPHeaders httpCaptureHeaders, String httpLogFormat, String logEmptyRequests)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessLoggingBuilderedit()Map<String,Object>getAdditionalProperties()LoggingDestinationgetDestination()AccessLogging describes how client requests should be logged.List<IngressControllerCaptureHTTPCookie>getHttpCaptureCookies()httpCaptureCookies specifies HTTP cookies that should be captured in access logs.IngressControllerCaptureHTTPHeadersgetHttpCaptureHeaders()AccessLogging describes how client requests should be logged.StringgetHttpLogFormat()httpLogFormat specifies the format of the log message for an HTTP request.StringgetLogEmptyRequests()logEmptyRequests specifies how connections on which no request is received should be logged.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDestination(LoggingDestination destination)AccessLogging describes how client requests should be logged.voidsetHttpCaptureCookies(List<IngressControllerCaptureHTTPCookie> httpCaptureCookies)httpCaptureCookies specifies HTTP cookies that should be captured in access logs.voidsetHttpCaptureHeaders(IngressControllerCaptureHTTPHeaders httpCaptureHeaders)AccessLogging describes how client requests should be logged.voidsetHttpLogFormat(String httpLogFormat)httpLogFormat specifies the format of the log message for an HTTP request.voidsetLogEmptyRequests(String logEmptyRequests)logEmptyRequests specifies how connections on which no request is received should be logged.AccessLoggingBuildertoBuilder()
-
-
-
Constructor Detail
-
AccessLogging
public AccessLogging()
No args constructor for use in serialization
-
AccessLogging
public AccessLogging(LoggingDestination destination, List<IngressControllerCaptureHTTPCookie> httpCaptureCookies, IngressControllerCaptureHTTPHeaders httpCaptureHeaders, String httpLogFormat, String logEmptyRequests)
-
-
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.
-
getHttpCaptureHeaders
public IngressControllerCaptureHTTPHeaders getHttpCaptureHeaders()
AccessLogging describes how client requests should be logged.
-
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".
-
edit
public AccessLoggingBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<AccessLoggingBuilder>
-
toBuilder
public AccessLoggingBuilder toBuilder()
-
-