newsyslog.conf


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users newsyslog.conf
# 1  
Old 02-23-2008
newsyslog.conf

How can I setup the log rotation every 6 hour?

$D0<= in this place.
I try many variants but without success.
# 2  
Old 02-24-2008
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..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Configure resolv.conf and nsswitch.conf

Hi, I've installed Solaris 11.3(live media) and configured DNS. Everytime I reboot the server, resolv.conf got deleted and it created a new nsswitch.conf. I used below to configure both settings: # svccfg -s dns/client svc:/network/dns/client> setprop config/nameserver = (xx.xx.xx.aa... (1 Reply)
Discussion started by: flexihopper18
1 Replies

2. Shell Programming and Scripting

Script to update rsyslog.conf and auditd.conf

Hello all, Newbie here. I'm currently tasked with updating rsyslog.conf and auditd.conf on a large set of servers. I know the exact logging configurations that I want to enable. I have updated both files on on a server and hope to use the updated files as a template for the rest of the... (3 Replies)
Discussion started by: Mide
3 Replies

3. AIX

Logrotate.conf

Hey Admins, I have installed logrotate on AIX server. I want to configure it for 1. /var/log/messages – keep 90 days, i.e., weekly rotate 13 2. Syslog – keep 90 days i.e., weekly rotate 13 3. Wtmp – keep 90 days i.e., weekly rotate 13 4. Sulog – keep 90 days i.e., weekly rotate 13 What... (1 Reply)
Discussion started by: snchaudhari2
1 Replies

4. Shell Programming and Scripting

syslog.conf

How can i configure messages with warn priority to be logged in /var/log/mywarnings.log ? (1 Reply)
Discussion started by: g0dlik3
1 Replies

5. Solaris

basic question on sd.conf and lpc.conf file

Hello Guys, Do we need to configure this file only if we add SAN disk or even if we add local disk, do we need to modify? (4 Replies)
Discussion started by: mokkan
4 Replies

6. Red Hat

SD.conf and LPFC.conf

What would be Redhat RHEL 4.0 equivalent for Solaris sd.conf and lpfc.conf? What are the files called and where are the files located? (1 Reply)
Discussion started by: soupbone38
1 Replies

7. UNIX for Dummies Questions & Answers

resolv.conf

Hi everyone A quick question during a audit this was determined to be a security issue In the resolv.conf there is a “.” At the end of the domain name Like this domain mydomain.com. I which to understand the function or significance of the . thk (3 Replies)
Discussion started by: Ex-Capsa
3 Replies

8. Red Hat

grub.conf

i have installed rhel5 quite many times....... when i see grub.conf after installation, somtimes "kernel /boot/vmlinuz-2.6.18-8.el5 ro=LABEL=/ rhgb quiet" will be there or "kernel /boot/vmlinuz-2.6.18-8.el5 ro=LABEL=/1 rhgb quiet" will be there................ what is the significance of label=/... (1 Reply)
Discussion started by: sagar_md
1 Replies

9. UNIX for Advanced & Expert Users

Configuring snmpd.conf and snmptrapd.conf

HI, I want a help for Configuring snmpd.conf and snmptrapd.conf (i.e Configuring SNMP) for receiving TRAPS in my networks. I am using RHEL4.0 OS. Please tell me How I can configure above two files in a proper way and at an advanced level. Especially I am getting... (2 Replies)
Discussion started by: jagdish.machhi@
2 Replies

10. UNIX for Dummies Questions & Answers

limits.conf

I have line in this file that says: username - maxlogins 1 and user can login 2 times instad of one. does enybody know why? and how can I fix that? (2 Replies)
Discussion started by: shooroop
2 Replies
Login or Register to Ask a Question