Gossamer Forum
Home : General : Internet Technologies :

Apache create 2 logs?

Quote Reply
Apache create 2 logs?
hi,

does anyone know if apache would have any problem creating 2 transfer logs?

TransferLog /path/to/first/access-log
TransferLog /path/to/second/access-log

what I'm doing is logging traffic to individual sub-domains, but i also want to have one "total" log file to monitor traffic across the whole site.

regan.
Quote Reply
Re: [ryel01] Apache create 2 logs? In reply to
That's not a problem, but you should use CustomLog, not TransferLog.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Apache create 2 logs? In reply to
HI Alex,

Do you mean use CustomLog for the second one? As in...

TransferLog /path/to/first/access-log
CustomLog /path/to/second/access-log

Regan.
Quote Reply
Re: [ryel01] Apache create 2 logs? In reply to
For both actually. TransferLog is depreciated, and you should use CustomLog instead. You can specify as many logs as you like with CustomLog. It does require a second argument, which should be the format the log file is in:

LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog logs/access_log1 common
CustomLog logs/access_log2 common

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Apache create 2 logs? In reply to
Thanks Alex!

Will give that a go! Smile

Regan.