0

AWS Event log 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

helloworld9
  • 173
  • 2
  • 2
  • 8

1 Answers1

0

thanks John. Found the command:

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

helloworld9
  • 173
  • 2
  • 2
  • 8