Class SyslogLogDriver.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SyslogLogDriver>
- Enclosing class:
SyslogLogDriver
SyslogLogDriver
.-
Method Summary
Modifier and TypeMethodDescriptionThe address of an external syslog server.build()
static SyslogLogDriver.Builder
create()
The env option takes an array of keys.The env-regex option is similar to and compatible with env.The syslog facility to use.The syslog message format to use.The labels option takes an array of keys.By default, Docker uses the first 12 characters of the container ID to tag log messages.The absolute path to the trust certificates signed by the CA.The absolute path to the TLS certificate file.The absolute path to the TLS key file.tlsSkipVerify
(Boolean tlsSkipVerify) If set to true, TLS verification is skipped when connecting to the syslog daemon.
-
Method Details
-
create
- Returns:
- a new instance of
SyslogLogDriver.Builder
.
-
env
The env option takes an array of keys.If there is collision between label and env keys, the value of the env takes precedence. Adds additional fields to the extra attributes of a logging message.
Default: - No env
- Parameters:
env
- The env option takes an array of keys. This parameter is required.- Returns:
this
-
envRegex
The env-regex option is similar to and compatible with env.Its value is a regular expression to match logging-related environment variables. It is used for advanced log tag options.
Default: - No envRegex
- Parameters:
envRegex
- The env-regex option is similar to and compatible with env. This parameter is required.- Returns:
this
-
labels
The labels option takes an array of keys.If there is collision between label and env keys, the value of the env takes precedence. Adds additional fields to the extra attributes of a logging message.
Default: - No labels
- Parameters:
labels
- The labels option takes an array of keys. This parameter is required.- Returns:
this
-
tag
By default, Docker uses the first 12 characters of the container ID to tag log messages.Refer to the log tag option documentation for customizing the log tag format.
Default: - The first 12 characters of the container ID
- Parameters:
tag
- By default, Docker uses the first 12 characters of the container ID to tag log messages. This parameter is required.- Returns:
this
-
address
The address of an external syslog server.The URI specifier may be [tcp|udp|tcp+tls]://host:port, unix://path, or unixgram://path.
Default: - If the transport is tcp, udp, or tcp+tls, the default port is 514.
- Parameters:
address
- The address of an external syslog server. This parameter is required.- Returns:
this
-
facility
The syslog facility to use.Can be the number or name for any valid syslog facility. See the syslog documentation: https://tools.ietf.org/html/rfc5424#section-6.2.1.
Default: - facility not set
- Parameters:
facility
- The syslog facility to use. This parameter is required.- Returns:
this
-
format
The syslog message format to use.If not specified the local UNIX syslog format is used, without a specified hostname. Specify rfc3164 for the RFC-3164 compatible format, rfc5424 for RFC-5424 compatible format, or rfc5424micro for RFC-5424 compatible format with microsecond timestamp resolution.
Default: - format not set
- Parameters:
format
- The syslog message format to use. This parameter is required.- Returns:
this
-
tlsCaCert
The absolute path to the trust certificates signed by the CA.Ignored if the address protocol is not tcp+tls.
Default: - tlsCaCert not set
- Parameters:
tlsCaCert
- The absolute path to the trust certificates signed by the CA. This parameter is required.- Returns:
this
-
tlsCert
The absolute path to the TLS certificate file.Ignored if the address protocol is not tcp+tls.
Default: - tlsCert not set
- Parameters:
tlsCert
- The absolute path to the TLS certificate file. This parameter is required.- Returns:
this
-
tlsKey
The absolute path to the TLS key file.Ignored if the address protocol is not tcp+tls.
Default: - tlsKey not set
- Parameters:
tlsKey
- The absolute path to the TLS key file. This parameter is required.- Returns:
this
-
tlsSkipVerify
If set to true, TLS verification is skipped when connecting to the syslog daemon.Ignored if the address protocol is not tcp+tls.
Default: - false
- Parameters:
tlsSkipVerify
- If set to true, TLS verification is skipped when connecting to the syslog daemon. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SyslogLogDriver>
- Returns:
- a newly built instance of
SyslogLogDriver
.
-