The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
syslog.log - hp-ux mhbd UNIX for Dummies Questions & Answers 4 02-12-2009 03:56 AM
syslog Hitori UNIX for Advanced & Expert Users 2 02-12-2008 05:54 PM
syslog csaunders SUN Solaris 13 08-29-2006 08:13 PM
syslog greg0320 UNIX for Dummies Questions & Answers 4 06-11-2004 02:26 PM
syslog.log (HP-UX) salhoub UNIX for Advanced & Expert Users 2 07-17-2003 08:27 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-05-2004
acqy acqy is offline
Registered User
  
 

Join Date: Dec 2003
Posts: 6
Who knows syslog?

I've a question to ask:
we can first modify /etc/syslog.conf then "service syslog restart" to make the modification activated. After that, we can use "openlog", "syslog" etc. functions in our program to output the log. My question is, if my program works day and night, the log file may be larger and larger, does syslog supply "log file clean-up" service? Can syslog delete the log file everyday? How can I make the configuration?
  #2 (permalink)  
Old 01-05-2004
jsilva's Avatar
jsilva jsilva is offline
Registered User
  
 

Join Date: Apr 2003
Posts: 169
Hi,

Depending on you OS ( please, always post your platform on every question, even if you think that it's not necessary ), there're some tools to do log rotation... logrotate ( linuxes ), logadm ( solaris ), etc... keep in mind that everytime you change a file that is modified by syslog, you must restart the daemon... you can do it in a lots of ways, restarting the service on the initialization scripts, sending a HUP signal to the process ( it works on every *IX "flavour" ), etc...
  #3 (permalink)  
Old 01-05-2004
acqy acqy is offline
Registered User
  
 

Join Date: Dec 2003
Posts: 6
to jsilva

Thank you for your reply and I'm in RedHat Linux env.
Now I'll browse Internet and manual of Linux to see how to use logrotate. If I still have some question, may I bother you again?
Thanks.
  #4 (permalink)  
Old 01-06-2004
malcom's Avatar
malcom malcom is offline
Registered User
  
 

Join Date: Jul 2003
Location: Germany
Posts: 78
Hi,

RedHat Linux is using logrotate from default I think. It should be already installed and configured. Check your crontabs.

Regards
malcom
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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




All times are GMT -4. The time now is 08:31 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0