Questions tagged [log-rotation]
143 questions
1
vote
1 answer
Rotated log files owned by root user, not apps user
I'm making use of log rotation within a Rails app, which seems to function. However, the new log files are owned by the root user rather than the apps user. The application is running via Passenger which is using the apps user too.
Is it possible to…

Luke Smith
- 682
- 6
- 18
1
vote
2 answers
How to purge logs in aerospike?
I am using log rotate but somehow logs are not being cleared after 90 days which is configuration of my aerospike. Also logs are growing exponentially.
Configuration of log-rotate:
/var/log/aerospike/aerospike.log {
daily
rotate 90
…

someshmnnit
- 11
- 2
1
vote
1 answer
Boost rotate logs hourly
I am using boost::log as the logging engine for a service. I know how to set up the log rotation to be daily/weekly, but what I would like to set-up is an hourly rotation of the logs. I am unable to find any straight forward implementation in boost…

Marty
- 116
- 1
- 10
1
vote
1 answer
automatic log rotation is not executing
This is my conf file (docker-container) for the docker log rotation
:
/var/lib/docker/containers/*/*.log {
rotate 7
hourly
compress
maxsize 10M
missingok
create root root
delaycompress
copytruncate
}
and this is my command to run…

vikram keshari
- 63
- 10
1
vote
1 answer
Set how many files winston daily logrotate should keep
I'm implementing logging for a node app and need some advice: I've read some stuff about winston.transports.DailyRotateFile but I still don't get, where can I configure, how much daily log files should it keep. Where can I set it? Also, where do I…

tristantzara
- 5,597
- 6
- 26
- 40
1
vote
1 answer
Log Rotation in laravel 4.1
I have a project that is in laravel 4.1. My app/storage/logs/laravel.log in production has gotten huge.
I have looked around for log rotation, but could not find anything laravel 4 related. In laravel 5 there is a log option in the config/app.php…

Mubashar Abbas
- 5,536
- 4
- 38
- 49
1
vote
1 answer
Performing log rotation as a part of chef recipe
I am using the following recipe to perform log rotation:
bash 'adding_logrotate_for_consul' do
code <<-EOH
echo "" >> /etc/logrotate.conf
echo "/tmp/output.log {" >> /etc/logrotate.conf
echo -e "\tsize 20M" >> /etc/logrotate.conf
…

meallhour
- 13,921
- 21
- 60
- 117
1
vote
2 answers
How to rotate logs on every server shutdown in log4j2
Right now I am rotating logs using log4j2 if it reaches 2000MB and time based i.e. every hour with following logic:-

Galet
- 5,853
- 21
- 82
- 148
1
vote
0 answers
logrotate by filesize and keep as many old files until maxage
I wish to rotate logs by file size and retain old logs by age. The maxage parameter puts a check on how old rotated files could be. But I am looking for a case where you rotate files when they reach a specific size (say 100k) and keep as many old…

sibiyes
- 61
- 7
1
vote
1 answer
using logrotate to rotate apache logs
I have my my application running on apache tomcat. I wanted to configure logrotate for the logs apache creates.
My logrotate config is as follows:
/var/company/apache-tomcat/logs/*.log /var/company/apache-tomcat/logs/*.txt {
su root root
…

streetsoldier
- 1,259
- 1
- 14
- 32
1
vote
1 answer
boost: text_file_backend file_name and collector target
When text_file_backend is set used and collector is set, are log files created in keywords::target directory or does collector move old log files there?
If collector moves them, when does collector do it, immediately after old log file is closed and…

George Sovetov
- 4,942
- 5
- 36
- 57
1
vote
1 answer
Java rotating logs with constant header
I made some system and now I want to keep track of some statistics about it while it is running. I decided to use TSV form to write down those statistics. While looking for best existing lib (if I could, I'd like to avoid implementing it on my own)…

crollywood
- 523
- 1
- 6
- 17
1
vote
1 answer
Tornado log rotation for each day
I am trying to log the requests to my tornado server to separate file, and I want to make a log rotation for each day. I want to use the tornado.log function and not the python logging.
I have defined the log path in my main class and it is logging…

Tony Roczz
- 2,366
- 6
- 32
- 59
1
vote
2 answers
logging.handler.TimedRotatingFileHandler never rotates the log
A have a script which synchronizes time on linux servers( CentOS 6) and writes offset in log. I want to make after 10 days the current log (ntp.log) copy to old (ntp.log-date), but this does not work. The script continues to write into one file and…

reddaemon
- 11
- 2
- 6
1
vote
2 answers
Apache2 logging in access.log1 instead of access.log
My ubuntu server, few days ago the access.log and error.log files created under /var/log/apache2, but they still empty,
Currently apache is logging into access.log.1 and error.log.1, this issue is happening for all the virtual hosts on my…

MohammedSimba
- 184
- 1
- 1
- 9