User Tools

Site Tools


find_log_files_and_copy_to_a_folder

This is an old revision of the document!


Find_log_files_and_copy_to_a_folder

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

#!/bin/bash for logfile in `ls /var/log/apache2/ | grep -v gz | grep -v .1` do

      cp /var/log/apache2/$logfile /var/tmp/apachelog/

done

find_log_files_and_copy_to_a_folder.1658260370.txt.gz · Last modified: 2022/07/19 21:13 (external edit)