IaaS/퍼블릭클라우드

(AWS) Log의 종류에 대해 알아보자

armyost 2022. 3. 15. 18:17
728x90

어플리케이션 로그 : EC2에 CloudWatch Agent 설치를 통해 스트림 할 수 있음

- 미들웨어 생성 로그

- 어플리케이션 코드 생성 로그

  • 커스텀 로그 메시지와 Stack Trace를 포함하고 있음
  • 로컬 파일시스템에 생성
  • ECS, Fargate, Elastic Beanstalk, Lambda를 사용할 경우 CloudWatchLog에 바로 연결 가능

OS 로그 : EC2에 CloudWatch Agent 설치를 통해 스트림 할 수 있음

- OS로부터 생성되는 로그(이벤트성, 시스템성)

 

AWS 관리형 로그

  • Load Balancer Access Logs (ALB, NLB, CLB) => to S3
    Access logs for your Load Balancers
  • CloudTrail Logs => to S3 and CloudWatch Logs
    Logs for API calls made within your account
  • VPC Flow Logs => to S3 and CloudWatch Logs
    Information about IP traffic going to and from network interfaces in yourVPC
  • Route 53 Access Logs => to CloudWatch Logs
    Log information about the queries that Route 53 receives 
  • S3 Access Logs => to S3
    Server access logging provides detailed records for the requests that are made to a bucket
  • CloudFront Access Logs => to S3
    Detailed information about every user request that CloudFront receives