Who knows syslog?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Who knows syslog?
# 1  
Old 01-05-2004
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  
Old 01-05-2004
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  
Old 01-05-2004
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  
Old 01-06-2004
Hi,

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

Regards
malcom
 
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. AIX

Cannot send syslog event from AIX 6.1 to RHEL Syslog server

Hi everyone, I am trying to configure AIX 6.1 using syslogd to send syslog event to syslog server configured on RHEL. However, RHEL never receives the events. I have tried to redirect the syslog event on AIX to a local file and successful. Only forwarding to remote server fails. Firewall... (10 Replies)
Discussion started by: michael_hoang
10 Replies

2. Solaris

Which are the available entries to forward syslog in syslog.conf?

Hi Community Which are the available entries to forward syslog in syslog.conf i have put *.err;kern.debug;daemon.notice;mail.crit;user.alert;user.emerg;kern.notice;auth.notice;kern.warning @172.16.200.50 and it's not going through.giving error message like below: syslogd:... (2 Replies)
Discussion started by: bentech4u
2 Replies
Login or Register to Ask a Question