CmdID

CmdID / aws / aws greengrass

aws greengrass get-logger-definition

Retrieves information about a logger definition. AWS CLI reference

1 example 1 option Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To retrieve information about a logger definition

The following get-logger-definition example retrieves information about the specified logger definition. To retrieve the IDs of your logger definitions, use the list-logger-definitions command.

aws greengrass get-logger-definition --logger-definition-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"Identify
--logger-definition-idThe ID of the logger definition.
Its output
{
    "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",
    "tags": {}
}

For more information, see Monitoring with AWS IoT Greengrass logs in the AWS IoT Greengrass Developer Guide.

Options

1 in the AWS CLI reference
--logger-definition-idThe ID of the logger definition.