리눅스, 자료실, 성경검색, 추억의게임, 고전게임, 오락실게임, rootman, http://www.rootman.co.kr
* 23.20.7.34 *
| Home | Profile | Linux | 자료실 | zabbix | Mysql 5.6 | 갤러리 | 성경검색 | 해피니스 | 자유게시판 | 게시물검색 | L | O | R |    

 
[Doc/Faq] Webalizer 설치 및 분석
 작성자 : rootman
Date : 2002-03-14 21:05  |  Hit : 15,674  
개요 : What is your Web Server doing today ?
The Webalizer 는 무료로 제공되는 웹 분석 프로그램이다,
그것은 상당히 자세하고도 표준 웹 브라우저를 통해 Html 형태로 쉽게 레포팅 해준다.
밑 부분은 저자의 말이네요.... 히힛.~~

It was written to solve several problems that I had with currently available analysis packages.
A vast majority of them were written in Perl or some other scripting language, and took forever to run. Some were not free.
Some even produced wrong results, or results that were not in a format I found very useful.
In order to get the stats I wanted, in a format that I liked, I wrote The Webalizer, and have made it available here, to anyone who wants it, for any purpose.
Starting as a simple Perl script with limited capabilities, it has grown into a full featured, robust and fast analysis tool, being used by thousands of systems around the globe.
News: Version 2.01 now available! (V2.01-06 released 17-Oct-2000).

This is a major upgrade that adds many of the most requested features I've received since the release of 1.30, including support for PNG images, Squid proxy logs, Gzip compressed logs, reverse DNS lookups, display of all objects on a seperate HTML pages, user defined search engines for search string analysis, the ability to export the data to other programs and a lot more. See the CHANGES file for a complete list.


이제 함 설치편을 보겠습니다.


-------------------------------
* 설치 편
-------------------------------

1. GD graphics
[[email protected] gd]# vi gd.c
#include "/usr/local/zlib/zlib.h"

[[email protected] gd]# vi gd_jpeg.c
#include "/usr/local/jpeg6b/jpeglib.h"
#include "/usr/local/jpeg6b/jerror.h"

[[email protected] gd]# vi gd_png.c
#include "/usr/local/libpng121/png.h"

[[email protected] gd]# vi Makefile
INCLUDEDIRS=-I. -I/usr/local/include/freetype2 -I/usr/local/include
LIBDIRS=-L/usr/local/lib -L/usr/lib
INSTALL_LIB=/usr/local/lib
INSTALL_INCLUDE=/usr/local/include

[[email protected] gd]# make && make install



2. zlib GD graphics library 구하기
[[email protected] zlib] ./configure -s && make ----------> libz.a 를 만든다.
[[email protected] zlib] ./configure && make test && make install
[[email protected] zlib] cp libz.so* /usr/local/lib
[[email protected] zlib] cd /usr/local/lib; rm -rf libz.so; rm -rf libz.so.1
[[email protected] zlib] ln -s libz.so.1.1.4 libz.so; ln -s libz.so.1.1.4 libz.so.1



3. libpng graphics
[[email protected] libpng]# make -f scripts/makefile.std CC=gcc ZLIBLIB=../zlib ZLIBINC=../zlib



4. Webalizer 구하기
http://www.mrunix.net/webalizer/download.html
Version 1.7.3 을 다운 받습니다../configure --help 하면 configure의 자세한 사항을 볼 수 있습니다.

[[email protected] webalizer] rm -f webalizer_lang.h
[[email protected] webalizer] ln -s lang/webalizer_lang.korean webalizer_lang.h
[[email protected] webalizer] ./configure --with-language=korean --with-gdlib=../gd --with-gd=../gd --with-zlib=../zlib --with-png=../libpng
[[email protected] webalizer] make && make install

위와 같은 곳으로 install되시는 것을 보실 수 있을 것입니다.



5. Webalizer 실행하기
[[email protected] webalizer] mkdir conf
[[email protected] webalizer] webalizer -c rootman.co.kr


webalizer -h 로 자세한 정보 참고하세요~



6. 환경 설정하기
webalizer -c mysite.conf 라는 명령어를 주고 실행하여 보십시오.c의 옵션은 아래와 같습니다.
-c file This option specifies a configuration file to use.
Configuration files allow greater control over how The Webalizer behaves, and there are several ways to use them.
As of version 0.98, The Webalizer searches for a default configuration file in the current directory named
"webalizer.conf", and if not found, will search in the /etc/ directory for a file of the same name.
In addition, you may specify a configuration file to use with this command line option.

