nixCraft Linux Forum

nixCraft

Linux / UNIX 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

Linux answers from nixCraft.


Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-08-2006, 05:00 AM
Junior Member
User
 
Join Date: Jul 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
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
  #2 (permalink)  
Old 09-08-2006, 06:20 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 244 Times in 183 Posts
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 Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 10-08-2006, 05:40 AM
Junior Member
User
 
Join Date: Jul 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ishu
Default Thanks

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


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 Off


Similar Threads

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


All times are GMT +5.5. The time now is 10:33 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

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 37 38