aws logs put-index-policy
Creates or updates a field index policy for the specified log group. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--log-group-identifierSpecify either the log group name or log group ARN to apply this field index policy to.--policy-documentThe index policy document, in JSON format.