nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

HOW TO HANDLE LOG FILES???

This is a discussion on HOW TO HANDLE LOG FILES??? within the Linux software forums, part of the Linux Getting Started category; Hi All, How to handle these Log files which i got in /var/log/squid files which files are neccessary and which ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 08-09-2006, 05:00 AM
Junior Member
User
 
Join Date: Jul 2006
Posts: 15
Rep Power: 0
ishu
Default HOW TO HANDLE LOG FILES???

Hi All,

How to handle these Log files which i got in /var/log/squid files which files are neccessary and which we can backup and delete.
please help me regarding this.



[root@intranet squid]# ls
access.log access.log..2 access.log.3.gz access.log.5.gz cache.log.2.gz cache.log.5.gz store.log.1.gz store.log.4.gz
access.log.1.gz access.log.2.gz access.log.4 cache.log cache.log.3.gz squid.log store.log.2.gz store.log.5.gz
access.log.2 access.log.3 access.log.4.gz cache.log.1.gz cache.log.4.gz store.log store.log.3.gz
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-09-2006, 06:20 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 906
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Current file name is access.log or cache.log all other files are old one which can be deleted or can be moved to tape backup using mv command.

You can configure log file logrotate http://www.cyberciti.biz/faqs/2006/0...-log-files.php

hope this helps
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 08-10-2006, 05:40 AM
Junior Member
User
 
Join Date: Jul 2006
Posts: 15
Rep Power: 0
ishu
Default Thanks

Thanks Nix U r really helpful. i will try this today
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Smartest way to handle domains (vhost) oscar Web servers 6 03-16-2007 02:21 AM
Shell script for automatic conversion of files in tar files kasimani Shell scripting 2 02-08-2007 03:45 PM


All times are GMT +5.5. The time now is 07:57 AM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36