aws logs put-subscription-filter
Creates or updates a subscription filter and associates it with the specified log group. AWS CLI reference
9 options Its page in the AWS CLI reference
Options
--apply-on-transformed-logsThis parameter is valid only for log groups that have an active log transformer.--destination-arnThe ARN of the destination to deliver matching log events to.--distributionThe method used to distribute log data to the destination.--emit-system-fieldsA list of system fields to include in the log events sent to the subscription destination.--field-selection-criteriaA filter expression that specifies which log events should be processed by this subscription filter based on system fields such as source account and source region.--filter-nameA name for the subscription filter.--filter-patternA filter pattern for subscribing to a filtered stream of log events.--log-group-nameThe name of the log group.--role-arnThe ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream.