# FieldIndexPolicyProps

Properties for creating field index policies.

Extends: FieldIndexPolicyProps
Used as props by: FieldIndexPolicy

- Source: [`aws-logs/lib/field-index-policy.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-logs/lib/field-index-policy.ts#L29)
- Type last changed: v2.183.0 · 12 Mar 2025

## Example

```ts

const fieldIndexPolicy = new logs.FieldIndexPolicy({
  fields: ['Operation', 'RequestId'],
});

new logs.LogGroup(this, 'LogGroup', {
  logGroupName: 'cdkIntegLogGroup',
  fieldIndexPolicies: [fieldIndexPolicy],
});
```

## Properties

- `fields`: string[] (required) — List of fields to index in log events.

  **Default:** no fields
