juju show-status-log
¶
See also: status
Summary¶
Output past statuses for the specified entity.
Usage¶
juju show-status-log [options] <entity name>
Options¶
Flag |
Default |
Usage |
---|---|---|
|
false |
Do not use web browser for authentication |
|
0 |
Returns the logs for the past <days> days (cannot be combined with -n or –date) |
|
tabular |
Specify output format (json|tabular|yaml) |
|
Returns logs for any date after the passed one, the expected date format is YYYY-MM-DD (cannot be combined with -n or –days) |
|
|
Model to operate in. Accepts [<controller name>:]<model name>|<model UUID> |
|
|
0 |
Returns the last N logs (cannot be combined with –days or –date) |
|
Specify an output file |
|
|
unit |
Type of statuses to be displayed [application|container|juju-container|juju-machine|juju-unit|machine|model|saas|unit|workload] |
|
false |
Display time as UTC in RFC3339 format |
Examples¶
Show the status history for the specified unit:
juju show-status-log mysql/0
Show the status history for the specified unit with the last 30 logs:
juju show-status-log mysql/0 -n 30
Show the status history for the specified unit with the logs for the past 2 days:
juju show-status-log mysql/0 -days 2
Show the status history for the specified unit with the logs for any date after 2020-01-01:
juju show-status-log mysql/0 --from-date 2020-01-01
Show the status history for the specified application:
juju show-status-log -type application wordpress
Show the status history for the specified machine:
juju show-status-log 0
Show the status history for the model:
juju show-status-log -type model
Details¶
This command will report the history of status changes for a given entity. The statuses are available for the following types. -type supports: application: statuses for the specified application container: statuses from the agent that is managing containers juju-container: statuses from the containers only and not their host machines juju-machine: status of the agent that is managing a machine juju-unit: statuses from the agent that is managing a unit machine: statuses that occur due to provisioning of a machine model: statuses for the model itself saas: statuses for the specified SAAS application unit: statuses for specified unit and its workload workload: statuses for unit’s workload
and sorted by time of occurrence. The default is unit.