conicalflask / fs2

A sophisticated file sharing system for LAN parties with a focus on fast accurate searching, easy browsing and fast transfers.
BSD 3-Clause "New" or "Revised" License
6 stars 1 forks source link

Add an access/security log (apache style probably.) #10

Closed ghost closed 12 years ago

ghost commented 12 years ago

Feature request as per title

conicalflask commented 12 years ago

Yep. Wanted this forever too. Supply a snippet of log sample and I'll add it.

mt-inside commented 12 years ago

The grammar must be documented somewhere... Oh well, here are some snippets from a (really badly configured) apache2 server.

apache2-style access.log: 66.249.67.74 - - [05/Aug/2012:06:45:08 +0100] "GET /trac/browser/fs2/branch/delta/doc/0.7.32.description?rev=536&order=date&desc=1 HTTP/1.1" 500 3545 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" 66.249.67.74 - - [05/Aug/2012:06:45:39 +0100] "GET /trac/changeset/416/fs2-obsolete/src/client/AlreadyRefreshingShareException.java HTTP/1.1" 500 3554 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" 66.249.67.74 - - [05/Aug/2012:06:47:43 +0100] "GET /trac/browser/fs2/branch/delta/build.xml?rev=538&order=size HTTP/1.1" 500 3535 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" 66.249.67.74 - - [05/Aug/2012:06:50:17 +0100] "GET /trac/browser/fs2/branch/delta/build.xml?rev=541&desc=1 HTTP/1.1" 500 3530 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" 66.249.67.74 - - [05/Aug/2012:06:52:52 +0100] "GET /trac/browser/fs2/branch/delta/icons/chat_megapro.png?rev=548&desc=1 HTTP/1.1" 500 3540 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" 66.249.67.74 - - [05/Aug/2012:06:55:28 +0100] "GET /trac/browser/fs2/branch/delta/icons/chat_megapro.png?rev=548&order=date&desc=1 HTTP/1.1" 500 3549 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" 66.249.67.74 - - [05/Aug/2012:06:57:28 +0100] "GET /trac/changeset/533/fs2/trunk/src/indexnode/IndexNode.java HTTP/1.1" 500 3540 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" 66.249.67.74 - - [05/Aug/2012:06:57:46 +0100] "GET /trac/browser/icons/connect.png?rev=129 HTTP/1.1" 500 3516 "-" "Googlebot-Image/1.0"

apache2-style error log: [Sun Aug 05 06:43:59 2012] [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'. [Sun Aug 05 06:43:59 2012] [error] python_init: Python executable found '/usr/bin/python'. [Sun Aug 05 06:43:59 2012] [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'. [Sun Aug 05 06:43:59 2012] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads. [Sun Aug 05 06:43:59 2012] [notice] mod_python: using mutex_directory /tmp [Sun Aug 05 06:44:00 2012] [warn] RSA server certificate CommonName (CN) `mattt.84.166.40.188.clients.your-server.de' does NOT match server name!? [Sun Aug 05 06:44:00 2012] [warn] mod_wsgi: Compiled for Python/2.7.2+. [Sun Aug 05 06:44:00 2012] [warn] mod_wsgi: Runtime using Python/2.7.3. [Sun Aug 05 06:44:00 2012] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_python/3.3.1 Python/2.7.3 mod_ssl/2.2.22 OpenSSL/1.0.1 mod_wsgi/3.3 configured -- resuming normal operations

conicalflask commented 12 years ago

Simple access log added. I've not really got any interest in a security log. Things that cause problems and attempted violations go into the console log anyway.