환경 설정 파일에서 바꾸어야 할 부분들.
#LogFile /home/apachel/logs/access_log#OutputDir
/home/apachel/Result#ReportTitle
Usage Statistics for
이런 식으로 사용하시면 됩니다.
잠시 레포팅 되는 명칭에 대해 살펴 보겠습니다.


---------------------------------------------------
1. Hits
Any request made to the server which is logged, is considered a 'hit'.
The requests can be for anything... html pages, graphic images, audio files, CGI scripts, etc...
Each valid line in the server log is counted as a hit.
This number represents the total number of requests that were made to the server during the specified report period.

찬호역) HIt 수란. 말그대로 홈페이지에 접속하고 부터의 모든 엑세스를 뜻한다고 하군요, html 페이지, 그래픽이미지, 오디오 파일, cgi 스크립트 등등입니다.


2. Files
Some requests made to the server, require that the server then send something back to the requesting client, such as a html page or graphic image.
When this happens, it is considered a 'file' and the files total is incremented.
The relationship between 'hits' and 'files' can be thought of as 'incoming requests' and 'outgoing responses'.


3. Pages
Pages are, well, pages! Generally, any HTML document, or anything that generates an HTML document, would be considered a page.
This does not include the other stuff that goes into a document, such as graphic images, audio clips, etc...
This number represents the number of 'pages' requested only, and does not include the other 'stuff' that is in the page.
What actually constitutes a 'page' can vary from server to server.
The default action is to treat anything with the extension '.htm','.html' or '.cgi' as a page.
A lot of sites willprobably define other extensions, such as '.phtml', '.php3' and '.pl' as pages as well.
Some people consider this number as the number of 'pure' hits...
I'm not sure if I totally agree with that viewpoint.
Some other programs (and people :) refer to this as 'Pageviews'.

찬호역) 참 좋은 말 같네염.하핫. 순수한 웹 페이지를 뜻한다고 나오네욤..
htm, html, cgi, php, php3, php4,phtml 등등 의 화면 View 수라합니다.


4. Sites
Each request made to the server comes from a unique 'site', which can be referenced by a name or ultimately, an IP address.
The 'sites'number shows how many unique IP addresses made requests to the server during the reporting time period.
This DOES NOT mean the number of unique individual users (real people) that visited, which is impossible to determine using just logs and the HTTP protocol
(however, this number might be about as close as you will get).


5. 설정예 샘플(rootman.co.kr)

LogFile /usr/local/apache/logs/access_rootman.co.kr
OutputDir /home/rootman/public_html/log
HostName www.rootman.co.kr
ReportTitle
#-----------------------------------------------------
#LogType clf
#HistoryName webalizer.hist
Incremental yes
IncrementalName webalizer.current
#HTMLExtension html
PageType htm*
PageType cgi
#PageType phtml
#PageType php3
#PageType pl
#UseHTTPS no
#DNSCache dns_cache.db
#DNSChildren 0
#HTMLPre
#HTMLHead
#HTMLBody
#HTMLPost

#HTMLTail 
#HTMLEnd
#Quiet no
#ReallyQuiet no
#TimeMe no
#GMTTime no
#Debug no
#FoldSeqErr no
#VisitTimeout 1800
#IgnoreHist no
#CountryGraph yes
#DailyGraph yes
#DailyStats yes
#HourlyGraph yes
#HourlyStats yes
#GraphLegend yes
#GraphLines 2
#TopSites 30
#TopKSites 10
#TopURLs 30
#TopKURLs 10
#TopReferrers 30
#TopAgents 15
#TopCountries 30
#TopEntry 10
#TopExit 10
#TopSearch 20
#TopUsers 20

#AllSites no
#AllURLs no
#AllReferrers no
#AllAgents no
#AllSearchStr no
#AllUsers no
#IndexAlias home.htm
#IndexAlias homepage.htm
# Your own site should be hidden
#HideSite *mrunix.net
#HideSite localhost
# Your own site gives most referrals
#HideReferrer mrunix.net/

# This one hides non-referrers ("-" Direct requests)
#HideReferrer Direct Request

