Abarros22
asked on
How do you configure logrotate with syslog-ng?
Hello,
I just recently installed and configured syslog-ng to create and log individual log files for my routers. Although the logging is working fine, I noticed that the log files are growing larger by the day. How do you configure logrotate so that the files are replaced on a weekly basis with empty log files? The log files are located in the directory /var/www/html/syslog. I'm using Fedora Core.
I just recently installed and configured syslog-ng to create and log individual log files for my routers. Although the logging is working fine, I noticed that the log files are growing larger by the day. How do you configure logrotate so that the files are replaced on a weekly basis with empty log files? The log files are located in the directory /var/www/html/syslog. I'm using Fedora Core.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hello,
Thanks for the information. I was able to configure log rotation. However, before I close out the question, I would like to know if syslog-ng affects the functionality of the original syslogd. In other words, is syslogd still going to function as if syslog-ng had never been installed? Are all the local or original processes going to be logged normally?
Thanks for the information. I was able to configure log rotation. However, before I close out the question, I would like to know if syslog-ng affects the functionality of the original syslogd. In other words, is syslogd still going to function as if syslog-ng had never been installed? Are all the local or original processes going to be logged normally?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
syslog-ng is a replacement for syslogd. As long as syslog-ng is up and running, syslogd will not work, which has to do with access to /dev/... files and listening ports.
Once syslog-ng is stopped (and perhaps uninstalled) you can continue using syslogd as you did before.
wmp
Once syslog-ng is stopped (and perhaps uninstalled) you can continue using syslogd as you did before.
wmp
fosiul01, have you ever tried that?
ommm sorry if i say anything wrong
but sylog-ng is running on my server
suppose secure log form other pc is storing in /var/log/secure in sylog-ng server
along with normal log
if syslog damon does not work then how its happenning ??
but sylog-ng is running on my server
suppose secure log form other pc is storing in /var/log/secure in sylog-ng server
along with normal log
if syslog damon does not work then how its happenning ??
syslog-ng does normal local processing, too
ommmmm
then i will have to check tomorrow,
either i am mixing syslog-ng with syslog server
or
i am running syslog-ng but i stoped syslog server ...
Again, @author, I am sorry if i give any wrong informaiton about syslog damon and sylog-ng damon...
then i will have to check tomorrow,
either i am mixing syslog-ng with syslog server
or
i am running syslog-ng but i stoped syslog server ...
Again, @author, I am sorry if i give any wrong informaiton about syslog damon and sylog-ng damon...
check this one
http://dailypackage.fedorabook.com/index.php?/archives/40-Wednesday-Why-Log-rotation.html
if go to
cd /etc/logrotate.d
you will see a file call syslog
check what path it got in their
you should be able to change from their