Monitoring API activity - Does AWS have a function that could help

1

We’re looking for some kind of URL or API monitoring tool that allows us to measure how many hits certain URLs receive and segment by parameters/basic auth/headers.

Our API is currently located on an EC2 and written in Laravel

asked a year ago243 views
1 Answer
2

Application and access logs can be monitored by outputting them to CloudWatch logs and setting up metrics filters.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/MonitoringLogData.html

For example, the API "/api/exemple" can be filtered and metrics such as number of accesses, number of failed executions, etc. can be set.

Another external monitoring is CloudWatch synthetics.
This allows the API to be periodically executed by CloudWatch and detected as an anomaly when it fails.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries.html

profile picture
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions