Install and Configure the CloudWatch
Logs Agent on a Running EC2 Linux Instance
What is Amazon cloud watch?
Amazon Cloud watch is a monitoring service which can collect
metrics, manage alarms and it will react instantly to changes in users AWS
resources. Basically repository and this service provided to developer to check
the performance of the application in AWS cloud.
Configure Your IAM Role or User for CloudWatch Logs:
Create policy:
Add JSON policy here:
Create Policy name and Description:
Create Role:
Attach policy to Role:
Step 2: Install and Configure CloudWatch Logs on an Existing Amazon EC2 Instance:
Configure Cloud Watch Logs on
an existing Amazon Linux instance:
After configuring the Amazon Linux 1. User can use the
default configuration to minimize the complication.
Attach IAM role to the Instance to get cloud watch logs.
Next we will be using PuTTy agent to connect to the instant using ssh. Use the following shell command and use the private key file to authentication.
Login to the instance:
Update the Linux instance:
Select the logs tab in
the cloud watch:
Error log in cloud watch:
Benefits of Using Amazon Cloud watch:
·
Observability on a single platform across
applications and infrastructure.
·
Easiest way to collect metrics in AWS and
on-premises.
·
Improve Operational Performance and resource
optimization.
·
Get Operational Visibility and insight.
·
Derive actionable insights from logs.
References:
Amazon CloudWatch—Application and
Infrastructure Monitoring. (n.d.). Amazon Web Services,Retrieved May
20, 2020, from https://aws.amazon.com/cloudwatch/












Comments
Post a Comment