Re: [gentoo-user] Rationalizing log files

2021-05-14 Thread David Haller
Hello, On Thu, 13 May 2021, Walter Dnes wrote: [..] > And maybe either stop logging Facebook, or else log iptables messages >to a separate file (how is that done?). The Facebook tracker messages >are generated by iptables rules... > >-A INPUT -s 31.13.24.0/21 -j FECESBOOK >-A INPUT -s

Re: [gentoo-user] Rationalizing log files

2021-05-13 Thread Walter Dnes
On Thu, May 13, 2021 at 03:42:44AM -0500, Dale wrote > Basically, it's two files, that I can find anyway. One is to run it as > a cron and the other tells it what to rotate. If you duplicate that, it > should help. Of course, make sure whatever cron you are using is > running as well. > >

Re: [gentoo-user] Rationalizing log files

2021-05-13 Thread Mark Knecht
On Thu, May 13, 2021 at 6:20 AM Mark Knecht wrote: > > > > On Thu, May 13, 2021 at 12:58 AM Walter Dnes wrote: > > > > > # no packages own wtmp and btmp -- we'll rotate them here. > > /var/log/wtmp { > > monthly > > create 0664 root utmp > > minsize 1M > > rotate 1 > > } > >

Re: [gentoo-user] Rationalizing log files

2021-05-13 Thread Mark Knecht
On Thu, May 13, 2021 at 12:58 AM Walter Dnes wrote: > > # no packages own wtmp and btmp -- we'll rotate them here. > /var/log/wtmp { > monthly > create 0664 root utmp > minsize 1M > rotate 1 > } > /var/log/btmp { > missingok > monthly > create 0600 root utmp >

Re: [gentoo-user] Rationalizing log files

2021-05-13 Thread Dale
Walter Dnes wrote: > On another thread, I had to dive into into /var/log/messages, and I > realized that it was not being rotated. It's 32 megabytes+, most of > which is iptables reject messages for Facebook trackers. What do I need > to do to get log rotation working? > > /etc/logrotate.conf