Installs and configures the AWS Cloud Watch Logs Agent.
This is basically just a reworked version of the OpsWorks Quickstart that Amazon provides, which installs the agent and confugures the list of logs to send to Amazon.
http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/QuickStartChef.html
e.g.
Key | Type | Description |
---|---|---|
['cwlogs']['logs'] | Array | List of logs |
Key | Type | Description |
---|---|---|
'name' | String | Name of the destination log group. |
'file' | String | Path of log file for the agent to monitor and upload. |
'date_format' | String | Format specifier for timestamp parsing (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/AgentReference.html) |
Just include cloudwatch_logs
in your node's run_list
and configure the list of logs:
{
"name":"my_node",
"run_list": [
"recipe[cloudwatch_logs]"
]
}
TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.
e.g.
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: Joshua Halickman