show_log - AWS OpsWorks



AWS OpsWorks Stacks is no longer accepting new customers. Existing customers will be able to use the OpsWorks console, API, CLI, and CloudFormation resources as normal until May 26, 2024, at which time they will be discontinued. To prepare for this transition, we recommend you transition your stacks to AWS Systems Manager as soon as possible. For more information, see AWS OpsWorks Stacks End of Life FAQs and Migrating your AWS OpsWorks Stacks applications to AWS Systems Manager Application Manager.

Return's a command's log file.

sudo opsworks-agent-cli show_log [activity] [date]

By default, show_log tails the most recent log file. Use the following options to specify a particular command.


Display the specified activity's log file.


Display the log file for the activity that executed at the specified timestamp. To get a list of valid timestamps, run list_commands.

The following output example shows the most recent log.

$ sudo opsworks-agent-cli show_log [2015-12-02T16:52:59+00:00] INFO: Storing updated cookbooks/opsworks_cookbook_demo/opsworks-cookbook-demo.tar.gz in the cache. ... [2015-12-02T16:52:59+00:00] INFO: Report handlers complete