Questions tagged [log-rotation]
143 questions
2
votes
1 answer
Access Kubernetes pod's log files from inside the pod?
I'm currently migrating a legacy server to Kubernetes, and I found that kubectl or dashboard only shows the latest log file, not the older versions. In order to access the old files, I have to ssh to the node machine and search for it.
In addition…

jick
- 409
- 5
- 12
2
votes
0 answers
Log4j2 keeps same time for renaming of files
I am using log4j2 2.11 to create log files. I have these log files rotated based on time and size. The rotating based on time works great however, I am having a weird issue when I rotate based on size.
When I rotated based on size I compress the log…

jgr208
- 2,896
- 9
- 36
- 64
2
votes
1 answer
Roll over for TimedRotatingFileHandler in python is not happening
I have a script which runs every day and is using TimedRoatingLogFileHandler of Python.
Below is an excerpt from the code.
log = 'test.log' # Set up Log title
filename = '/var/log/' + log
handler = TimedRotatingFileHandler(filename,…

Goutham Anush
- 101
- 1
- 12
2
votes
3 answers
Weblogic 12c: How to rotate servername.out file
How to configure rotation for servername.out files? We have a configuration in admin console to rotate servername.log file, but there is no configuration to rotate the servername.out files.

Aromal
- 176
- 2
- 8
2
votes
0 answers
Python log rotate file lock error
I am trying to implement a python log rotation.
I have the following code to set up my logs:
logger = logging.getLogger("Log Rotate")
logger.setLevel(logging.DEBUG)
#set up file logging output
fh =…

F. Hill
- 41
- 2
2
votes
1 answer
How to logrotate based solely on file size?
I have a logrotate policy which runs once daily as it is part of cron.daily. I want to trigger logrotate for files when the reach a certain size. So i am looking for a way to make file size the trigger, rather than it happening at hourly, daily or…

maverick
- 549
- 2
- 10
- 18
2
votes
2 answers
Python TimedRotatingFileHandler how does rotation happen
So, after reading documentation and couple of stackoverflow questions and trying it in Python 3.4 i dont get it. When does it rotate and on what conditions?
There are 2 threads, they never stop. They call this code (i know that logger is a singleton…

UnstableFractal
- 1,403
- 2
- 15
- 29
2
votes
0 answers
what is structured data SD-ID and SD-PARAMS in rsyslog?
we have structured data SD-ID and SD-PARAMS paramenters in rsyslog.I am not getting how it works from where these parameters takes value.Can someone explain me what these things are?

StackUser
- 255
- 2
- 8
2
votes
1 answer
How to create rotating file logger on iOS 7/8?
I am developing a Beta iOS (7 and 8) app which will be handed to testers soon.
I would like to have a send feedback button which will send the developers a human description of what went wrong, along with the recent log files.
Since writing log…

Adam Matan
- 128,757
- 147
- 397
- 562
2
votes
1 answer
Use newsyslog to rotate log files, but only if they have a certain size
I'm on OS X 10.9.4 and trying to use newsyslog to rotate my app development log files.
More specifically, I want to rotate the files daily but only if they are not empty (newsyslog writes one or two lines to every logfile it rotates, so let's say I…

Manuel Meurer
- 3,238
- 6
- 35
- 50
2
votes
0 answers
Nginx PID File Inconsistent
I've seen some similar issues, but none seem to address this exact problem I'm having.
I use the Nginx pid file when running an awstats update + log rotation so that I can tell the process to close and reopen the log files. This is the standard way…

Ghan
- 21
- 2
2
votes
0 answers
Android - Clean up custom log file (logrotate)
I am logging in a custom log file to get persitent logging information.
My app is in some cases on devices I cannot access for a long time. To avoid filling up my disc space I currently kill the whole logfile when it exceeds 10MB.
I know that for…

Ron
- 22,128
- 31
- 108
- 206
2
votes
2 answers
How to rotate log file in jboss 6 AS
In my jboss 6.1.0 final AS i want to keep 30 days log..
in jboss-logging.xml there is size-rotating-file-handler which i don't want..
i need to rotate log file every day..
how can change the log configuration
my logging configuration is…

Indra Yadav
- 600
- 5
- 22
2
votes
1 answer
How to create logrotate in linux
How to create new log rotate files for my codeigniter application in LAMP server command line . I want to run this daily process
log files will be like…

Sundar
- 4,580
- 6
- 35
- 61
2
votes
1 answer
How to get the logs in my script when its been getting rotated?
I have a script where I'm fetching the logs from the tomcat and sending that into the my cloud resource. Everything works well, but I have a problem when my tomcat rotates the log.
When the logs get rotated its been prefixed with date ( log gets…

sriram
- 8,562
- 19
- 63
- 82