@Stability(value=Stable) 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)
Name to use for validating server certificate.
|
SplunkLogDriver.Builder |
caPath(String caPath)
Path to root certificate.
|
static SplunkLogDriver.Builder |
create() |
SplunkLogDriver.Builder |
env(List<String> env)
The env option takes an array of keys.
|
SplunkLogDriver.Builder |
envRegex(String envRegex)
The env-regex option is similar to and compatible with env.
|
SplunkLogDriver.Builder |
format(SplunkLogFormat format)
Message format.
|
SplunkLogDriver.Builder |
gzip(Boolean gzip)
Enable/disable gzip compression to send events to Splunk Enterprise or Splunk Cloud instance.
|
SplunkLogDriver.Builder |
gzipLevel(Number gzipLevel)
Set compression level for gzip.
|
SplunkLogDriver.Builder |
index(String index)
Event index.
|
SplunkLogDriver.Builder |
insecureSkipVerify(String insecureSkipVerify)
Ignore server certificate validation.
|
SplunkLogDriver.Builder |
labels(List<String> labels)
The labels option takes an array of keys.
|
SplunkLogDriver.Builder |
secretToken(Secret secretToken)
Splunk HTTP Event Collector token (Secret).
|
SplunkLogDriver.Builder |
source(String source)
Event source.
|
SplunkLogDriver.Builder |
sourceType(String sourceType)
Event source type.
|
SplunkLogDriver.Builder |
tag(String tag)
By default, Docker uses the first 12 characters of the container ID to tag log messages.
|
SplunkLogDriver.Builder |
url(String 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.
|
SplunkLogDriver.Builder |
verifyConnection(Boolean verifyConnection)
Verify on start, that docker can connect to Splunk server.
|
@Stability(value=Stable) public static SplunkLogDriver.Builder create()
SplunkLogDriver.Builder.@Stability(value=Stable) 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=Stable) 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=Stable) 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=Stable) 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=Stable) 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=Stable) 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=Stable) public SplunkLogDriver.Builder caPath(String caPath)
Default: - caPath not set.
caPath - Path to root certificate. This parameter is required.this@Stability(value=Stable) public SplunkLogDriver.Builder format(SplunkLogFormat format)
Can be inline, json or raw.
Default: - inline
format - Message format. This parameter is required.this@Stability(value=Stable) 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=Stable) 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=Stable) public SplunkLogDriver.Builder index(String index)
Default: - index not set.
index - Event index. This parameter is required.this@Stability(value=Stable) public SplunkLogDriver.Builder insecureSkipVerify(String insecureSkipVerify)
Default: - insecureSkipVerify not set.
insecureSkipVerify - Ignore server certificate validation. This parameter is required.this@Stability(value=Stable) public SplunkLogDriver.Builder secretToken(Secret secretToken)
The splunk-token is added to the SecretOptions property of the Log Driver Configuration. So the secret value will not be resolved or viewable as plain text.
Please provide at least one of token or secretToken.
Default: - If secret token is not provided, then the value provided in `token` will be used.
secretToken - Splunk HTTP Event Collector token (Secret). This parameter is required.this@Stability(value=Stable) public SplunkLogDriver.Builder source(String source)
Default: - source not set.
source - Event source. This parameter is required.this@Stability(value=Stable) public SplunkLogDriver.Builder sourceType(String sourceType)
Default: - sourceType not set.
sourceType - Event source type. This parameter is required.this@Stability(value=Stable) 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=Stable) public SplunkLogDriver build()
build in interface software.amazon.jsii.Builder<SplunkLogDriver>Copyright © 2022. All rights reserved.