Monitoring, Logging, and Remediation Flashcards
Learn and fixing knowledge about CloudWatch, logs and etc
Log events
Event messaging and time stamp
Log Stream
Sequence of log events from the same resource. Each log stream must belong to a log group.
Log Group
A group of log streams that share the same retention, monitoring and access control settings
Default EC2 host-level metrics:
CPU,Network,disk, and status check.
How can we monitoring the memory usage of an instance?
Installing cloudwatch agent, hence we can monitor memory usage, processes, and CPU idle time.
Cloudwatch Logs
with cloudwatch logs we can see: Application logs: Apache logs.
System logs: EC2.
AWS Services: CloudTrail, Route 53.
what can we do using cloudwatch logs?
We can view, search and filter, based on error codes and messages, example: 404 status in apache logs.
Also, we can receive notifications whenever the rate of errors exceeds a threshold that it’s specified.
How is CloudWatch Alarms useful?
It’s really useful for monitoring any metric in aws account if a certain threshold is reached through alarms.
Can AWS cloudwatch alarms be integrated with another AWS service?
It can be integrated with SNS (Simple Notification Service) to send a notification email alert to AWS support team.
CloudWatch Alarms Use case
An alarm that is triggered if CPU utilization exceeds 90% on your EC2 instance for more than 5 minutes.
Monitor Service Quotas
CloudWatch can be used to monitor service quotas or limits when you are about to reach a limit.
. It can be alert in the cloudwatch dashboard.
. An SNS notification can be used to email your IT support team.
. Use case, when you reach 90% of the quota value for on-demand EC2 instances.
Health Events
Provides information about changes in the health of AWS resources.
. Can send health events to EventBridge (was cloudwatch events).
. triggering a cloudwatch alarm and then trigger an action sending an SNS notification, send a message to SQS or trigger a lambda function
AWS Config
. Configuration Monitoring: Continuously monitors the configuration of your AWS resources for compliance, with a desired state that you define.
. Dashboard: Provides an inventory, and shows compliance and non-compliance.
. Rules: Define the desired state of your resource configuration
. Conformance packs: a set of rules managed as one, Operational Best practices for S3, EC2, IAM.
. Automatic Remediation: remediates non-compliant resources by triggering an action that you define.