Find log files and copy to a folder

From Wiki

Revision as of 12:30, 28 April 2009 by Admin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Copies all apache log files to a new folder to analyse or run webalizer against etc.

for logfile in `ls /var/log/apache2/ | grep -v gz | grep -v .1`
       cp /var/log/apache2/$logfile /var/tmp/apachelog/
Personal tools