Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/megane42/ansible-role-aws-cloudwatch-logs-agent
https://github.com/megane42/ansible-role-aws-cloudwatch-logs-agent
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/megane42/ansible-role-aws-cloudwatch-logs-agent
- Owner: megane42
- Created: 2022-02-10T05:43:03.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-10T05:52:45.000Z (almost 3 years ago)
- Last Synced: 2024-11-07T22:13:01.596Z (about 2 months ago)
- Language: Jinja
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a fork of https://github.com/trussworks/ansible-role-aws-cloudwatch-logs-agent, which is deleted and originally forks https://github.com/dharrisio/ansible-role-aws-cloudwatch-logs-agent.
Role Name
=========Installs AWS CloudWatch Log Agent
Requirements
------------Requires ec2_facts.
Role Variables
--------------`logs`, `extra_logs`: list of logs with the following keys:
| Name | Description | Required | Default
|-------------|----------------------------|----------|---------
| file | Full path to log file | Yes |
| format | Datetime format | No | None
| group_name | CloudWatch Log Group | Yes |
| stream_name | CloudWatch Log Stream Name | No | The instance id`awslogs_loglevel`: maximal log level for the Log Agent's logs itself
("debug", "info", "warning", "error" or "critical"). If this parameter is
not specified, no specific logging configuration will take place and the
default level (info) will be used. This parameter is very basic and does not
allow flexible logging configuration, its only goal is to change the amount
of logs going into the log agent's own logfile.Dependencies
------------This role has no dependencies.
Example Playbook
----------------- hosts: servers
vars:
logs:
- file: /var/log/auth.log
format: "%b %d %H:%M:%S"
group_name: "auth"
stream_name: "auth-stream"
- file: /home/ubuntu/.bash_history
group_name: "bash_history"
awslogs_loglevel: info
roles:
- { role: dharrisio.aws-cloudwatch-logs }License
-------GPLv3
Author Information
------------------Created by David Harris