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
Examples
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
--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.