@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:29.553Z") @Stability(value=Experimental) public interface SplunkLogDriverProps extends software.amazon.jsii.JsiiSerializable, BaseLogDriverProps
Example:
// 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()
.token(SecretValue.secretsManager("my-splunk-token"))
.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()
(experimental) Name to use for validating server certificate.
|
default String |
getCaPath()
(experimental) Path to root certificate.
|
default SplunkLogFormat |
getFormat()
(experimental) Message format.
|
default Boolean |
getGzip()
(experimental) Enable/disable gzip compression to send events to Splunk Enterprise or Splunk Cloud instance.
|
default Number |
getGzipLevel()
(experimental) Set compression level for gzip.
|
default String |
getIndex()
(experimental) Event index.
|
default String |
getInsecureSkipVerify()
(experimental) Ignore server certificate validation.
|
default Secret |
getSecretToken()
(experimental) Splunk HTTP Event Collector token (Secret).
|
default String |
getSource()
(experimental) Event source.
|
default String |
getSourceType()
(experimental) Event source type.
|
default SecretValue |
getToken()
Deprecated.
Use
SplunkLogDriverProps.secretToken instead. |
String |
getUrl()
(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.
|
default Boolean |
getVerifyConnection()
(experimental) Verify on start, that docker can connect to Splunk server.
|
getEnv, getEnvRegex, getLabels, getTag@Stability(value=Experimental) @NotNull String getUrl()
@Stability(value=Experimental) @Nullable default String getCaName()
Default: - The hostname of the splunk-url
@Stability(value=Experimental) @Nullable default String getCaPath()
Default: - caPath not set.
@Stability(value=Experimental) @Nullable default SplunkLogFormat getFormat()
Can be inline, json or raw.
Default: - inline
@Stability(value=Experimental) @Nullable default Boolean getGzip()
Default: - false
@Stability(value=Experimental) @Nullable default Number getGzipLevel()
Valid values are -1 (default), 0 (no compression), 1 (best speed) ... 9 (best compression).
Default: - -1 (Default Compression)
@Stability(value=Experimental) @Nullable default String getIndex()
Default: - index not set.
@Stability(value=Experimental) @Nullable default String getInsecureSkipVerify()
Default: - insecureSkipVerify not set.
@Stability(value=Experimental) @Nullable default 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.
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.
@Stability(value=Experimental) @Nullable default String getSource()
Default: - source not set.
@Stability(value=Experimental) @Nullable default String getSourceType()
Default: - sourceType not set.
@Stability(value=Deprecated) @Deprecated @Nullable default SecretValue getToken()
SplunkLogDriverProps.secretToken instead.The splunk-token is added to the Options property of the Log Driver Configuration. So the secret value will be resolved and viewable in plain text in the console.
Please provide at least one of token or secretToken.
Default: - token not provided.
@Stability(value=Experimental) @Nullable default Boolean getVerifyConnection()
Default: - true
@Stability(value=Experimental) static SplunkLogDriverProps.Builder builder()
builder in interface BaseLogDriverPropsSplunkLogDriverProps.Builder of SplunkLogDriverPropsCopyright © 2022. All rights reserved.