News for hackers. Stuff that matters.
Re:How to Display Realtime Traffic Analytics by mdg on Wednesday September 02, 2009 @11:57AM (#800438)
I briefly looked over the code while browsing the web on my phone so pardon me if I missed this:

Do you need to enforce a certain logging scheme? eg. [ ip ] :: [ user-agent ] :: etc, or is there something in settings.py that specifies what each record in the log file looks like?

This was something I was contemplating last week and wasnt sure of a way to accomodate people that might log different things or log things in a different order than I.

Re:How to Display Realtime Traffic Analytics by pyroman on Wednesday September 02, 2009 @04:50PM (#801087)
I left that out of the post because I didn't change it from what Apache was installed with on my debian box. It looks like this.

#

# The following directives define some format nicknames for use with

# a CustomLog directive (see below).

# If you are behind a reverse proxy, you might want to change %h into %{X-Forwarded-For}i

# LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

LogFormat "%h %l %u %t \"%r\" %>s %b" common

LogFormat "%{Referer}i -> %U" referer

LogFormat "%{User-agent}i" agent

Format reference: http://httpd.apache.org/docs/1.3/mod/mod_log_config.html#for...