> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of Franco Oberto
> Sent: Wednesday, April 30, 2008 10:23 PM
> To: [email protected]
> Subject: ftp - syslogd - rotate
> 
> HI ,
> 
> We have   Z/OS 1.7 .
> If  I  want to break the output of  syslogd
> can I use the parameter rotate in the syslogd.conf  or
> other  open source syslog-rotate programs
> 
> Regards
> 
> Franco Oberto

I am not sure about 1.7. On z/OS 1.8, my /etc/syslog.conf file looks
like:

kern.* /var/log/kern.%Y-%m-%d
user.* /var/log/user.%Y-%m-%d
mail.* /var/log/mail.%Y-%m-%d
news.* /var/log/news.%Y-%m-%d
uucp.* /var/log/uucp.%Y-%m-%d
daemon.* /var/log/daemon.%Y-%m-%d
auth.* /var/log/auth.%Y-%m-%d
cron.* /var/log/cron.%Y-%m-%d
local0.* /var/log/local0.%Y-%m-%d
local1.* /var/log/local1.%Y-%m-%d
local2.* /var/log/local2.%Y-%m-%d
local3.* /var/log/local3.%Y-%m-%d
local4.* /var/log/local4.%Y-%m-%d
local5.* /var/log/local5.%Y-%m-%d
local6.* /var/log/local6.%Y-%m-%d
local7.* /var/log/local7.%Y-%m-%d
#*.crit @10.171.35.14.%Y-%m-%d
#mark.* /var/log/mark.%Y-%m-%d

I have a crontab running from ROOT which looks like:

1 0  * * * kill -HUP $(cat /etc/syslog.pid)

So that 1 second after midnight, the "kill" is issued. This causes
syslogd to reread the /etc/syslog.conf and as a side effect pick up the
new name. %Y is replaced with the 4 digit year, %m is replaced by the 2
digit month, %d is replaced by the 2 digit day. You can then run some
other process to clean up old files in /var/log

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.  

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to