class SplunkLogDriver
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.SplunkLogDriver |
Java | software.amazon.awscdk.services.ecs.SplunkLogDriver |
Python | aws_cdk.aws_ecs.SplunkLogDriver |
TypeScript (source) | @aws-cdk/aws-ecs » SplunkLogDriver |
Extends
Log
A log driver that sends log information to splunk Logs.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ecs from '@aws-cdk/aws-ecs';
import * as cdk from '@aws-cdk/core';
declare const secret: ecs.Secret;
declare const secretValue: cdk.SecretValue;
const splunkLogDriver = new ecs.SplunkLogDriver({
url: 'url',
// the properties below are optional
caName: 'caName',
caPath: 'caPath',
env: ['env'],
envRegex: 'envRegex',
format: ecs.SplunkLogFormat.INLINE,
gzip: false,
gzipLevel: 123,
index: 'index',
insecureSkipVerify: 'insecureSkipVerify',
labels: ['labels'],
secretToken: secret,
source: 'source',
sourceType: 'sourceType',
tag: 'tag',
token: secretValue,
verifyConnection: false,
});
Initializer
new SplunkLogDriver(props: SplunkLogDriverProps)
Parameters
- props
Splunk
— the splunk log driver configuration options.Log Driver Props
Constructs a new instance of the SplunkLogDriver class.
Methods
Name | Description |
---|---|
bind(_scope, _containerDefinition) | Called when the log driver is configured on a container. |
bind(_scope, _containerDefinition)
public bind(_scope: Construct, _containerDefinition: ContainerDefinition): LogDriverConfig
Parameters
- _scope
Construct
- _containerDefinition
Container
Definition
Returns
Called when the log driver is configured on a container.