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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a way we can generate log files on a daily basis in apache

Status
Not open for further replies.

akgta

Programmer
Jul 18, 2007
42
CA
Is there a way we can generate access/error log files on a daily basis in apache?

Thanks in advance.
 
There are 2 ways. The easiest is to write a script that runs through cron that rotates the logs for you and restarts apache every day.

The second is to use cronolog, which works just like the other logs with piped output but knows to the file given a format or config.

eugene



 
can you explain a little more in details please
thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top