본문 바로가기

Jenkins

AWS EC2를 사용하여 Jenkins 구축하기(10)

반응형

GoAccess 를 사용한 nginX Access로그 분석


1.     Goaccess 설치

 A.     Sudo yum install goaccess

 

 B.     Test

                         i.         터미널에서 확인

1.      sudo goaccess -f /var/log/nginx/access.log --log-format=COMBINED

                        ii.         HTML로 확인

1.      sudo goaccess -f /var/log/nginx/access.log --log-format=COMBINED -o /usr/share/nginx/html/report.html

2.      http://18.216.16.121/report.html 접속

                       iii.       



                       iv.         가장 최근 로그를 보면 서버에서 B와 같은 명령어를 입력하고 web으로 와서 보면 됩니다.(ex: http://18.216.16.121/report.html)

반응형