Interface SplunkLogDriverProps
- All Superinterfaces:
BaseLogDriverProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SplunkLogDriverProps.Jsii$Proxy
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());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forSplunkLogDriverProps
static final class
An implementation forSplunkLogDriverProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic SplunkLogDriverProps.Builder
builder()
default String
Name to use for validating server certificate.default String
Path to root certificate.default SplunkLogFormat
Message format.default Boolean
getGzip()
Enable/disable gzip compression to send events to Splunk Enterprise or Splunk Cloud instance.default Number
Set compression level for gzip.default String
getIndex()
Event index.default String
Ignore server certificate validation.default Secret
Splunk HTTP Event Collector token (Secret).default String
Event source.default String
Event source type.default SecretValue
getToken()
Deprecated.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
Verify on start, that docker can connect to Splunk server.Methods inherited from interface software.amazon.awscdk.services.ecs.BaseLogDriverProps
getEnv, getEnvRegex, getLabels, getTag
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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. -
getCaName
Name to use for validating server certificate.Default: - The hostname of the splunk-url
-
getCaPath
Path to root certificate.Default: - caPath not set.
-
getFormat
Message format.Can be inline, json or raw.
Default: - inline
-
getGzip
Enable/disable gzip compression to send events to Splunk Enterprise or Splunk Cloud instance.Default: - false
-
getGzipLevel
Set compression level for gzip.Valid values are -1 (default), 0 (no compression), 1 (best speed) ... 9 (best compression).
Default: - -1 (Default Compression)
-
getIndex
Event index.Default: - index not set.
-
getInsecureSkipVerify
Ignore server certificate validation.Default: - insecureSkipVerify not set.
-
getSecretToken
Splunk HTTP Event Collector token (Secret).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
orsecretToken
.Default: - If secret token is not provided, then the value provided in `token` will be used.
-
getSource
Event source.Default: - source not set.
-
getSourceType
Event source type.Default: - sourceType not set.
-
getToken
Deprecated.Useinvalid @link
SplunkLogDriverProps.secretToken
(deprecated) Splunk HTTP Event Collector token.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
orsecretToken
.Default: - token not provided.
-
getVerifyConnection
Verify on start, that docker can connect to Splunk server.Default: - true
-
builder
- Returns:
- a
SplunkLogDriverProps.Builder
ofSplunkLogDriverProps
-
invalid @link