Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ Ä¿ÇÇÇâÀÌ ³ª´Â *NIX
Ä¿ÇǴнº
½Ã½ºÅÛ/³×Æ®¿÷/º¸¾ÈÀ» ´Ù·ç´Â °÷
* HanIRCÀÇ #coffeenix ¹æ
[ Àåºñ ¹× ȸ¼± ÈÄ¿ø ]
HOME > ½Ã½ºÅÛ °ü¸® / ¼­¹ö¿î¿µ > ·Î±×(log) / syslog µµ¿ò¸»
°Ë»ö : »çÀÌÆ® WHOIS À¥¼­¹ö Á¾·ù


  ¿ø°Ý ·Î±×ºÐ¼®Åø awstats ÀÛ¼ºÀÏ : 2007/03/10 11:05
 
  • ±Û¾´ÀÌ : kaien
  • Á¶È¸¼ö : 9897
          [ ÀÌÀüÈ­¸é / ¼öÁ¤ ]   ºñ¹Ð¹øÈ£ :     Àμâ¿ë È­¸é
      ÀÛ¼º : 2005. 12. 1. kaien
    ÇÁ·ÎÁ§Æ® : ¸ð »çÀÌÆ®

    1. °³¿ä
    A. ÇöÀç À¥ ¼­ºñ½º ¼­¹ö¿¡ ´ëÇÑ À¥·Î±× ºÐ¼®ÀÌ ÇÊ¿ä.
    2. ¹æ¹ý
    A. ¼­ºñ½º ¼­¹ö¿¡¼­ ·Î±×ºÐ¼®Àº ÇÇÇÏ°í x.x.x.x ¹é¾÷¼­¹ö¿¡¼­ °¢ ¼­¹öÀÇ ·Î±× ÆÄÀÏÀ» °¡Á®¿Í¼­ ºÐ¼®ÇÏ°Ô ÇÔ.
    B. ºÐ¼®Åø·Î´Â awstats¸¦ »ç¿ëÇÔ. ( http://awstats.sourceforge.net )
    3. ¼¼ÆÃ
    A. ȯ°æ¼³Á¤
        # tar xvfz awstats-6.4.tgz
        # mv awstats-6.4 /usr/local/awstats
        # chmod 755 /usr/local/awstats/
        # chown -R root.root /usr/local/awstats/
        # mkdir /etc/awstats
        # mkdir /var/lib/awstats
    B. ÀνºÅç
        # cd /usr/local/awstats/tools
        # ./awstats_configure.pl
    i. ½ºÅ©¸³Æ®°¡ ½ÇÇàµÇ´Âµ¥ 3°¡Áö Á¤µµ¸¦ ¹°¾îº»´Ù. ¸ðµÎ 'y'¶ó°í ÇÏ°í µµ¸ÞÀÎÀ» ÀûÀ¸¸é awstats.µµ¸ÞÀÎ.conf  Çü½ÄÀ¸·Î »ý¼ºµÈ´Ù.
    ii. ¼³Á¤ ÆÄÀÏ º¯°æ ( ex ) http://cacti.xxx.com )
    1. vi /etc/awstats/awastats.xxx.com.conf
    # If there is several log files from load balancing servers :
    # Example: "/pathtotools/logresolvemerge.pl *.log |"
    #
    #LogFile="/var/log/httpd/mylog.log"
    ÀÌ ºÎºÐ¿¡ »ðÀÔÇÑ´Ù.
    LogFilie="/usr/local/apache2/log/cacti.xxx-access-log"
    # Example: "myintranetserver"
    # Example: "www.domain.com"
    # Example: "ftp.domain.com"
    # Example: "domain.com"
    #
    SiteDomain="cacti.xxx.com"
    # Note: Use space between each value.
    # Note: You can use regular expression values writing value with REGEX[value].
    # Note: You can also use @/mypath/myfile if list of aliases are in a file.
    # Example: "www.myserver.com localhost 127.0.0.1 REGEX[mydomain\.(net|org)$]"
    #
    HostAliases="cacti.xxx.com www.cacti.xxx.com 127.0.0.1 localhost"
    C. ¾ÆÆÄÄ¡ httpd.conf ¼öÁ¤
    i. ±âº»ÀûÀ¸·Î www ·Î µé¾î°¥ °ÍÀÌ´Ù. ±×·¡¼­ ÇöÀç ¾ÆÆÄÄ¡¿¡¼­ cgi-bin °æ·Î¸¦ ¼öÁ¤ÇØÁà¾ßµÈ´Ù.
        Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"
        Alias /awstatscss "/usr/local/awstats/wwwroot/css/"
        Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/"
        ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"
       #
        # This is to permit URL access to scripts/files in AWStats directory.
        #
        <Directory "/usr/local/awstats/wwwroot">
            Options None
            AllowOverride None
            Order allow,deny
            Allow from all
        </Directory>
    ii. Awstats¸¦ ¾ÆÆÄÄ¡ ·Î±×Æ÷¸ËÁß ÇϳªÀÎ combined ¸¦ Áö¿øÇÑ´Ù. Common ÀÌ¿´´ø ·Î±× ÇüŸ¦ ¾Æ·¡¿Í °°ÀÌ combined ·Î ¼öÁ¤ÇÑ´Ù.
    CustomLog logs/monitoring.xxx.com-access_log combined env=!not_log
    D. ´Ù¸¥ À¥¼­¹ö¿¡¼­ x.x.x.x·Î ·Î±× ÆÄÀÏÀ» scp¸¦ ÀÌ¿ëÇؼ­ ÁÖ±âÀûÀ¸·Î º¸³½´Ù.
    i. 172 À¥¼­¹ö ( ex. Log.sh)
    #!/bin/bash
    scp /usr/local/apache2/logs/xxx-access_log xxx@x.x.x.x:/usr/local/apache2/logs/remote
    scp /usr/local/apache2/logs/dnplaza-access_log xxx@x.x.x.x:/usr/local/apache2/logs/remote
    scp /usr/local/apache2/logs/djplaza-access_log xxx@x.x.x.x:/usr/local/apache2/logs/remote
    scp /usr/local/apache2/logs/hansaem-access_log xxx@x.x.x.x:/usr/local/apache2/logs/remote
    E. Awstats ¿¡¼­ ºÐ¼®ÇØ¾ß ÇÒ ·Î±×µéÀ» ½ºÅ©¸³Æ®·Î ÀÛ¼ºÇÏ¿© ÀÏ°ýÀûÀ¸·Î ºÐ¼®ÇÏ°Ô²û ÇÑ´Ù.
    #!/bin/bash
    /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=cacti.xxx.com
    /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=xxx.com
    /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=xxx.co.kr
    /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=xx.co.kr
    /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=xx.com
    /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=xx.com
    /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=webmail.xxx.com
    F. ½ÇÇàÀ» ÇÏ°Ô µÇ¸é Â÷·Ê´ë·Î ¸®¸ðÆ®·Î °¡Á®¿Â ·Î±×È­ÀϵéÀ» ºÐ¼®ÇÏ°Ô µÈ´Ù.
    G. °á°ú¹°Àº http://cacti.xxx.com/awstats/awstats.pl?config=µµ¸ÞÀÎ ½ÄÀ¸·Î URL °æ·Î°¡ µÈ´Ù. ( ex ) http://cacti.xxx.com/awstats/awstats.pl?config=xxx.com
    x.x.x.x ¸ð´ÏÅ͸µ »çÀÌÆ® monitoring.xxx.com
      Ä¿ÇǴнº Ä«Æä ÃÖ±Ù ±Û
    [04/18] ??? ?????
    [04/17] ???? onion ?????? -
    [04/11] ±¹°¡&#5
    [04/10] Stride Into Dream:
    [03/20] Re: ¿Â¶óÀΰÔÀÓÀÇ Á¾ÁÖ±¹ ´ëÇѹα¹
    [10/20] Cross Compiler ±ò
    [07/14] SSL ¬¡¬°
    [04/26] Re: µµ½ºÈ­¸é ¿ø°ÝÁ¶Á¾ ¿©ºÎ
    [04/25] µµ½ºÈ­¸é ¿ø°ÝÁ¶Á¾ ¿©ºÎ
    [10/30] Cshell¿¡¼­ ³­¼ö ¼³Á¤
    [10/23] °øÇ×öµµÁÖ½Äȸ»ç SE ±¸ÀÎ Ëì
    [01/26] Re: wgetÀ¸·Î ´Ù¸¥¼­¹ö¿¡ÀÖ´Â µð·ºÅ丮¸¦ °¡Á®¿À·Á°íÇÕ´Ï´Ù.
    [01/25] wgetÀ¸·Î ´Ù¸¥¼­¹ö¿¡ÀÖ´Â µð·ºÅ丮¸¦ °¡Á®¿À·Á°íÇÕ´Ï´Ù.
    [01/11] ƯÁ¤ ¾Èµå·ÎÀ̵å WebView ¹öÀü¿¡¼­ SSL ¹®Á¦ (WebView ¹ö±×)
    [08/01] DNS forwarder (Àü´ÞÀÚ) ¼­¹ö¸¦ ÅëÇؼ­ Äõ¸®ÇÏ¸é ¿ª¹æÇâÀ» ¹Þ¾Æ¿ÀÁú ¸øÇÕ´Ï´Ù.
      New!   ÃÖ±Ù¿¡ µî·ÏÇÑ ÆäÀÌÁö
      KiCad EDA Suite project (Free/Libre/Open-Source EDA Suite) (CAD)
      ¿ÀÇÂij½ºÄÉÀ̵å ijµå (OpenCASCADE CAD)
      QCad for Windows --- GNU GPL (Free Software)
      The Hello World Collection
      IPMI¸¦ È°¿ëÇÑ ¸®´ª½º ¼­¹ö°ü¸®
      DNS ¼³Á¤ °Ë»ç
      nagiosgraph ¼³Ä¡ ¹æ¹ý
      Slony-I ¼³Ä¡ ¹æ¹ý (postgresql replication tool)
      Qmail±â¹ÝÀÇ Anti spam ½Ã½ºÅÛ ±¸ÃàÇϱâ
      clusterssh

    [ ÇÔ²²ÇÏ´Â »çÀÌÆ® ]




    ¿î¿µÁø : ÁÁÀºÁøÈ£(truefeel), ¾ß¼ö(yasu), ¹ü³ÃÀÌ, sCag
    2003³â 8¿ù 4ÀÏ~