./categories/server
Apache 로그 일별 로테이션 rotatelogs
rotatelogs로 일별 access 로그
# 변경 전
CustomLog "${APACHE_LOG_DIR}/access.log" combined
# 변경 후 (86400초 = 1일)
CustomLog "|$(which rotatelogs) ${APACHE_LOG_DIR}/access.log.%Y_%m_%d 86400" combined
rotatelogs경로:which rotatelogscombined:httpd.conf의 LogFormat 이름- VirtualHost별 CustomLog에도 동일 적용 가능
관련 링크: https://app.notion.com/p/f4c85c26089b45069b713136069f6cc3
./comments