Questions tagged [log-rotation]

143 questions
0
votes
1 answer

Minikube log rotation

I've read kubernetes and minikube docs and it's not explicit if minikube implementation supports automatically log rotation (deleting the pod logs periodically) in order to prevent the memory to be overloaded by the logs. I'm not talking about the…
Alessandro Argentieri
  • 2,901
  • 3
  • 32
  • 62
0
votes
1 answer

log4j - log-rotation is not clearing out the rotator logs

I'm using log4j 1.x (with slf4j). The log rotation is working file, but it is not clearing the rotated logs. This is the content of log4.xml -
P_user526
  • 65
  • 3
  • 11
0
votes
1 answer

How to manage log file switching through custom user event in Spring?

Suppose we use Logback for logging. It’s required to change the path to the log file every time a certain event (i.e. function call) occurs. For example, somewhere we call a function. startNewLogSegment("A") After this event, the logger is expected…
diziaq
  • 6,881
  • 16
  • 54
  • 96
0
votes
2 answers

Unable to search string from selected log files with log rotation

I have log files in this pattern - /mnt/internal-app/logs/internal-app.log_2019-08-20.log.gz /mnt/internal-app/logs/internal-app.log_2019-08-21.log.gz .. .. /mnt/internal-app/logs/internal-app.log_2019-08-25.log.gz .. I would like to get the…
Sandeepan Nath
  • 9,966
  • 17
  • 86
  • 144
0
votes
0 answers

What is the best way to implement log rotation? (Node application)

I need to rotate logs files created by node processes as file sized keeps on increasing. Application runs in ubuntu on aws ec2 instances. I have few forever node processes running which writes logs into below…
Mahela Wickramasekara
  • 603
  • 1
  • 11
  • 22
0
votes
1 answer

log rotate does not split the file and reduce it

I am trying to implement log rotate in my streaming job. This is my test config file. /home/hadoop/first* { daily rotate 3 size 1M compress delaycompress } When I try to run logrotate, all that happens is the log file…
Srinivas
  • 2,010
  • 7
  • 26
  • 51
0
votes
2 answers

shell: log directory rotation, more compact code avoiding code duplication

in my shell scripts I need to rotate log directories. I am looking for a more compact, scaleable and elegant way than this, but have currently no idea how to solve this i.e. in a while loop and to calculate with variables. function…
ennox
  • 206
  • 1
  • 5
0
votes
1 answer

Log rotation: application do not write to truncated new log file

I trust you all doing good. we planning to implement log rotation for below file. stdout.log we use below log rotation configuration file. /usr/local/rms/kafka/kafka-connect-fluentd/stdout.log { daily rotate 7 maxsize 100M minsize…
UtpMahesh
  • 410
  • 10
  • 25
0
votes
0 answers

Python: read file continuously even after it's logrotated in windows

In this link, in the accepted answer, the Unix based solution is given. I want to do the same in windows. Since, i-node doesn't work with windows and python 2.7 stack I can't find any nice way to read a log file. My current way is something like…
Pratik
  • 1,351
  • 1
  • 20
  • 37
0
votes
0 answers

Log rotation for custom log files in ruby on rails

I would like to know how we can rotate custom log files in ruby on rails. I have searched and found ways to rotate the environment log files(development.log, production.log). But my requirement is to rotate every log files in the application. This…
elzam
  • 9
  • 2
0
votes
0 answers

How to rotate logs in Node-RED?

How to rotate log files in Node-RED? I will be writing Node-RED logs to a log file. But I want a new file to be created/replace the existing file when it reaches a particular time or size limit. How can I achieve this like I do in Java and other…
SHILPA AR
  • 332
  • 2
  • 7
  • 18
0
votes
0 answers

Live Update of Log Rotation Policy in a Kubernetes Cluster

How to do a live update of log rotation policy in a production system such that the policy is propagated to all the nodes (the baremetal machines) in the k8s cluster?
0
votes
1 answer

Delete logs from server using Splunk Universal forwarder

Can Splunk Universal forwarder be used to delete logs from a particular server. e.g. I have a universal forwarder installed on a server on which an application is running. The purpose of the UF is to send logs of this application to the splunk…
Monizer
  • 1
  • 2
0
votes
1 answer

Logrotation for a Nodejs Application

I am working on a very old Nodejs application which creates a new child process using forever-monitor. The logs of this child process are taken care by forever-monitor only. This is how the configuration looks like: var child = new…
Rito
  • 3,092
  • 2
  • 27
  • 40
0
votes
0 answers

Log rotation with Python. Need Integration

in the below code, I am calling log.py from call.py script as below. I have implemented logging handler where I set the log level in log.py and call the printlog function whenever I want to print the log to file. However, here I am trying…
rocker
  • 1
  • 1