@Stability(value=Experimental) public static final class SplunkLogDriver.Builder extends Object implements software.amazon.jsii.Builder<SplunkLogDriver>
SplunkLogDriver.| Modifier and Type | Method and Description |
|---|---|
SplunkLogDriver |
build() |
SplunkLogDriver.Builder |
caName(String caName)
(experimental) Name to use for validating server certificate.
|
SplunkLogDriver.Builder |
caPath(String caPath)
(experimental) Path to root certificate.
|
static SplunkLogDriver.Builder |
create() |
SplunkLogDriver.Builder |
env(List<String> env)
(experimental) The env option takes an array of keys.
|
SplunkLogDriver.Builder |
envRegex(String envRegex)
(experimental) The env-regex option is similar to and compatible with env.
|
SplunkLogDriver.Builder |
format(SplunkLogFormat format)
(experimental) Message format.
|
SplunkLogDriver.Builder |
gzip(Boolean gzip)
(experimental) Enable/disable gzip compression to send events to Splunk Enterprise or Splunk Cloud instance.
|
SplunkLogDriver.Builder |
gzipLevel(Number gzipLevel)
(experimental) Set compression level for gzip.
|
SplunkLogDriver.Builder |
index(String index)
(experimental) Event index.
|
SplunkLogDriver.Builder |
insecureSkipVerify(String insecureSkipVerify)
(experimental) Ignore server certificate validation.
|
SplunkLogDriver.Builder |
labels(List<String> labels)
(experimental) The labels option takes an array of keys.
|
SplunkLogDriver.Builder |
source(String source)
(experimental) Event source.
|
SplunkLogDriver.Builder |
sourceType(String sourceType)
(experimental) Event source type.
|
SplunkLogDriver.Builder |
tag(String tag)
(experimental) By default, Docker uses the first 12 characters of the container ID to tag log messages.
|
SplunkLogDriver.Builder |
token(SecretValue token)
(experimental) Splunk HTTP Event Collector token.
|
SplunkLogDriver.Builder |
url(String url)
(experimental) Path to your Splunk Enterprise, self-service Splunk Cloud instance, or Splunk Cloud managed cluster (including port and scheme used by HTTP Event Collector) in one of the following formats: https://your_splunk_instance:8088 or https://input-prd-p-XXXXXXX.cloud.splunk.com:8088 or https://http-inputs-XXXXXXXX.splunkcloud.com.
|
SplunkLogDriver.Builder |
verifyConnection(Boolean verifyConnection)
(experimental) Verify on start, that docker can connect to Splunk server.
|
@Stability(value=Experimental) public static SplunkLogDriver.Builder create()
SplunkLogDriver.Builder.@Stability(value=Experimental) public SplunkLogDriver.Builder env(List<String> env)
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
env - The env option takes an array of keys. This parameter is required.this@Stability(value=Experimental) public SplunkLogDriver.Builder envRegex(String envRegex)
Its value is a regular expression to match logging-related environment variables. It is used for advanced log tag options.
Default: - No envRegex
envRegex - The env-regex option is similar to and compatible with env. This parameter is required.this@Stability(value=Experimental) public SplunkLogDriver.Builder labels(List<String> labels)
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
labels - The labels option takes an array of keys. This parameter is required.this@Stability(value=Experimental) public SplunkLogDriver.Builder tag(String tag)
Refer to the log tag option documentation for customizing the log tag format.
Default: - The first 12 characters of the container ID
tag - By default, Docker uses the first 12 characters of the container ID to tag log messages. This parameter is required.this@Stability(value=Experimental) public SplunkLogDriver.Builder token(SecretValue token)
token - Splunk HTTP Event Collector token. This parameter is required.this@Stability(value=Experimental) public SplunkLogDriver.Builder url(String url)
url - Path to your Splunk Enterprise, self-service Splunk Cloud instance, or Splunk Cloud managed cluster (including port and scheme used by HTTP Event Collector) in one of the following formats: https://your_splunk_instance:8088 or https://input-prd-p-XXXXXXX.cloud.splunk.com:8088 or https://http-inputs-XXXXXXXX.splunkcloud.com. This parameter is required.this@Stability(value=Experimental) public SplunkLogDriver.Builder caName(String caName)
Default: - The hostname of the splunk-url
caName - Name to use for validating server certificate. This parameter is required.this@Stability(value=Experimental) public SplunkLogDriver.Builder caPath(String caPath)
Default: - caPath not set.
caPath - Path to root certificate. This parameter is required.this@Stability(value=Experimental) public SplunkLogDriver.Builder format(SplunkLogFormat format)
Can be inline, json or raw.
Default: - inline
format - Message format. This parameter is required.this@Stability(value=Experimental) public SplunkLogDriver.Builder gzip(Boolean gzip)
Default: - false
gzip - Enable/disable gzip compression to send events to Splunk Enterprise or Splunk Cloud instance. This parameter is required.this@Stability(value=Experimental) public SplunkLogDriver.Builder gzipLevel(Number gzipLevel)
Valid values are -1 (default), 0 (no compression), 1 (best speed) ... 9 (best compression).
Default: - -1 (Default Compression)
gzipLevel - Set compression level for gzip. This parameter is required.this@Stability(value=Experimental) public SplunkLogDriver.Builder index(String index)
Default: - index not set.
index - Event index. This parameter is required.this@Stability(value=Experimental) public SplunkLogDriver.Builder insecureSkipVerify(String insecureSkipVerify)
Default: - insecureSkipVerify not set.
insecureSkipVerify - Ignore server certificate validation. This parameter is required.this@Stability(value=Experimental) public SplunkLogDriver.Builder source(String source)
Default: - source not set.
source - Event source. This parameter is required.this@Stability(value=Experimental) public SplunkLogDriver.Builder sourceType(String sourceType)
Default: - sourceType not set.
sourceType - Event source type. This parameter is required.this@Stability(value=Experimental) public SplunkLogDriver.Builder verifyConnection(Boolean verifyConnection)
Default: - true
verifyConnection - Verify on start, that docker can connect to Splunk server. This parameter is required.this@Stability(value=Experimental) public SplunkLogDriver build()
build in interface software.amazon.jsii.Builder<SplunkLogDriver>Copyright © 2021. All rights reserved.