Skip to content

조회 수 23506 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

1. 개요

- Apache 경우, 자체적으로 일자별로 로그 생성이 되지 않는다.

- 물론, Apache에서 제공하는 $APACHE_HOME/bin/rotatelogs 가 존재하지만 이는 설정한 시간이 Apache를 기동한 시점부터 시간단위별 자르기가 되므로 본 목적에 부합하지가 않는다.

- 이러한 문제를 해결하기 위해서 cronolog 라는 것이 존재하는데, 이는 손쉽게 날짜별로 로그생성이 가능하다.

 

 

2. 설치

1) 다운로드

경로 : http://cronolog.org/download/index.html

 

2) configure

# ./configure --prefix=/home/monitor/apache/cronolog

 

prefix : 설치 경로

 

3) make

4) make install

 

 

3. 설정 (httpd.conf)

- ErrorLog, AccessLog, mod_jk Log까지 설정함

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

ErrorLog "|/home/monitor/apache/cronolog/sbin/cronolog /home/monitor/apache/logs/error_%Y%m%d.log"

 

CustomLog "|/home/monitor/apache/cronolog/sbin/cronolog /home/monitor/apache/logs/access_%Y%m%d.log" common

 

JkLogFile "|/home/monitor/apache/cronolog/sbin/cronolog /home/monitor/apache/logs/mod_jk_%Y%m%d.log"

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

 

 

4. 로그 생성 확인

- 생성된 로그파일을 확인하여 보면 아래와 같이 생성이 된다.

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

# ls -al

합계 28

drwxr-xr-x  2 monitor user 4096 10월 12 17:31 .

drwxr-xr-x 16 monitor user 4096 10월 12 17:24 ..

-rw-r--r--  1 monitor user 1216 10월 12 17:31 access_log_20101012.log

srwx------  1 monitor user    0 10월 12 17:30 cgisock.14919

-rw-r--r--  1 monitor user 1635 10월 12 17:33 error_log.20101012.log

-rw-r--r--  1 monitor user    6 10월 12 17:30 httpd.pid

-rw-r--r--  1 monitor user  384 10월 12 17:30 jk-runtime-status.14919

-rw-r--r--  1 monitor user    1 10월 12 17:30 jk-runtime-status.14919.lock

-rw-r--r--  1 monitor user  105 10월 12 17:30 mod_jk_20101012.log

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


  1. apache, tomcat 가상디렉토리 설정

    Date2010.09.17 ByADMINPLAY Views23003
    Read More
  2. Apache 최적화

    Date2008.11.11 ByADMINPLAY Views15769
    Read More
  3. Apache 웹페이지 한글깨짐, AddDefaultsCharset 설정

    Date2009.01.03 ByADMINPLAY Views30520
    Read More
  4. Apache 웹서버 MaxClient 최대값 조정을 위한 C & CPP 플...

    Date2009.06.21 ByADMINPLAY Views13815
    Read More
  5. apache 외부링크 차단

    Date2010.08.31 ByADMINPLAY Views21221
    Read More
  6. Apache 에서 최대 접속자 수 늘리기

    Date2012.07.30 ByADMINPLAY Views14405
    Read More
  7. apache 에서 euc-kr홈페이지를 포팅할때 화면이안나올경우

    Date2009.07.18 ByADMINPLAY Views14217
    Read More
  8. apache 설치시 에러 발생 collect2: ld returned 1 exit s...

    Date2013.03.12 ByADMINPLAY Views9811
    Read More
  9. Apache 버전확인

    Date2008.12.23 ByADMINPLAY Views15428
    Read More
  10. Apache 로그레벨의 종류

    Date2012.01.16 ByADMINPLAY Views20844
    Read More
  11. Apache Worker 방식의 이해 및 설정법

    Date2012.01.16 ByADMINPLAY Views16955
    Read More
  12. apache server 2.2, Tomcat5.5 로드밸런싱 및 클러스터

    Date2009.12.10 ByADMINPLAY Views19119
    Read More
  13. Apache mod_deflate

    Date2012.01.16 ByADMINPLAY Views23387
    Read More
  14. Apache Make시 /usr/lib/libexpat.so: could not read sym...

    Date2009.08.07 ByADMINPLAY Views17943
    Read More
  15. apache log에 그림이미지 파일 로그 안남기기

    Date2009.11.26 ByADMINPLAY Views14666
    Read More
  16. apache log 정리

    Date2008.12.14 ByADMINPLAY Views13527
    Read More
  17. Apache expires 설정으로 브라우저 캐시

    Date2013.03.18 Byl2zeo Views11893
    Read More
  18. apache cronolog를 이용한 Apache Log File 날짜 별로 생...

    Date2012.01.16 ByADMINPLAY Views23506
    Read More
  19. Apache 2.2.21 패치 (mod_proxy_ajp 패치와 apache killer...

    Date2012.01.16 ByADMINPLAY Views19641
    Read More
  20. Apache 2.2.17 (mod_url 하고 mod_rewrite 충돌)

    Date2011.08.18 ByADMINPLAY Views20396
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234