The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
34 views

logrotate not working as expected with my custom log

I turned on mysql general log, and since it was growing pretty fast I thought of using logrotate daily, so I created the log yesterday at about 2pm and this is how the log looks like: -rw-rw---- 1 ...
1
vote
1answer
38 views

logrotate create group not working

cat /etc/issue Welcome to SUSE Linux Enterprise Server 11 SP1 for VMware (x86_64) - Kernel \r (\l). rpm -qf /etc/logrotate.conf logrotate-3.7.7-10.22 tail -n15 /etc/logrotate.d/syslog /var/log/...
1
vote
1answer
134 views

logrotate :: How to delete old logs in a logfile after logfile size reaches 1M size

How can I keep log file size limited to 1M? I want to delete old log entries in a log file after log file size reaches 1M size. I do not want to delete the log file itself.
1
vote
1answer
602 views

Logrotate not picking up or acting on new configuration file

I had a logrotate configuration file set up for a log (let's call it Log1). It is working fine and the log is rotating everyday as expected. Yesterday I cloned this set up and modified it for three ...
1
vote
1answer
453 views

logrotate custom “rotate” action equivalent for upstart?

In lots of online posts regarding how to rotate your iptables log files, for example here rsyslog config files get reloaded by the postrotate option of logrotate, presumably in order to stop rsyslog ...
1
vote
1answer
553 views

Rotating iptables logs, strange message about script being converted to upstart job

I use a script /etc/logrotate.d/iptables containing entries like: /var/log/in_iptables.log { rotate 4 weekly missingok notifempty compress ...
0
votes
1answer
89 views

logrotate Compress doesn't work at all redhat 7

My logrotate compress is not working at all. Log rotation will rotate file but it doesn't compress at all. Any simple mistake i am doing please let me know. This is output of logrotate -v /etc/...
0
votes
1answer
789 views

Logrotate files with timestamps in the names

Seems like it should work: "/usr/local/tomcat/logs/" { daily compress delaycompress copytruncate rotate 1 prerotate /usr/bin/find /usr/local/tomcat/logs/ -name stupidLogWithTimestamp* -size -10k -...
0
votes
1answer
266 views

Logrotate doesn't rotate logs

I'm new to Linux, and I want to use logrorate. The logs are written to /var/log/curLog/log.log. As mentioned in the documentation, I create a new file in /etc/logrotate.d/ with name currentLog. The ...
0
votes
1answer
312 views

How to override configuration of a logrotate by another configuration

There is a log folder on my disk, whose rotation policy is as follows "/mnt/foo/shared/log/*.log" { # rotate the files daily daily # Save the last 7 days worth of logs before deleting rotate ...
2
votes
0answers
404 views

Logrotate archive old log files which has date extention

Everyday a log file is created in my directory. But with time, there tend to be a lot of log files. I want to keep the latest 4 log files in .log format, and compress the rest and copy the compressed ...
2
votes
0answers
357 views

Logwatch ignores self-defined service, but explicit setting --service $service works

I am using SSLH on my server to accept both SSL and SSH connections on Port 443. As the logs of sshd and apache2 show each incoming connection via SSLH originating from 127.0.0.1, I want to add the ...
1
vote
0answers
93 views

logrotation- rotate and maxage command

please check the below script where I have to rotate the file for 30 days and its moved into the backup directory after rotation. So as I have used rotate 30 and maxage 30, when the logrotation ...
1
vote
0answers
33 views

What is the max value of the rotate parameter of a logrotate configuration file?

I would just like to make sure I can put in a relatively large value like 730 for two years without having something unexpected happen.
1
vote
0answers
158 views

logadm permission issue in Solaris

Facing the following issue in a solaris box while using logadm tool . It is showing me permission denied error . -> logadm -w princelog /html/web/www.log -C 3 -s 500m -z 0 logadm: Error: /etc/...
1
vote
0answers
104 views

Logrotate or scripting to manipulate log file

I want to make sure that a certain log file gets empty when it reaches a specific size. I first used logrotate since the man page says: It will not modify a log multiple times in one day unless ...
1
vote
0answers
98 views

How to set one job to run at precise time with anacron without losing config at next upgrade?

I want logrotate to run at a precise time daily. Currently it is set to run at some random time using anacron and I don't want to change the randomness factor for all the other jobs. I have ...
1
vote
0answers
338 views

logrotate error “error: error opening /home/web/logs/dev.log.10: No such file or directory”

In a run, sometimes I get such type of errors for any of the log file. Below is my configuration: /home/web/logs/*.log.* { missingok copytruncate olddir rotate rotate 5000 compress ...
1
vote
0answers
5k views

why daily cron isn't running on CentOS 6?

I have a daily cronjob set up on CentOS 6 OS which should look after the log rotation job. The file is /etc/cron.daily/logrotate and it's contents are #!/bin/sh /usr/sbin/logrotate /etc/logrotate....
1
vote
0answers
86 views

Smarter log rotation

I want to reduce the amount of logs in my system, but reduce them smartly. The general idea is, each time you rotate, look for any warning/error/critical level logs, and keep 2 minutes of log context ...
0
votes
0answers
190 views

logrotate works when run manually, doesn't when run with cron

This is on Ubuntu Server 14.04, but I think it's applicable to all OSes. I'm running logrotate as a cron job, cron settings are the defaults (logrotate exists in /etc/cron.daily). I'm running a ...
0
votes
0answers
49 views

is it possible to increase the xorg log backup level in ubuntu?

I thought it was 3 before. But right now it only keeps Xorg.0.log and Xorg.0.log.old. Can I increase it to 10 or some other value? It seems the logrotate does not affect the Xorg.0.log at all. ...
0
votes
0answers
97 views

After logrotate my tomcat logs all all zero

I've a problem rotating my tomcat logs. I've the following logrotate-file for tomcat8 (/etc/logrotate.d/tomcat8): /var/log/tomcat8/catalina.out { copytruncate weekly rotate 8 compress ...
0
votes
0answers
30 views

logrotate logs in special dir format

I have my log file in this format in /var/log//YYYYMMDD/app[1-5].log I would like the following: On the 3rd of each month, move the directory /var/log//YYYYMMDD where MM is the previous month to /...