Name: ansible-aws-cloudwatch-logs
Owner: Simpleweb
Description: Ansible CloudWatch Logs Role
Forked from: christianewillman/ansible-aws-cloudwatch-logs
Created: 2016-09-09 15:27:55.0
Updated: 2016-08-29 11:49:35.0
Pushed: 2016-08-04 09:44:44.0
Homepage: null
Size: 5
Language: null
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
An Ansible role for forwarding log files to CloudWatch.
You can opt to forward one or many log files to CloudWatch; each file may use a different datetime format and belong to a different log group.
aws-cloudwatch-logs
assumes you are using an official Ubuntu AMI, and it obviously only makes sense to run within EC2. Sorry if this doesn't fit your use case.
Include the aws-cloudwatch-logs
role in your playbook yml like this:
- role: aws-cloudwatch-logs
logs:
- file: /var/log/syslog
format: "%b %d %H:%M:%S"
group_name: syslog
- file: /var/log/my_cool_log
format: "%b %d %H:%M:%S"
group_name: my-cool-log
Christian Willman github@willman.io
MIT