Questions tagged [log-rotation]

Log rotation is an automated process used in system administration in which dated log files are archived.

Log rotation is an automated process used in system administration in which dated log files are archived.

66 questions
0
votes
0 answers

Linux, want to rotate oldest one files when it reaches limit

We have one Linux RHEL Machine where different log files are generating everyday with current date time under "/var/log/audit/" location. File name are in below…
user3441151
  • 119
  • 1
  • 2
0
votes
1 answer

How to configure log rotate to compress and archive logs weekly

We have rsyslog that save logs based on requirement to various…
sarvesh.lad
  • 137
  • 5
0
votes
1 answer

How to rotate compressed log file on centos 7?

I have customized kafka server and the app is creating log files and configures log rotation. My problem is that I need to compress the rotation logs that were created. I tried to create new log rotation file on /etc/logrotate.d with the following…
Rasa
  • 1
0
votes
2 answers

Is logrotate supposed to work only in logs inside /var/log?

I currently have a systemd service in a Ubuntu 18.04 machine that redirects the StandardOuput and StandardError to a custom path: StandardError=file:/opt/my_tests/my.log StandardOutput=file:/opt/my_test/my.log But I'd like to add a log rotation and…
ignacio
  • 101
  • 4
0
votes
0 answers

logrotate broken yet not error message

It seems like there are quite a few common issues with logrotate not doing what it suppose to and as it happens I am in the same boat. -rw-r--r-- 1 root root 24G Jun 23 01:15 A10.log -rw-r--r-- 1 root root 0 Jun 18 12:22 A110.log -rw-r--r-- 1…
Maciej Cygan
  • 137
  • 8
-1
votes
1 answer

Logrotate is not working centos 6.6

I have the following configuration for logrotating the app logs. /opt/tomcat/logs/app-web.txt { copytruncate daily size 500M compress delaycompress rotate 0 missingok notifempty } /opt/tomcat/logs has a lot of…
Vikash
  • 141
  • 3
1 2 3 4
5