Skip to main content

Questions tagged [logrotate]

The tag has no usage guidance.

0 votes
0 answers
30 views

Why doesn’t /etc/logrotate.d/tomcat run daily but will only take effect if I manual trigger it?

I have a Talend Data Stewardship application in my server and I would like to rotate the catalina.out log file. Thus, I referring https://dzone.com/articles/how-rotate-tomcat-catalinaout, and create a ...
Panadol Chong's user avatar
0 votes
1 answer
231 views

postfix logrotato --> empty maillog_file

When running postfix logrotate, I get the error fatal: empty 'maillog_file' parameter value. logrotation failed. There is mention of logrotate the main.cf documentation but I don't understand what ...
J'e's user avatar
  • 171
0 votes
1 answer
717 views

how to change user and group of a file inside the docker in gitlab-ci

I have a file which when I mount it to the docker, the user and group will change. root@b2d3cb9b2aab:/# ls -lh /etc/logrotate.d/ total 36K -rw-r--r-- 1 root root 120 Sep 11 2021 alternatives -rw-r--...
Amir's user avatar
  • 577
0 votes
1 answer
1k views

Logrotate not installed as a systemd service

I have installed via apt logrotate. However I don't see any systemd service. Does this requires a separate process for setting up logrotate as a systemd service? root@myserver:~# apt install -y ...
pkaramol's user avatar
  • 135
0 votes
1 answer
850 views

systemd & logrotate: missing error messages in systemd journal

I have just discovered a problem that I don't understand (SLES15 SP2): I had mis-configured one logrotate service (in /etc/logrotate.d). In SLES 15 logrotate.service is triggered by logrotate.timer ...
U. Windl's user avatar
  • 705
1 vote
0 answers
1k views

Copying a file while its being written to (in Linux)

I am in a year-long Twitter research project, and I collect tweets via Twitters API and Twarc. In short, this writes a new tweet as a new line to one specified file, roughly one per second at night, ...
Jan Bucher's user avatar
0 votes
0 answers
517 views

How could I use logrotate and group by day a bunch of gzip files with an uncompresssed extension?

Doing a test in a production enviroment with rotation logs with 2 days just for testing purposes with gizp files. Created a test file at /tmp/. /etc/init.d/test /tmp/test/*.gz { daily ...
Marlon's user avatar
  • 379
2 votes
3 answers
3k views

Logrotate running at wrong hour/time

I have the following entry in my /etc/crontab file to ensure that daily cronjobs run at 4:25 AM. This is the only entry for daily inside this file: 25 4 * * * root test -x /usr/sbin/anacron || ...
Faheem's user avatar
  • 123
0 votes
1 answer
412 views

Logrotate status file update from different crone jobs

I have several scripts in /etc/logrotate.d/ all are included in /etc/logrotate.conf and crone job that runs: /usr/sbin/logrotate -s /var/lib/logrotate/logrotate.status /etc/logrotate.conf daily. But I ...
jbulatek's user avatar
3 votes
1 answer
8k views

Why logrotate maxsize condition is not working?

I've specific problem with logrotate which is rotating before reaches the limit - set by maxsize logrotate version - 3.8.6 I've a custom logrotate file /var/web/log/access_log { rotate 40 ...
Geo Fery's user avatar
2 votes
0 answers
785 views

rsyslog stopped forwarding httpd logs after logrotate

I have an issue where rsyslog stops forwarding httpd logs to our central log repo after logrotate. Server is RHEL7. My investigations thus far have led me here: (in /var/lib/rsyslog) #: grep httpd *...
amhulli's user avatar
  • 21
0 votes
1 answer
524 views

/var/log/firewalld is not getting rotated

I am not sure why this particular file is not getting rotated. It is not a directory. Any ideas? The size of the firewalld file: $ ls -alh /var/log -rw-r--r--. 1 root root 134M Jan 31 13:49 ...
Shōgun8's user avatar
  • 218
1 vote
0 answers
385 views

How to troubleshoot logrotate / journal on Debian 9

My question today is about the art of troubleshooting with the topic of logrotate and journalctl. I'm interested in learning how to debug and troubleshoot my logrotate and journal configuration. The ...
justwellbrock's user avatar
1 vote
0 answers
79 views

looking for continuous Screen Capture for retroactivly reproducing errors, timeback machine

Usually Screen Video Capturing software are tailored for kind of video producers, who have a plan, have prepared keynotes, etc. However, I want a "time machine" program for a specific use case: Hey,...
Arioch 'The's user avatar
1 vote
0 answers
519 views

Reading log files using logstash which rotates every day

I am reading a log file using file input plugin in logstash and sending this logs to elastic search. Log file is rotated at every 00:00. When I rotate log file, the file is zipped and moved to a ...
iamvishnuks's user avatar

15 30 50 per page
1
2 3 4 5