CmdID / aws / aws greengrass
aws greengrass list-logger-definitions
Retrieves a list of logger definitions. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To get a list of logger definitions
The following list-logger-definitions example lists all of the logger definitions for your AWS account.
aws greengrass list-logger-definitionsIdentifyIts output
{
"Definitions": [
{
"Arn": "arn:aws:greengrass:us-west-2:123456789012:/greengrass/definition/loggers/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"CreationTimestamp": "2019-05-08T16:10:13.809Z",
"Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"LastUpdatedTimestamp": "2019-05-08T16:10:13.809Z",
"LatestVersion": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
"LatestVersionArn": "arn:aws:greengrass:us-west-2:123456789012:/greengrass/definition/loggers/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/versions/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222"
}
]
}For more information, see Monitoring with AWS IoT Greengrass logs in the AWS IoT Greengrass Version 1 Developer Guide.
Options
--max-resultsThe maximum number of results to be returned per request.--next-tokenThe token for the next set of results, or ''null'' if there are no additional results.