Tagged Questions
0
votes
0answers
31 views
Rsyslog Output Files - Reload on Rotate?
Good morning,
I'm new to everything sysadmin.
I"m trying to set a few server processes to log to rsyslog (for future shipping abilities, etc.), but want to have clean log files on my local machine ...
1
vote
1answer
53 views
In logrotate, where does postrotate log errors?
If there are errors in the postrotate script block, where are they logged in Ubuntu?
2
votes
3answers
1k views
nginx logrotate config
Whats the best way to rotate nginx logfiles? In my opinion, I should create a file "nginx" in /etc/logrotate.d/ and fill it with the following code and do a /etc/init.d/syslog restart after that.
...
5
votes
4answers
8k views
logrotate does not compress /var/log/messages
Over time I noticed some logs in /var/log such as auth, kern and messages were getting huge. I made logrotate entries for them:
$ cat /etc/logrotate.d/auth.log
/var/log/kern.log {
rotate 5
...
2
votes
2answers
365 views
syslog rotation
I wrote a small c app that uses the syslog c interface to write messages (from man 3 syslog):
void openlog(const char *ident, int logopt, int facility);
void syslog(int priority, const char *message, ...
2
votes
2answers
289 views
Two scripts in /etc/cron.daily seem to be rotating my logs: logrotate and sysklogd
It seems that my logfiles generated by syslog are getting rotated twice each day. I believe this is due to both /etc/cron.daily/logrotate and /etc/cron.daily/sysklogd doing overlapping work.
Here are ...
0
votes
2answers
3k views
How to use wildcards within logrotate configuration files
I have the following configuration that is not working:
1) Using rsyslog with Centos 5.
2) Inside /etc/logrotate.d I have the file sj-piers-logs.
SJ-PIERS-LOGS:
/syslogrep/sjpiers-logs/0* {
weekly
...