1

I am looking for a generic way to hard-cap erratically growing logfiles. The existing answers (linked below) suggest using a polling algo with logrotate, but that approach does not enforce a hard limit (as files can get pretty big even within one minute).

Does anyone know of a solution or implementation? If nothing exists, why not?

Related questions:

Willem
  • 2,872
  • 4
  • 28
  • 35
  • One essential question is: What do you want with the log entries exceeding your specified maximum log files? – M. Glatki Apr 22 '16 at 09:19
  • I would like to discard them (FIFO), so only have the last x lines or MB of log entries. – Willem Apr 22 '16 at 11:56

0 Answers0