简体   繁体   中英

AWS event logs command

AWS 事件日志 I am trying to find a cli-command which will report the latest alerts reported by AWS such as operational issues, security notifications and so on. Is there a cli-command for this task (image)?

FYI: Goal is to get the latest alerts and publish in NAGIOS

thanks John. Found the command:

aws health describe-events --filter regions=<region1, region2, region3>,eventStatusCodes=open| jq '.events |= unique_by(.eventTypeCode)''

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM