View previous topic :: View next topic |
Author |
Message |
anggarda n00b
Joined: 16 Dec 2003 Posts: 41
|
Posted: Wed Oct 31, 2007 9:42 am Post subject: Multiple Apache/HTTPD Logs |
|
|
Good Day, fellow Gentooers.
I would like to have 2 copies of my httpd/apache logs to exist locally within the same folder.
The simplest way I could think of, was to have a cron job which copies the logs from the syslog folder to another folder where it can be easily access by less risky users.
However, I would like for the duplicate logs to be as close to real time as possible.
Are there any facilties in any of the logging deamons which allows for this?
Thanking everyone in advance for any input.
Salut. |
|
Back to top |
|
|
selig Guru
Joined: 31 Jul 2005 Posts: 425 Location: Prague, Czech Republic
|
Posted: Wed Oct 31, 2007 10:45 am Post subject: |
|
|
I think the only thing you need to do is put multiple "CustomLog" lines with different log names into httpd.conf... it will log the same into several files. Or alternatively you could create one or more FIFOs, run something like "tee /var/log/apache2/access.log </var/log/apache2/access.fifo >/var/safe/duplicate.log" and then start apache with "CustomLog" configured to the FIFO... but I have not tested this. |
|
Back to top |
|
|
|