Code Monkey home page Code Monkey logo

ansible-role-aws-cloudwatch-logs-agent's Introduction

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

ansible-role-aws-cloudwatch-logs-agent's People

Contributors

dharrisio avatar gaell avatar gibbsoft avatar heitorlessa avatar talset avatar tiramiseb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.