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 Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Configuring snmpd.conf and snmptrapd.conf jagdish.machhi@ UNIX for Advanced & Expert Users 2 04-17-2008 03:01 PM
syslog.conf soliberus Red Hat 1 08-11-2006 07:44 AM
limits.conf shooroop UNIX for Dummies Questions & Answers 2 10-27-2005 07:07 PM
limits.conf dozy Linux 1 10-26-2005 11:12 AM
dhcpd.conf keliy1 Linux 1 11-17-2004 04:05 PM

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 02-23-2008
mirusnet's Avatar
mirusnet mirusnet is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 146
newsyslog.conf

How can I setup the log rotation every 6 hour?

$D0<= in this place.
I try many variants but without success.
  #2 (permalink)  
Old 02-24-2008
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,913
Have you read the man page? man newsyslog.

Code:
  when              The when field can consist of an interval, a specific
                       time, or both.  If the when field consists of an aster-
                       isk (`*'), log rotation will depend only on the con-
                       tents of the size field.  Otherwise, the when field
                       consists of an optional interval in hours, possibly
                       followed by an `@'-sign and a time in a restricted ISO
                       8601 format or by a `$'-sign and a time specification
                       for logfile rotation at a fixed time once per day, per
                       week or per month.
Thus enter 6 to rotate file every 6 hrs.

Last edited by fpmurphy; 02-24-2008 at 11:21 AM..
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 06:42 AM.


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