The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
20 views

Use logrotate with manual file management

I'm trying to use logrotate with some unfriendly software. I don't want to court data loss with the copytruncate option. Instead, the software has an internal (gimped) rotate capability. ...
1
vote
0answers
37 views

Is there a tool like `cronolog` or `rotatelogs`, but also with compression and removal like in `logrotate`?

I want simple piped logging without config files or system-wide rules for periodic command execution. Are there any projects that allows to do that? Expecting something like this: ...
0
votes
1answer
35 views

Capture logrotated files on change

This is something rather special, but I bet you can help me out. I'm working in an environment where many logfiles are generated and rotated, mainly from java-services runnning. As we are performing ...
3
votes
2answers
278 views

Will cron.daily wait for jobs to finish before starting the next one?

This page http://wiki.ci.uchicago.edu/I2U2/WebalizerConfiguration suggests renaming /etc/cron.daily/logrotate so it comes after /etc/cron.daily/webalizer - webalizer should be done before logrotate ...
0
votes
2answers
86 views

Logrotate says “log needs rotating” and then does nothing

I have the following logrotate configuration, and a 2 GB /var/log/messages: /var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron /var/log/network { ...
0
votes
2answers
1k views

Logrotate not doing any rotation

I just set up LogRotate on my RHEL6 server so that it rotates my custom Apache log files. However, it doesn't do anything when i try manually running it. I expect it to rotate the log files ...
0
votes
1answer
146 views

Logrotate append to existing file and truncate original

Is it possible with logrotate to take the content of a log and add it to an existing file? Like so: 1. Put the content of /var/log/vnc.log after the content of /archive/logs/vnc.log 2. Truncate ...
0
votes
1answer
94 views

Merge and view rotated and compressed logfiles

I have a bunch of partly compressed rotated logfiles from a Glassfish application server (using a custom Java logging format): /tmp/server.log /tmp/server.log.13.gz /tmp/server.log.18.gz ...
0
votes
0answers
355 views

Logrotate appending file name with a “.1”

For some reason our tomcatlogs are being appended with a .1 when logrotate runs. e.g: file "tcl-2013-08-16.0.log" becomes "tcl-2013-08-16.0.1.log". I am struggling to find what setting is adding the ...
0
votes
2answers
208 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
73 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 ...
1
vote
1answer
377 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
38 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
201 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
2k 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 ...
1
vote
1answer
358 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
483 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
2answers
488 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
730 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
56 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
492 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
580 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 ?
2
votes
1answer
326 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 ...
10
votes
5answers
6k 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 ...
19
votes
1answer
12k 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
146 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 ...