Re: Remove newsyslog messages from logs
- In reply to: Polytropon : "Re: Remove newsyslog messages from logs"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 25 Mar 2023 20:15:42 UTC
On Sat, Mar 25, 2023 at 8:58 AM Polytropon wrote: > On Sat, 25 Mar 2023 18:07:11 +0000, Carlos Lopez wrote: > > Maybe it is a stupid question, [...] > > Not at all. > > > [...] but would it be possible to > > delete/avoid "newsyslog[1137]: logfile turned over due to > > size>..." messages generated by newsyslog every time it > > rotates a log file? > Thanks you, Carlos, for asking the question. That had bothered me when log files had been too small. These days I just set the file size large enough; do not care for the (newsyslog) defaults anyway. > Yes, this is supported. Just have newsyslog pretend the log > file in question is a binary log file, so the insertion of > the message will be suppressed. Set the `B' flag (field #7) > in /etc/newsyslog.conf, for example: > > /var/log/messages 644 5 100 * JCB > ^ > ... Thanks Polytropon; had not realized that that could be one way. - parv