Questions tagged [log-rotation]
143 questions
0
votes
1 answer
How do I combine Winston and pm2 for logging that rotates at a specific schedule
My node application is currently using Winston for console logging, but there are various issues that are difficult to debug on the development environment. I need to create a logger that logs warnings and errors only and saves the logs to a text…

Bargain23
- 1,863
- 3
- 29
- 50
0
votes
0 answers
NLog log-rotation/archiving inconsistent behavior
I have a project that uses NLog to create and maintain log files. This includes the use of log-rotation/archiving of old log files. However, I've seen that the archiving settings of NLog are not always respected, especially regarding the…

ThaMe90
- 4,196
- 5
- 39
- 64
0
votes
1 answer
Delete log file when exceeds size limit every minute. Crontab/Logrotate
Currently it deletes all the log files that starts with laravel-*.log instead of the ones that are bigger then 100MB. My logrotate version is 3.8.7.
My crontab:
*/1 * * * * root logrotate -f…

Dave
- 1
- 1
0
votes
0 answers
Supervisor logrotate breaks on first logrotate occurrence
I'm trying to implement a supervisor application into my project. For now everything worked as expected, but I encountered a weird behavior with log rotate.
For testing purposes i have small python script which, while it's running, writes random…

Ivan Pavlina
- 45
- 6
0
votes
1 answer
Implement salt-minion log rotate on Windows
My aim is to implement log rotation for salt-minion installed on Windows.
It seems - there is no standard way to reach that: issues 34265 and 26195 on their GitHub are still alive.
I thought about some sort of win-task + a bit of scripting, but I…

uvas
- 1
- 1
0
votes
1 answer
Nginx log rotation
Can this be explained :
[ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
(the content of /etc/logrotate.d/nginx) ?
Why is this not as
[ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
because should we not be…

Vishnu
- 479
- 1
- 3
- 14
0
votes
0 answers
Hive2Hive: Send content between servers, modifie and delete the file in destination and source
I saw the project Hive2Hive, I think it is a very good project and I am very interest.
I am involved with a project, that has to save the files of different applications in a File System just like this one.
See image here
Let me describe the…

Luis Ribeiro
- 1
- 2
0
votes
1 answer
Take an action each time a log is rotated in python
I want to log a line describing the logging information for each log file created by the logger.
Currently I'm using a separate logger process which will be running all the time. It receives the information from a queue and writes it to the log. A…

RatDon
- 3,403
- 8
- 43
- 85
0
votes
1 answer
Refining the logging method in python tornado
I am trying to log the actions in a function and I have written the following function to log responses to different files based on the type of response i.e. info,error,debug and warning.
logging.basicConfig(filename='indivi_service.log',
…

Tony Roczz
- 2,366
- 6
- 32
- 59
0
votes
1 answer
how to rotate log files by filesize?
ATTENTION: there are many articles about rotating log files by date/time. But i want to rotate log files by filesize. Is it possible?
i have apache access_log file which is growing largely and taking up the entire server free space after 2/3 weeks.…

Rakib
- 12,376
- 16
- 77
- 113
0
votes
1 answer
How to get notified by email when logrotate crashes?
For a couple of months I didn't receive all the wanted log files by email upon the weekly log rotation and finally found the cause: two configs inside /etc/logrotate.d were broken, invalid. This on my Ubuntu 15.04 server.
That caused the logrotate…

Michael Heuberger
- 822
- 3
- 10
- 27
0
votes
0 answers
Apache 2.4.10 rotatelogs not able to open log file : no such file or directory error
I have apache 2.4.10 running . I tried to setup rotatelogs but haven'nt been able to . I was supposed to be a straightforward implementation .
Error which i am getitng is :
(2)No such file or directory: AH00104: unable to start piped log program…

Ankur Gupta
- 23
- 1
- 4
0
votes
1 answer
Projects using Log4cpp library
I'm looking for a few projects that are using log4cpp for logging. Unfortunately I couldn't find any good examples of this library.
Now I have a simple working example of it but I need some more complex(at least for me ;-) ) examples like how to use…

J.Javan
- 813
- 8
- 9
0
votes
1 answer
How many file descriptors does a RotatingFileHandler logger in python open?
Lets say I create a rotating file logger with python using RotatingFileHandler. I set number of files to 10, and each file size to 1 MB. My question is related to how the rotation happens. Is it that the rotation happens by keeping all the 10 files…

Ouroboros
- 1,432
- 1
- 19
- 41
0
votes
1 answer
can a logrotate config point to a directory
Primary question: Is it a valid option in a logrotate config to have the targeted log be a directory?
I have seen several examples using the wildcard notation of /var/log/example/*.log, but I am curious if the option of /var/log/example will give a…

DavidC
- 78
- 1
- 7