SplunkLogDriverProps Struct
Specifies the splunk log driver configuration options.
Example
declare const secret: ecs.Secret;
// Create a Task Definition for the container to start
const taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');
taskDefinition.addContainer('TheContainer', {
image: ecs.ContainerImage.fromRegistry('example-image'),
memoryLimitMiB: 256,
logging: ecs.LogDrivers.splunk({
secretToken: secret,
url: 'my-splunk-url',
}),
});
Properties
Default: The hostname of the splunk-url
Default: caPath not set.
Default: No 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 envRegex
Its value is a regular expression to match logging-related environment variables. It is used for advanced log tag options.
formatSplunkLogFormatformatSplunkLogFormatformatSplunkLogFormatFormatSplunkLogFormatFormatSplunkLogFormat= inline#Can be inline, json or raw.
Default: -1 (Default Compression)
Valid values are -1 (default), 0 (no compression), 1 (best speed) ... 9 (best compression).
insecureSkipVerifystringinsecure_skip_verifystrinsecureSkipVerifyStringInsecureSkipVerifystringInsecureSkipVerify*string#Default: insecureSkipVerify not set.
Default: No 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.
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.
Default: sourceType not set.
Default: The first 12 characters of the container ID
Refer to the log tag option documentation for customizing the log tag format.
verifyConnectionbooleanverify_connectionboolverifyConnectionBooleanVerifyConnectionboolVerifyConnection*bool= true#