Quantcast
Channel: Active questions tagged jq - Stack Overflow
Viewing all articles
Browse latest Browse all 657

How to get this output in TABLE format

$
0
0

I want to get the below command output in table format using Linux commands:

aws --region us-east-1 cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=ConsoleLogin --start-time $START_TIME | \jq -r .Events[].CloudTrailEvent | \jq '.userIdentity.arn, .eventTime, .responseElements.ConsoleLogin')

Current output:

"arn:aws:sts::accountnum:assumed-role/role/user@com""2024-11-29T06:48:05Z""Success""arn:aws:sts::accountnum:assumed-role/role/user@com""2024-11-29T03:12:14Z""Success""arn:aws:sts::accountnum:assumed-role/role/user@com""2024-11-29T02:42:48Z""Success"

Viewing all articles
Browse latest Browse all 657

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>