amazon-web-serviceseventsaws-api-gatewaynagiosnagiosxi

AWS event logs command


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


Solution

  • thanks John. Found the command:

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