The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
16 views

Logrotating all logs in a directory causes date duplication

I have a logrotate config that looks like this: /var/log/update-job/*.log { daily rotate 7 compress delaycompress size 0k missingok copytruncate notifempty dateext ...
0
votes
1answer
33 views

Logrotate not rotating my logs

Running on Ubuntu 14.04, I have the following logrotate config under /etc/logrotate.d/logstash /opt/app/logs/logstash*.log { size 1g create 700 app app rotate 5 } This log ...
0
votes
0answers
7 views

Logrotate treat all matches as one log

With logrotate, I know I can write configurations like this: /var/log/service/*.log { ... rotate 3 } Then logrotate will rotate any logs that matches the pattern. My problem is that I have ...
1
vote
1answer
66 views

logrotate: How to configure and override defaults?

I'm testing a logrotate configuration in /tmp. I'd like to configure a default logrotate policy for /tmp/*.log files using my test configuration file /tmp/logrotate.conf to handle a particular log ...
1
vote
2answers
129 views

logrotate in SUSE Enterprise Server

I can't manage to work this dummy config file (I placed it in etc/logrotate.d): /var/log/test_log/mylogfile { copytruncate dateext rotate 3 compress missingok size=+2 } I write to the log (echo ...
0
votes
1answer
51 views

How do I stop recurring error messages from appearing in messages and auditd.log?

On my CentOS linux machine, in my auditd.conf file, I have set my max_log_file_action=keep_logs. However, in my /var/log/messages and /var/log/auditd.log, the following message appears multiple times ...
0
votes
1answer
49 views

How to run logrotate as a local user?

I'm trying to manage logs which are generated by local scripts. These logs are nothing but stdout and stderr redirected to local files. I don't have root access and trying to run logrotate as a ...
1
vote
1answer
216 views

Logrotate error: No file found

One of our servers has a recurring error message for Logrotate. /etc/cron.daily/logrotate: ERROR No file found for /usr/local/Zend/apache2/logs/error_log Log rotation is working normally for ...
0
votes
1answer
36 views

Logrotate not rotating on file size

According to the man page "Normally, logrotate is run as a daily cron job. It will not modify a log multiple times in one day unless the criterium for that log is based on the log’s size". So, ...
0
votes
0answers
7 views

How to log services last status

I've been looking for a way to log the apache2 service in Ubuntu. The objective is to have a log (i.e.: /var/log/apache2/service.log) of when and who started/stopped/restarted the daemon. All ...
0
votes
1answer
101 views

Remove leading null blocks from a sparse file

I'm using logrotate with the copytruncate option. This works well, creating a sparse file that starts with an increasing number of "virtual" null blocks that take up no space on disk. The problem is ...
0
votes
2answers
386 views

Disable Logging on Raspian/Debian

I want to stop my Raspberry Pi to create System-wide Logs in Order to save Memory Space. Is there a Way to disable Logrotate? I Hope You can help me
8
votes
2answers
714 views

Logrotate no longer reads symlinked configuration file due to non-root ownership

We are currently upgrading from Ubuntu 12.04 LTS to 14.04 LTS on our ruby on rails application servers, and have noticed that the log files are no longer rotating. On both machines we have a file ...
2
votes
1answer
1k views

logrotate unable to rotate logs, getting “No such file error”

logrotate is unable to rotate my logs. I have checked the file permissions, they are fine. I have even tried by putting "su root root" in the configuration file, still I am facing the same issue. ...
0
votes
1answer
57 views

LogRotate Custom Script Logs Breaks Script?

I have a daemon script I made that always runs in the background. It's setup to pipe stdout and stderr to some log files as such: python27 etl_daemon.py 1>>/var/log/etl/etl_stdout.log ...
0
votes
2answers
346 views

How to rotate enumerated filenames similar to logrotate?

I have a couple of files, let's say map-0.jpg (newest), map-1.jpg, map-2.jpg, ..., map-9.jpg (oldest). Now my cronjob downloads a new picture from the internet and should save it as map-0.jpg. All ...
0
votes
1answer
46 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
237 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
194 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
947 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
1answer
741 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
5k 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
402 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
376 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
2k 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
391 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
85 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
748 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
40 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
598 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, ...
3
votes
1answer
4k 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
531 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
602 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
754 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
1k 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
60 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
675 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
839 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
671 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 ...
18
votes
7answers
10k 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 ...
36
votes
1answer
23k 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
157 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 ...