So you’d like to see a graph and some sweet statistics of your website’s traffic? Your host is Dreamhost?
Visitors and GraphViz
Visitors is a very fast web log analyzer for Linux, Windows, and other Unix-like operating systems. It takes as input a web server log file, and outputs statistics in form of different reports. The design principles are very different compared to other software of the same type.
GraphViz is used to show those graphs generated by the visitors step.
Demo
How to Install
Here’s how you install visitors and graphviz on a dreamhost account. Quick and easy how to install fast website logging and graphing into a Dreamhost account
- First, grab the precompiled version of visitors
- Next copy this makefile source to a directory of your choosing (on your Dreamhost account)
- You’ll need to edit the HOST and TARGET lines at least, and probably the EXCLUDE line as well.
HOST=fastwiki.com TARGET=~/image-tags.com/files EXCLUDE=--exclude 72.134.42.251 --exclude 75.80.163.250 --exclude /admin/ OPTIONS=-TGKZHUWMRDYS --screen-info -m 400 --operating-systems --browsers --error404 --filter-spam PREFIX=--prefix http://$(HOST) LOGS=~/logs/$(HOST)/http NULL=>& /dev/null TMPLOG=access.tmp.log DOTFILE=graph.dot OUTFILE=visitors.html OUTGRAPH=visitors.png all: $(TARGET)/$(OUTFILE) $(TARGET)/$(OUTFILE) $(OUTFILE) $(OUTGRAPH) cp $(OUTFILE) $(OUTGRAPH) $(TARGET) $(OUTFILE): $(TMPLOG) ~/bin/visitors $(TMPLOG) $(OPTIONS) $(EXCLUDE) $(PREFIX) > $(OUTFILE) $(DOTFILE): $(TMPLOG) ~/bin/visitors $(TMPLOG) $(OPTIONS) $(PREFIX) $(EXCLUDE) --graphviz > $(DOTFILE) $(OUTGRAPH): $(DOTFILE) ~/bin/dot $(DOTFILE) -Tpng > $(OUTGRAPH) $(TMPLOG): $(LOGS)/access.log zcat $(LOGS)/access.log.*.gz > $(TMPLOG) cat $(LOGS)/access.log >> $(TMPLOG) clean: -rm $(DOTFILE) $(TMPLOG) $(OUTGRAPH) $(OUTFILE) *~ *#
- Host is the website hostname you’re interested in, TARGET is the place where the visitors.html (the stats) file and visitors.png (the graphs) files will be copied.
- Type make
- Browse to the TARGET location on your server to view the files.