# SplunkLogDriver

A log driver that sends log information to splunk Logs.

Extends: LogDriver › SplunkLogDriver

- Source: [`aws-ecs/lib/log-drivers/splunk-log-driver.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ecs/lib/log-drivers/splunk-log-driver.ts#L130)

## Example

```ts
// 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

```ts
new SplunkLogDriver(props: SplunkLogDriverProps)
```

## Methods

- `awsLogs(props: AwsLogDriverProps): LogDriver` (static) — Creates a log driver configuration that sends log information to CloudWatch Logs.

- `bind(_scope: Construct, _containerDefinition: ContainerDefinition): LogDriverConfig` — Called when the log driver is configured on a container.
