log-rotation Questions

4

Solved

I haven't found a solution to purge old tomcat or jboss logs or any other timestamped logs: catalog.log./server.log.. Basically these logs are rotated by jboss as: server.log, server.log.20131201, ...
Resurrectionist asked 9/1, 2014 at 8:30

4

So I do logging.config.fileConfig to setup my logging from a file config that has console and file handler. Then I do logging.getLogger(name) to get my logger and log. At certain times I want the f...
Tempt asked 13/7, 2014 at 3:59

6

I added two scripts in "logrotate.d" directory for my application logs to be rotated. This is the config for one of them: <myLogFilePath> { compress copytruncate delaycompress dateext m...
Carpospore asked 27/3, 2013 at 5:49

1

PHP 7.1, ubuntu 12.04 LTS, monolog version is 1.23.0. Logger initialisation: <?php $logger = new Logger('app'); $logger->pushHandler( new RotatingFileHandler( Main\Application::getDocum...
Alvord asked 2/8, 2018 at 5:59

1

We have a pod in a Google Cloud Platform Kubernetes cluster writing JsonFormatted to StdOut. This is picked up by Stackdriver out of box. However, we see the disk usage of the pod just growing and ...

3

Solved

I use uwsgi with the parameter --daemonize /logs/uwsgi.log This file is however becoming large and I would like to split it into smaller pieces. One per day would be preferable. I have done that f...
Depth asked 5/2, 2015 at 11:52

4

Solved

In my web analytics, I am logging the data in plain text file. I want to rotate the log on a daily basis because its logging too much data. Currently I am using bunyan to rotate the logs. Problem ...
Bentlee asked 5/8, 2013 at 10:29

2

Solved

Python has its own RotatingFileHandler which is supposed to automatically rotate log files. As part of a linux application which would need to rotate it's log file every couple of weeks/months, I a...
Offshoot asked 17/3, 2015 at 16:34

2

Solved

I have a GUI application whose main part is a QPlainTextEdit. It is used to display a log of the application, and as such the associated text grows line by line ad infinitum. As the application is...
Demerit asked 19/6, 2012 at 9:14

1

Solved

Context: I want to use log4j to write audit-related logs to a specific log file, let's say audit.log. I don't want to use syslogappender(udp based) because I don't want to be tolerant to data loss...

1

Solved

I use TimeBasedRollingPolicy and SizeAndTimeBasedFNATP triggering policy for my logback configuration. The rollover of log files is set to happen every day and it will also be triggered if log file...
Chute asked 28/10, 2011 at 20:56
1

© 2022 - 2024 — McMap. All rights reserved.