Apache log 분리하기

WEB/WAS/Apache 2017. 8. 11. 14:32 Posted by 알 수 없는 사용자

Apache Log에서 특정 문자열만 별도로 분리할 경우가 생겨서

작업 진행해보았습니다.



httpd.conf 내에

==============================================================

SetEnvIfNoCase Request_URI "/download/temp/pdfexport" customlog2

SetEnvIfNoCase Request_URI "exportword" customlog2

CustomLog "|/app/apache/bin/rotatelogs -l /app/log/apache/export_%Y%m%d.log 86400" combined env=customlog2

==========================================================

설정 추가


access로그에

"/download/temp/pdfexport"

"exportword"

라는 문자열이 있는 Log는 

export_날짜.log 형태로 분리시키는 설정


출처: http://eun2jong.com/ [< eun2jong.com > 은이종]

'WEB/WAS > Apache' 카테고리의 다른 글

mod_define  (0) 2016.05.17
Apache rewrite 정리  (0) 2016.01.28
SSL 인증서 비밀번호 제거 확인  (0) 2015.12.30
SSL 인증서 알고리즘 정리  (0) 2015.12.16
Apache pagespeed 설치  (0) 2015.03.18