logrotate
Logrotate does not auto rotate when based on log size
I have a custom applica开发者_运维知识库tion (myApp) which is writing logs to the file \'/var/log/myApp\'. I can see the logs being written and it works fine. Now I am trying to setup logrotate for th[详细]
2023-03-16 08:28 分类:问答How do I create a logrotate friendly file writer in Java or other platform?
What are the best practices for implementing a file writer/logger in Java that is compatible with logrotate? The goal would be allow logrotate to be used for all log management, instead of using built[详细]
2023-03-15 21:10 分类:问答logrotate-like functionality for database tables/file system files
tl;dr summary: Are there standard solutions for limiting the length of database tables and number of file system files based on number, disk space or time?[详细]
2023-03-06 19:35 分类:问答Linux-Java logs rotating using log4j or logrotate.d
I have a Spring project using log4j on Linux (Debian, Ubuntu and RHEL). Now I would like to implement best practice logs rotation for the log4j generated logs.[详细]
2023-02-21 21:15 分类:问答Redis logrotate config
Does anyone have a sample logrotate config for redis?This is what I have so far /var/log/redis/*.log {[详细]
2023-02-21 03:34 分类:问答logrotate for /var/log/cron not working?
Hi i have added the following lines in /etc/logrotate.d/syslog-ng to make /var/log/cron rotate. /var/log/cron {[详细]
2023-01-29 11:50 分类:问答possible to logrotate rails app with nginx passenger without restart?
It is possible to do logrotate without restarting nginx (just send USR1 sign开发者_如何学Goal to nginx it will do the job). I wonder it is possible for my rails app (nginx passenger). It\'s not worth[详细]
2023-01-26 04:31 分类:问答Python and/or django solution for reading log files on linux?
I would like my Django application to be able to display local syslog etc files.I would like to avoid writing the logic for managing .1,.2 etc rotated files, and get an开发者_开发百科 object for each[详细]
2023-01-09 01:33 分类:问答Data logged to a file; how do I rotate logs and how do I parse the data to not have 'gaps' in the data?
I\'ve got a web application that, for performance reasons, throws any data sent into a logfile. I\'ve got two concerns with this approach:[详细]
2022-12-23 16:46 分类:问答Is it possible to run one logrotate check manually?
Is it possible to run one it开发者_JS百科eration of logrotate manually without scheduling it on some interval?Yes:logrotate --force $CONFIG_FILElogrotate -d [your_config_file] invokes debug mode, givi[详细]
2022-12-18 06:49 分类:问答