aws cloudwatch 설치 설정 :: 에버노트

ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • aws cloudwatch 설치 설정
    카테고리 없음 2020. 8. 14. 15:37

    리눅스 설정만 

     

    curl https://s3.amazonaws.com/aws-cloudwatch/downloads/latest/awslogs-agent-setup.py -O

    python ./awslogs-agent-setup.py --region ap-northeast-2

    /var/awslogs/etc/awslogs.conf # 설정 위치 

    /etc/init.d/awslogs restart

    /etc/init.d/awslogs start

     

     

    Thread-4 - Fall back to current time

    #catalina.out

    2019-08-07 14:14:33,498

    둘중하나 선택

    %d/%b/%Y:%H:%M:%S %z

    %Y-%m-%d %H:%M:%S:%f

     

     

    [/usr/local/java/logs/catalina.out]

    datetime_format = %Y-%m-%d %H:%M:%S:%f

    file = /usr/local/java/logs/catalina.out

    buffer_duration = 5000

    log_stream_name = {instance_id}

    initial_position = start_of_file

    log_group_name = /aws/ec2/tomcat-web/usr/local/java/logs/catalina.out

    댓글

Designed by Tistory.