Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache log file

Status
Not open for further replies.

garlam

Programmer
Oct 15, 2004
10
IT
There is a way to put an header (for example #Date: $current_date) on the Apache access.log ????

Thank in advance,
Mauro.
 
If you mean the date that the log was started, you could do that in the "postrotate" section of the logrotation config file.
 
Just curious what your reason is..

You can add a header to the file.. But if you plan to parse the file for any reason (ex: website stats) then more likely you will run into issues.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top