LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-05-2012, 01:06 AM   #1
baskarang
LQ Newbie
 
Registered: Jan 2012
Posts: 4
Blog Entries: 1

Rep: Reputation: Disabled
how to clear squid access.log using script


hi guys

i am beginner in linux. After i did the squid tranparent configuration and deployed in my organization. now i want know how to clear the squid access.log and caches log using script. so kindly help me

regards
G Baskaran
 
Old 09-05-2012, 02:58 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
why would you want to clear them?? Generally you'd be rotating this file using logrotate, so you'd not use a script to do it at all.

this should be useful - http://www.faqs.org/docs/securing/chap28sec234.html
 
Old 09-06-2012, 03:52 AM   #3
baskarang
LQ Newbie
 
Registered: Jan 2012
Posts: 4
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Hi acid kewpie

Thanks for your reply. i will check that url let you know whether i get a right solution.


Regards
Baskaran G
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
squid /var/log/squid/access.log problems fahadabdillahi Linux - Server 0 12-17-2010 02:10 AM
Lighttpd access.log file is 73 GB ! How do I clear it partially? Prabagaran Linux - Server 4 05-20-2010 08:02 AM
New SQUID user: How to clear the "access.log" and "store.log" automatically? yuzuohong Linux - Networking 2 12-02-2006 06:37 AM
script to clear log files kushalkoolwal Programming 8 01-24-2006 08:11 PM
My squid won't fill /var/log/squid/access.log linuxlah Linux - General 5 10-06-2003 11:51 PM


All times are GMT -5. The time now is 04:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration