The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
263 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
2answers
157 views

How to manage all logs on VPS

I'm new to Linux but I'm about to start using a VPS to host my website. I've been reading about and it's been mentioned that I need to make sure that all of my logs are rotating and compressed, but I ...
0
votes
2answers
177 views

logrotate log file with enging date issue

We have following log files, log file with ending with date catalina.out.2014-02-01 catalina.out.2014-02-02 catalina.out.2014-02-03 catalina.out.2014-02-04 catalina.out.2014-02-05 ...
0
votes
2answers
1k views

Use logrotate to store 7 daily, 4 weekly and 12 yearly db backups

I've been trying to use logrotate to store a database backup for: last 7 days (daily) last 4 weeks (weekly) last 12 months (monthly) I've done a logrotate script like this, but only the daily ...
0
votes
1answer
67 views

Log rotation in Linux

Whenever I execute ls command in /var/log directory, I could find log files, e.g. messages, and their rotated versions, e.g. messages.1.gz. Even though I am not using any utility like logrotate, how ...
0
votes
2answers
433 views

What does this logrotate nginx config do?

In my /etc/logrotate.d/nginx I saw, /var/log/nginx/*.log { daily missingok rotate 52 compress delaycompress notifempty create 640 nginx adm ...
0
votes
1answer
392 views

newsyslog.conf logrotate when file is older than 6 month

I would like to delete following files with newsyslog.conf when the files are older than 6 month: # logfile [owner:group] mode count size when flags [/pid_file] ...
0
votes
1answer
35 views

File inventories and logrotation

I want to collect a huge amount of data files on my actual netapp storage with the command file - f /path... > logfile.txt. Through the huge data amount, the size of the logfile will be critical. ...
0
votes
1answer
14 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
0answers
22 views

Log rotate - not copying the all file

I'm running a script to monitor the load of my server with the "top" command. t's called monitor I use logrotate to rotate the output file and save it every day. For this I have a crontab configured. ...
0
votes
0answers
24 views

How will logrotate delete customly named logs?

If someone would do a: vi /etc/logrotate.d/syslog # to the "/var/log/messages" part: lastaction OLDLOGFILENAME=$(ls -1t /var/log/messages* | grep gz | head -1) NEWLOGFILENAME=$(echo ...
0
votes
1answer
477 views

dateformat use in logrotate

cat /etc/logrotate.d/syslog ... /var/log/messages { daily compress dateext dateformat "-%Y%m%d-%s" maxage 90 rotate 90 missingok notifempty size +4096k create ...
0
votes
0answers
53 views

logrotate not working as intended

logrotate.conf # see "man logrotate" for details # rotate log files weekly weekly # keep 4 weeks worth of backlogs rotate 4 # create new (empty) log files after rotating old ones create # ...
0
votes
1answer
36 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
0answers
1k 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 ...
0
votes
0answers
62 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
1answer
102 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 ...