how do i rotate my apache logs - Printable Version +- Linux-Noob Forums (https://www.linux-noob.com/forums) +-- Forum: Linux Server Administration (https://www.linux-noob.com/forums/forum-8.html) +--- Forum: LAMP (https://www.linux-noob.com/forums/forum-83.html) +--- Thread: how do i rotate my apache logs (/thread-2253.html) Pages:
1
2
|
how do i rotate my apache logs - znx - 2006-11-02 Quote:# LogFile defines the web server log file to use. If not specified# here or on on the command line, input will default to STDIN. If Well attempting to specify it in the file will plainly fail, however it gives us a clue of a way around it: Code: cat /usr/local/apache/logs/access_log* | webalizer Using stdin we can simply pipe the information into webalizer. Of course if the logs get compressed then we would have a slightly different command. Anyway that should capture all the logs and rotated logs, I guess that order is unimportant as the log file actually has that information on every line. |