The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
24 views

Are the .log.gz old log files?

I have a couple of .log.#.gz files. (the # is a number) For example i have a ufw.log, a ufw.log.1.gz...all the way to ufw.log.4.gz. Are these .log.#.gz files old log files that got compressed? What ...
1
vote
0answers
43 views

Weird Disk space usage Ubuntu 10.04

I have an ubuntu 10.04 server. For the past couple weeks, or as long as I can remember my disk space was going down by about 1 kb per minute (I assume from the massive logs). However all of a sudden ...
0
votes
1answer
117 views

rsync: excluding log rotation files .gz.1, .gz.2 etc

I am doing rsync copies between server. I'd like to exclude compressed log rotate files from the process. The files look like *.gz *.gz.1 *.gz.2 *.gz.[0-99] I was unable to come up with ...
0
votes
1answer
31 views

How to make sure to have always enough disc space by deleting files from directories that are the oldest

I want to make sure that the server we use for logging certain things never runs out of disc space because of too many logs. The oldest logs shall be deleted when disc space is running low. Are there ...
0
votes
1answer
94 views

linux logrotate how to set rules for all log files in an directory(including files in sub-directory)

For example, I want to set rules for all files under /home/example_user/public/ and all logs are actually located in different sub-directories like this: /home/example_user/public/siteA/access.log, ...
4
votes
1answer
317 views

logrotate configuration and execution

I'm trying to configure logrotate to rotate and delete log files every day at midnight, but have never used it before. So: (a) I want to confirm that my configuration is correct, and (b) I need help ...
0
votes
1answer
227 views

Log rotation with automatic *.log file discovery

I am hosting several websites which each of run their own Python process and write *.log output files, but the directory structure is not standardized. Example: -rw-r--r-- 1 plone plone ...
2
votes
0answers
327 views

LogRotate use regex for filename

I have a custom logging class that creates a log for each instance of the process and adds a unique id to the log file name, example: process.1234.log process.1235.log Also I can add a date/time ...
0
votes
1answer
284 views

How do I efficiently rename and compress old logs after turning on compression in logrotate?

I recently turned on compression in logrotate.conf on multiple systems. Old uncompressed logs still remain with their old numbering. I am looking to run a script to put these old logs where they would ...
2
votes
1answer
453 views

Logrotate olddir with date

it's possible to configure logrotate to create an olddir per day? I'd like to get the same bash result, like this: user@blade1022m:~$ date "+%y%m%d" 120208 In /etc/logrotate.conf (pseudo-code): ...
0
votes
1answer
46 views

What is the effect of the size specifier of logrotate?

When using the size specifier with logrotate, are the files rotated as soon as the size gets bigger than what is specified, or does it rotate when it is run from the cron and the size is bigger than ...
0
votes
1answer
338 views

logrotate w/apache2 log files

I have apache setup to generate new log files everyday: CustomLog "|/usr/sbin/rotatelogs -f /var/log/apache2/access.log.%Y-%m-%d-%H_%M 86400" combined Then I'm trying to use logrotate to zip these ...
1
vote
2answers
269 views

Logrotate Error

When using logrotate from a cronjob, I am getting this erros: error: unable to open /var/log/mylog.1 for compression Does any one know what does it mean and how can I fix it ?
0
votes
1answer
129 views

Is it sufficient to put my configuration file under /etc/logrotate.d to logrotate?

I currently have a Django app running on Ubuntu under Apache. The Apache logs are generated at: /home/user/django/myproject/log/apache_access.log /home/user/django/myproject/log/apache_error.log ...
5
votes
3answers
3k views

Log rotation of stdout?

I have a Linux program which can write information to stdout and stderr. I have a shell script which redirects that output to a file in /var/log. (Via >> and 2>&1.) Is there a way to ...
7
votes
1answer
5k views

logrotate configuration file syntax - multiple wildcard entries possible?

Since the man page doesn't answer my question and I don't want to force a rotation cycle, I decided to ask the question here. The man page for logrotate gives the following example: ...
1
vote
2answers
127 views

Capture directory & contents, Rotate for only the last three days

Our current backup approach requires us to capture a Tomcat directory, and all it's contents. The rationale is the backup makes redeployment easier in the event of a disaster. It was rotating based ...