Skip to content

Instantly share code, notes, and snippets.

@mlabouardy
Created January 21, 2019 10:42
Show Gist options
  • Save mlabouardy/109c252c239a62cfec7b00780ee144d7 to your computer and use it in GitHub Desktop.
Save mlabouardy/109c252c239a62cfec7b00780ee144d7 to your computer and use it in GitHub Desktop.
Create filter subscription on log group
aws logs put-subscription-filter --log-group-name "/aws/lambda/Fibonacci" \
--filter-name "parse-logs" --filter-pattern '[timestamp=*Z, request_id="*-*", event]' \
--destination-arn "arn:aws:logs:AWS_REGION:ACCOUNT_ID:destination:kinesis-stream"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment