This is my JSON output for this command aws logs list-log-groups
and from this I need the first "arn" value to be grepped. How can I do this?
{
"logGroups": [
{
"logGroupName": "alla",
"creationTime": 1594638588652,
"metricFilterCount": 0,
"arn": "arn:aws:logs:us-east-1:12345678910:log-group:*:*",
"storedBytes": 0
},
{
"logGroupName": "mahi",
"creationTime": 1594638580461,
"metricFilterCount": 0,
"arn": "arn:aws:logs:us-east-1:12345678910:log-group:*:*",
"storedBytes": 0
}
]
}