Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

show_log - AWS OpsWorks

show_log

Important

The AWS OpsWorks Stacks service reached end of life on May 26, 2024 and has been disabled for both new and existing customers. We strongly recommend customers migrate their workloads to other solutions as soon as possible. If you have questions about migration, reach out to the AWS Support Team on AWS re:Post or through AWS Premium Support.

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.

activity

Display the specified activity's log file.

date

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
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.