Deleting proxy log files?
Hi all,
I have a ClearOS firewall installed on one of my UNIX machines and would like to delete all the logs associated with all the users activities (visiting websites, proxy, etc.) over the past years and would like to clear the files so it doesn't contain any proxy data. Will the following commands take care of it or I should be doing something else as well? Thanks in advance 1) cd /var/log 2) rm -rf boot.log.1 boot.log.2 boot.log.3 boot.log.4 compliance.1 compliance.2 compliance.3 compliance.4 cron.1 cron.2 cron.3 cron.4 maillog.1 maillog.2 maillog.3 maillog.4 messages.1 messages.2 messages.3 messages.4 rpmpkgs.1 rpmpkgs.2 rpmpkgs.3 rpmpkgs.4 secure.1 secure.2 secure.3 secure.4 snortsam.1 snortsam.2 snortsam.3 snortsam.4 spooler.1 spooler.2 spooler.3 spooler.4 system.1 system.2 system.3 system.4 syswatch.1 syswatch.2 syswatch.3 syswatch.4 webconfig.1 webconfig.2 webconfig.3 webconfig.4 3) echo > /var/log/messages 4) echo > /var/log/maillog 5) cd /var/log/squid 6) rm -rf access.log.1.gz access.log.2.gz access.log.3.gz access.log.4.gz access.log.5.gz adzapper.log.1 adzapper.log.2 adzapper.log.3 adzapper.log.4 cache.log.1.gz cache.log.2.gz cach.log.3.gz cache.log.4.gz cache.log.5.gz store.log.1.gz store.log.2.gz store.log.3.gz store.log.4.gz store.log.5.gz 7) >/var/log/squid/access.log 8) >/var/log/squid/adzapper.log 9) >/var/log/squid/cache.log 10) >/var/log/squid/store.log Thanks |
The default directory is /var/log. if someone or you have not changed the location for sometimes.
http://www.clearcenter.com/support/d...ide/log_viewer |
Quote:
Code:
[root@servername ~]# cd /var/log |
Anyone? I would really appreciate it.
|
All times are GMT -5. The time now is 12:20 AM. |