Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

is this a valid apache log format, if not, what can I do t..

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  Highly-slow access to Unix-Linux server Apache/2...  
Author Message
Scott Haneda

External


Since: Feb 13, 2008
Posts: 1



(Msg. 1) Posted: Wed Feb 13, 2008 11:10 am
Post subject: is this a valid apache log format, if not, what can I do to fix it?
Archived from groups: alt>apache>configuration (more info?)

httpd -v
Server version: Apache/1.3.33 (Darwin)
Server built: Jan 30 2006 03:08:20

From my httpd.conf:
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-
Agent}i\"" virtual

Snip of a few log lines:
pokey.example.com 59.92.230.64 - - [22/Jan/2008:08:14:19 -0800] "GET /
\" + gaJsHost + \"google-analytics.com/ga.js HTTP/1.1" 400 376 "-" "-"

pokey.example.com 59.92.230.64 - - [22/Jan/2008:08:15:56 -0800] "GET /
os-x-finder-tutorial-and-customizations-part-5/\" + gaJsHost +
\"google-analytics.com/ga.js HTTP/1.1" 400 376 "-" "-"

pokey.example.com 125.34.153.138 - - [23/Jan/2008:14:12:51 -0800]
"GET /experiment-modify-customize/\" + gaJsHost + \"google-
analytics.com/ga.js HTTP/1.1" 400 376 "-" "-"

These show up as errors in my stats software, (summary.net)
The developer stated the following:
Something strange is going on. Spaces are flat out illegal in
requests, yet that request has spaces in it, in addition to the double
quotes. Apache is inconsistant in it's logging of requests with
invalid characters in them. It is possible to work around the double
quote problem, but it is impossible to work around the spaces without
adding a log fixing process with some other tool between Apache and
Summary.

I do not mind working out a parsing routing to clean the bad lines up,
if they are indeed bad. Ideally, I would like to find out where the
issue is, and prevent this from happening, as it is now, my stats are
devalued as a result of the lines.

I really do not want to have to send my logs to a separate parser just
to keep them clean. The apache docs on what the tokens stand for are
clear, what I can not find out is a clear definition of how the logs
format should be. If space is a delimiter, I can understand how the
above examples are indeed going to be hard to parse out correctly.

Thanks in advance.

 >> Stay informed about: is this a valid apache log format, if not, what can I do t.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache 2.2.3 , error-log format , cgi - stderr - Hello. Sorry for my english.. I have a problem with logging cgi's stderr . On my configuration (Apache 2.3.20 running on opensuse 10.2) all error messages from cgi goes to Apache's error_log. But apache write it in strange way ,each line of apache's log ...

sspi + SSL + valid-user not working - Hi everybody, I am trying getting to work together Apache 2.0.59 with OpenSSL and mod_auth_sspi 1.0.4 . I am very close to what I need - that is protecting an area of my web site with SSL and Windows domain authentication to give access to all the domain...

Clear rights for valid-user in subdirectory - Hallo, maybe this is an easy question, but I can not configure this. Our apache books do not really help me in this case and I start thinking that this might not be possible.. I want to clear all rigths from a subdirecty which has only rights for ..

reverse proxy setup...still getting "No protocol handler .. - I am trying to enable reverse proxy.. I have done the following: 1) Activate the following Modules: LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule proxy_ftp_module..

RewriteCond Format - I don't know if this is possible. I want to redirect outbound requests to another page on my site. For example: my site is www.mysite.com and any requests for pages within it go unaffected. If any of my pages have a link to any outsite page/site such....
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]