simpleweb/ansible-aws-cloudwatch-logs

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Ansible CloudWatch Logs Role

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.

Prerequisites

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.

Usage

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
Author

Christian Willman github@willman.io

License

MIT


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.