class SplunkLogDriver
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.ECS.SplunkLogDriver | 
|  Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#SplunkLogDriver | 
|  Java | software.amazon.awscdk.services.ecs.SplunkLogDriver | 
|  Python | aws_cdk.aws_ecs.SplunkLogDriver | 
|  TypeScript (source) | aws-cdk-lib»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 { aws_ecs as ecs } from 'aws-cdk-lib';
declare const secret: ecs.Secret;
const splunkLogDriver = new ecs.SplunkLogDriver({
  secretToken: secret,
  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'],
  source: 'source',
  sourceType: 'sourceType',
  tag: 'tag',
  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 ContainerDefinition 
Returns
Called when the log driver is configured on a container.
