The tag has no wiki summary.

learn more… | top users | synonyms

32
votes
1answer
5k views

How to do a `tail -f` of log rotated files?

On a long running system I usually have a terminal with $ tail -f /var/log/kern.log or something like this open. But from time to time I have to restart such command because no new messages are ...
9
votes
5answers
5k views

Keep log file size fixed without logrotate

Is there any way to keep file size of log file fixed without rotating it by a new empty file and deleting (or archiving) the old file. For example, if I set log file maximum size to 1MB, after the ...
18
votes
6answers
2k views

Is there a tool that combines zcat and cat transparently?

When handling log files, some end up as gzipped files thanks to logrotate and others not. So when you try something like this: $ zcat * you end up with a command line like zcat xyz.log xyz.log.1 ...
3
votes
3answers
1k views

solution to rotate log files

I am running a daemon process that will have to run indefinitely (a 'service' so to speak) and wish to log its output. A simple solution like: ./long-running-process > log.out & ... fails as ...
2
votes
1answer
2k views

Activity Logging Level in SFTP

I'm using CentOS, i have already figured out how to enable the SFTP Logging. After that when i test it by using FileZilla (from User-end) and tail -f /var/log/sftp.log from the Server, all the ...
2
votes
3answers
3k views

Logrotate not truncating open file

I have a system that is acting simultaneously as a test and demo platform. I'm recording a massive amount of data output by my systems that I wouldn't be recording when this is in deployment and ...
4
votes
1answer
109 views

Keeping copies of the X log file on Debian

I recently tried to replace my Nvidia driver with the Nouveau driver for my Nvidia card, (see Switching from Nvidia proprietary driver to Nouveau driver for Nvidia card on Debian wheezy). ...
1
vote
1answer
700 views

Error stat of log failed: Permission denied during LogRotation

After installing a new CentOS 6.0 server, logrotate was working absolutely fine. Then one day due to a kernel panic, the server had to be hard booted, and ever since log rotation is not rotating the ...