A tool for automatically forwarding CloudWatch logs to Logtail.
Ensure you have the following environment variables setup:
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION
Run the following:
sh scripts/setup.sh;
sh scripts/deploy.sh;
Navigate to the created lambda function and add your logtail source token as an environment variable named: LOGTAIL_SOURCE_TOKEN
Go here and deploy the function.
- Set the Applicationa nme to logtail-watch
- Set the DestinationArn to the Arn of the lambda function that was deployed during setup
- Set the FilterName to logtail-watch
- Set the FilterPattern to
[event]
- Set any of the other attributes you wish to set to control which log groups to forward logs for vs not.