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.

67 questions
0
votes
1 answer

How to properly configure a custom logrotate configuration file?

For the first time today, I am trying to write a configuration file for logrotate. When I restart the logrotate service, I get the following error: logrotate.service: Failed with result 'exit-code'. If I delete my file and restart logrotate.service,…
theirman
  • 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
  • 6
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
  • 147
  • 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
  • 4
-1
votes
1 answer

Sending rotated files with syslog-ng

Hello I am currently sending the suricata logs from a probe to a Syslog-ng server(172.16.238.15): @version: 3.25 options { keep-timestamp (no); chain_hostnames (off); keep_hostname (no); }; source s_eve { wildcard-file( …
19mike95
  • 49
  • 5
1 2 3 4
5