CmdID

CmdID / aws / aws securitylake

aws securitylake list-log-sources

Retrieves the log sources. AWS CLI reference

1 example 5 options 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 the Amazon Security Lake log sources

The following list-log-sources example lists the Amazon Security Lake log sources in a specified account.

aws securitylake list-log-sources --accounts "123456789012"Identify
--accountsThe list of Amazon Web Services accounts for which log sources are displayed.
Its output
{
    "sources": [
        {
            "account": "123456789012",
            "region": "xy-region-1",
            "sources": [
                {
                    "awsLogSource": {
                        "sourceName": "VPC_FLOW",
                        "sourceVersion": "2.0"
                    }
                },
                {
                    "awsLogSource": {
                        "sourceName": "SH_FINDINGS",
                        "sourceVersion": "2.0"
                    }
                }
            ]
        }
    ]
}

For more information, see Source management in the Amazon Security Lake User Guide.

Options

5 in the AWS CLI reference
--accountsThe list of Amazon Web Services accounts for which log sources are displayed.
--max-resultsThe maximum number of accounts for which the log sources are displayed.
--next-tokenIf nextToken is returned, there are more results available.
--regionsThe list of Regions for which log sources are displayed.
--sourcesThe list of sources for which log sources are displayed.