@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.745Z") @Stability(value=Stable) public interface SplunkLogDriverProps extends software.amazon.jsii.JsiiSerializable, BaseLogDriverProps
Example:
// Example automatically generated from non-compiling source. May contain errors.
Secret secret;
// Create a Task Definition for the container to start
Ec2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, "TaskDef");
taskDefinition.addContainer("TheContainer", ContainerDefinitionOptions.builder()
.image(ContainerImage.fromRegistry("example-image"))
.memoryLimitMiB(256)
.logging(LogDrivers.splunk(SplunkLogDriverProps.builder()
.secretToken(secret)
.url("my-splunk-url")
.build()))
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
SplunkLogDriverProps.Builder
A builder for
SplunkLogDriverProps |
static class |
SplunkLogDriverProps.Jsii$Proxy
An implementation for
SplunkLogDriverProps |
| Modifier and Type | Method and Description |
|---|---|
static SplunkLogDriverProps.Builder |
builder() |
default String |
getCaName()
Name to use for validating server certificate.
|
default String |
getCaPath()
Path to root certificate.
|
default SplunkLogFormat |
getFormat()
Message format.
|
default Boolean |
getGzip()
Enable/disable gzip compression to send events to Splunk Enterprise or Splunk Cloud instance.
|
default Number |
getGzipLevel()
Set compression level for gzip.
|
default String |
getIndex()
Event index.
|
default String |
getInsecureSkipVerify()
Ignore server certificate validation.
|
Secret |
getSecretToken()
Splunk HTTP Event Collector token (Secret).
|
default String |
getSource()
Event source.
|
default String |
getSourceType()
Event source type.
|
String |
getUrl()
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.
|
default Boolean |
getVerifyConnection()
Verify on start, that docker can connect to Splunk server.
|
getEnv, getEnvRegex, getLabels, getTag@Stability(value=Stable) @NotNull Secret getSecretToken()
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.
@Stability(value=Stable) @NotNull String getUrl()
@Stability(value=Stable) @Nullable default String getCaName()
Default: - The hostname of the splunk-url
@Stability(value=Stable) @Nullable default String getCaPath()
Default: - caPath not set.
@Stability(value=Stable) @Nullable default SplunkLogFormat getFormat()
Can be inline, json or raw.
Default: - inline
@Stability(value=Stable) @Nullable default Boolean getGzip()
Default: - false
@Stability(value=Stable) @Nullable default Number getGzipLevel()
Valid values are -1 (default), 0 (no compression), 1 (best speed) ... 9 (best compression).
Default: - -1 (Default Compression)
@Stability(value=Stable) @Nullable default String getIndex()
Default: - index not set.
@Stability(value=Stable) @Nullable default String getInsecureSkipVerify()
Default: - insecureSkipVerify not set.
@Stability(value=Stable) @Nullable default String getSource()
Default: - source not set.
@Stability(value=Stable) @Nullable default String getSourceType()
Default: - sourceType not set.
@Stability(value=Stable) @Nullable default Boolean getVerifyConnection()
Default: - true
@Stability(value=Stable) static SplunkLogDriverProps.Builder builder()
builder in interface BaseLogDriverPropsSplunkLogDriverProps.Builder of SplunkLogDriverPropsCopyright © 2022. All rights reserved.