Questions tagged [log-rotation]
143 questions
0
votes
1 answer
Using logrotate recipe in chef - no rotated logs created
I am trying to use the chef logrotate recipe.
include_recipe "logrotate"
logrotate_app "kafka-logs" do
cookbook "logrotate"
path "/tmp/kafka.log"
frequency "daily"
size "1k"
rotate 10
create "0644 root root"
end
I am trying to rotate…

Tampa
- 75,446
- 119
- 278
- 425
0
votes
0 answers
Log File Rotation in Ruby on Rails
I am working on a website in Ruby on Rails and have enabled log rotation on the server with the reference of blog article.
I have written the following code in my /etc/logrotate.conf file.
/path/to/your/rails/applicaton/log/*.log {
daily
…

Swati Aggarwal
- 1,265
- 3
- 19
- 34
0
votes
1 answer
Can I have Rails 3 save production logs for 90 days?
Rails 3 appears to automatically truncate production logs after some unknown period. I would like to be able to save production logs for up to the past 90 days in order to be able to audit the behavior of my app. According to this answer, the old…

Chris Vincent
- 258
- 3
- 13
0
votes
1 answer
Nginx log rotation is happening without any file in logrotation.d
I just compiled and installed nginx in RPM based Linux. Noticed that log rotation of Access logs and error logs are taking place. but there is no file in /logrotation.d/ which operated on the directory /var/log/nginx/ .
I need to change the file…

Rishabh
- 1,185
- 1
- 12
- 28
0
votes
2 answers
making a functionality of a rotator that creates a timestamp every minute of a day
I have a logging project , i need to know how to build a functionality so that rotator checks for every minute while the program is running and create timestamps for every minute just to store all day's timestamps to a log file ,please help.
thanks

gandhigcpp
- 587
- 3
- 8
- 16
-1
votes
1 answer
File rotation and deletion on json files
How can I implement fileRotation on json files. I know there exists a fileRotation handler in logging module of python but that is used to rotate and delete log files.
My program is reading and writing using json module, although I can also use…

Abdullah Chaudhry
- 25
- 1
- 9
-1
votes
1 answer
What privileges does a MySQL user need in order to access FLUSH LOGS?
I want o create a new MySQL user for logrotate and it needs to be able to run FLUSH LOGS, but doesn't need any other privileges as far as I can tell.
What is the minimum mysql privileges I need to give to this user in order to access FLUSH LOGS ?
I…

adrianTNT
- 3,671
- 5
- 29
- 35
-1
votes
1 answer
How to rotate a log file in ubuntu on size basis hourly?
The configuration of my rsyslog file in logrotate :
/opt/mapvariable/log/myapp
{
rotate 24
hourly
maxsize 10k
compress
ifempty
postrotate
reload rsyslog >/dev/null 2>&1 || true
…

ams
- 315
- 4
- 17