# Usually you want to hide these
HideURL *.gif
HideURL *.GIF
HideURL *.jpg
HideURL *.JPG
HideURL *.png
HideURL *.PNG
HideURL *.ra

# Hiding agents is kind of futile
#HideAgent RealPlayer

# You can also hide based on authenticated username
#HideUser root
#HideUser admin

# Grouping options
#GroupURL /cgi-bin/* CGI scripts
#GroupURL /images/* Images

#GroupSite *.aol.com
#GroupSite *.compuserve.com

#GroupReferrer yahoo.com/ Yahoo!
#GroupReferrer excite.com/ Excite
#GroupReferrer infoseek.com/ InfoSeek
#GroupReferrer webcrawler.com/ WebCrawler

#GroupUser root Admin users
#GroupUser admin Admin users
#GroupUser wheel Admin users

# The following is a great way to get an overall total
# for browsers, and not display all the detail records.
# (You should use MangleAgent to refine further...)

#GroupAgent MSIE Micro$oft Internet Exploder
#HideAgent MSIE
#GroupAgent Mozilla Netscape
#HideAgent Mozilla
#GroupAgent Lynx* Lynx
#HideAgent Lynx*
#HideAllSites no
#GroupDomains 0
#GroupShading yes
#GroupHighlight yes
#IgnoreSite bad.site.net
#IgnoreURL /test*
#IgnoreReferrer file:/*
#IgnoreAgent RealPlayer
#IgnoreUser root
# Example: Only show stats on Joe User's pages...
#IgnoreURL *
#IncludeURL ~joeuser*

# Or based on an authenticated username
#IgnoreUser *
#IncludeUser someuser
#MangleAgents 0
SearchEngine yahoo.com p=
SearchEngine altavista.com q=
SearchEngine google.com q=
SearchEngine eureka.com q=
SearchEngine lycos.com query=
SearchEngine hotbot.com MT=
SearchEngine msn.com MT=
SearchEngine infoseek.com qt=
SearchEngine webcrawler searchText=
SearchEngine excite search=
SearchEngine netscape.com search=
SearchEngine mamma.com query=
SearchEngine alltheweb.com query=
SearchEngine northernlight.com qr=

# The Dump* keywords allow the dumping of Sites, URL's, Referrers
# User Agents, Usernames and Search strings to seperate tab delimited
# text files, suitable for import into most database or spreadsheet
# programs.

# DumpPath specifies the path to dump the files. If not specified,
# it will default to the current output directory. Do not use a
# trailing slash ('/').

#DumpPath /var/lib/httpd/logs
#DumpHeader no
#DumpExtension tab

# These control the dumping of each individual table. The value
# can be either 'yes' or 'no'.. the default is 'no'.
#DumpSites no
#DumpURLs no
#DumpReferrers no
#DumpAgents no
#DumpUsers no
#DumpSearchStr no

# End of configuration file... Have a nice day!";

 
 

Total. 645
번호 분류 제목 작성자 등록일 조회수
645 기초강좌 NFS server unable to open connection to tcp6/udp6 networks rootman 09-27 1782
644 php [php] mssql ms-sql 한글 변환 끄적임.. 정리 rootman 03-29 2572
643 기초강좌 java vim 에서 자바 환경 만들기 rootman 02-16 2049
642 삭제예정 [xencenter] xenserver tool 설치 rootman 08-24 2935
641 mysql [mysql] Creating a File-Per-Table Tablespace Outside the Dat… rootman 08-03 3120
640 기초강좌 Centos Xwindow 설치 rootman 06-16 3972
639 php [php] highlight 함수 rootman 04-01 3872
638 qmail [qmail] qmail-scanner에 filtering 된 이메일 처리 rootman 02-14 4250
637 Shell [날짜] awk를 이용하여 unixtime의 시간 차 구하기 rootman 01-27 4719
636 기초강좌 centos에 그놈(gnome) 설치하기 rootman 01-10 4687
635 쉘(awk) [awk] shell 변수 사용하기 rootman 12-27 4599
634 기초강좌 서버 캐시 메모리 초기화하기 (drop_caches) rootman 12-11 5320
633 windows tips 그리드 제거 배치 스크립트 rootman 11-28 5203
632 기초강좌 패스워드 lockgin control rootman 09-06 4
631 windows tips win7 자동 로그인 설정하기 rootman 08-18 4767
 1  2  3  4  5  6  7  8  9  10    
AND OR