how to send the logs from spring boot application to aws cloudwatch logs through ec2 session manager?

93 views Asked by At

i have installed the cloudwatch agent and have given the right iam permissons to the role but the spring boot logs are not coming just ec2 logs are coming, what should i do to get the spring boot logs to cloudwatch

i have done these steps in session manager

step1 sudo yum install awslogs

step2 cd /etc/awslogs

step3 ls

step4 sudo cat awscli.conf

step5

sudo cat awslogs.conf

but the spring boot logs are not coming and just some ec2 logs are coming, what did i do wrong or do we need to add something in spring boot application other then the access key, secret key and region?

0

There are 0 answers