Re: How do I do full access logging including HTTP headers?



"Jürgen Exner" <jurgenex@xxxxxxxxxxx> wrote:

Nu wrote:
My webhost has sucky logging. So I'm looking for a perl or PHP
script that can do full logging of all the HTTP headers for each hit.
I websearched for hours and came up with nothing.

Doesn't surprise me that you didn't find anything.
Logging can only be done by the tool, that is performing the action.
In this case the web server is performing the action (= responding to
HTTP requests), therefore the web server must log its own action.
There is no way for an external tool to guess what the web server is
or isn't doing.

I know what you try to say, but it's not true how you wrote it. A simple
proxy that listens on port 80, and having your webserver on 8080 can do
that logging. It's an external tool ;-)

Also there are plenty of ways to plug in an external tool into Apache and
log anything you want.

The easiest is probably to extend the log format to include the headers
the OP wants.

--
John Experienced Perl programmer: http://castleamber.com/

Perl help, tutorials, and examples: http://johnbokma.com/perl/
.



Relevant Pages

  • Re: How do I do full access logging including HTTP headers?
    ... Logging can only be done by the tool, that is performing the action. ... therefore the web server must log its own action. ... There is no way for an external tool to guess what the web server is ...
    (comp.lang.perl.misc)
  • Re: How do I do full access logging including HTTP headers?
    ... script that can do full logging of all the HTTP headers for each hit. ... Logging can only be done by the tool, that is performing the action. ... therefore the web server must log its own action. ...
    (comp.lang.perl.misc)
  • Re: Problem with authenticating users to my WSS site
    ... If that was the case then logging ... So it's perhaps not a WSS problem as such but something to do with access to ... This web server is on our Internet ... > So i'm not using Windows Authentication, ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Basic pix configuration
    ... > If you are just wanting to provide access to the inside web server you ... >>the outside interface is 10.10.20.250 ... >>> fixup protocol http 80 ... >>> no logging timestamp ...
    (comp.security.firewalls)
  • Re: Stop logging of localhost
    ... It is possible however to set up a second virtual web server folder/instance ... > IIS logging is controlled by URL, ... > Windows Firewall or a hardware firewall? ...
    (microsoft.public.inetserver.iis.security)