AWS OpsWorks


AWS OpsWorks is “a DevOps solution for managing applications of any scale or complexity on the AWS cloud.”

OpsWorks uses chef recipes for most customer-controlled configuration. System and app logs can easily be aggregated and managed by Papertrail with a minimal chef recipe.


Aggregating logs using system-level tools

Since chef cookbooks are the core method for configuring your app on OpsWorks, Papertrail recommends configuring log management with chef recipes.

A few customers have open-sourced their standalone chef recipes for Papertrail or for related tools like rsyslog or syslog-ng.

Note that using both of these recipes together may result in some log duplication if node['papertrail']['watch_files'] is configured with rsyslog. If using both, simply skip that item (or use it, and omit the second cookbook).

For an introduction to OpsWorks’ configuration stages and how OpsWorks uses chef-solo, see the User Guide and Deploying Boundary within AWS OpsWorks Stacks.

Aggregating logs directly from app/framework

App logs from OpsWorks apps can often be aggregated with the same in-app logging libraries you would use in without OpsWorks. Look for your logging library, language, or framework under Configuration.


We’re happy to help. Ask a question or join support chat.