logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: mod_proxy does not write to log
Author
mrunderhill



Joined: 02 Jul 2024
Posts: 3

PostPosted: Thu 04 Jul '24 1:21    Post subject: mod_proxy does not write to log Reply with quote

lads,

apache's https proxy does not write to log until after the proxied connection has been established. it seems this is by design..is there any way to make it so that connections are logged as soon as the request is received by the proxy?

mrunderhill
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Fri 05 Jul '24 11:13    Post subject: Reply with quote

This has something to do with LogLevel[1]

You can set it for each module.

e.g.

Code:

LogLevel warn ssl:error auth_digest:error socache_shmcb:warn mpm_worker:warn fcgid:info




[1] https://httpd.apache.org/docs/2.4/mod/core.html#loglevel
Back to top
mrunderhill



Joined: 02 Jul 2024
Posts: 3

PostPosted: Sat 06 Jul '24 1:52    Post subject: Reply with quote

what exactly do i set? also probably should have mentioned that i'm using customlog, not errorlog
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 09 Jul '24 10:18    Post subject: Reply with quote

Set it for the proxy module. Adjust the log level for your needs

Code:

LogLevel warn proxy:trace5
Back to top
mrunderhill



Joined: 02 Jul 2024
Posts: 3

PostPosted: Tue 09 Jul '24 21:04    Post subject: Reply with quote

James Blond wrote:
Set it for the proxy module. Adjust the log level for your needs

Code:

LogLevel warn proxy:trace5


does that directive not affect logging of errors only? i'm using a custom log format with the customlog directive
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 15 Jul '24 22:08    Post subject: Reply with quote

mrunderhill wrote:
James Blond wrote:
Set it for the proxy module. Adjust the log level for your needs

Code:

LogLevel warn proxy:trace5


does that directive not affect logging of errors only? i'm using a custom log format with the customlog directive


Trace logs more than just errors. Take a look at https://httpd.apache.org/docs/2.4/en/mod/core.html#loglevel you can go down to a single byte if you like log flooding.

A custom logs does not have that option https://httpd.apache.org/docs/2.4/mod/mod_log_config.html#formats
Back to top


Reply to topic   Topic: mod_proxy does not write to log View previous topic :: View next topic
Post new topic   Forum Index -> Apache