Autore: Mark Hindley Data: To: hal CC: dng Oggetto: Re: [DNG] disable elogind messages?
Hal,
On Wed, Nov 13, 2019 at 04:35:14AM -0600, hal wrote: > Hi,
> Any way to disable elogind from filling up the message logs? I think all
> these messages are happening because I have cron jobs running frequently.
>
> I could possibly tell rsyslog to file these in cron.log (if it is cron) but
> there is still the problem of excess logging taking up disk space.
>
> Thank you
>
> ...
> [Wed Nov 13 04:15:01 2019] elogind[2278]: Removed session 64956.
> [Wed Nov 13 04:15:01 2019] elogind[2278]: New session 64957 of user root.
> [Wed Nov 13 04:15:01 2019] elogind[2278]: Removed session 64957.
> [Wed Nov 13 04:15:01 2019] elogind[2278]: New session 64958 of user root.
> [Wed Nov 13 04:15:01 2019] elogind[2278]: Removed session 64958.
> [Wed Nov 13 04:15:01 2019] elogind[2278]: New session 64959 of user root.
> [Wed Nov 13 04:15:01 2019] elogind[2278]: Removed session 64959.
> [Wed Nov 13 04:18:01 2019] elogind[2278]: New session 64969 of user root.
> [Wed Nov 13 04:18:01 2019] elogind[2278]: Removed session 64969.
> [Wed Nov 13 04:18:01 2019] elogind[2278]: New session 64970 of user root.
> [Wed Nov 13 04:18:01 2019] elogind[2278]: Removed session 64970.
> [Wed Nov 13 04:18:02 2019] elogind[2278]: New session 64971 of user root.
> [Wed Nov 13 04:18:02 2019] elogind[2278]: Removed session 64971.
> [Wed Nov 13 04:18:02 2019] elogind[2278]: New session 64972 of user root.
> [Wed Nov 13 04:18:02 2019] elogind[2278]: Removed session 64972.
> [Wed Nov 13 04:18:02 2019] elogind[2278]: New session 64973 of user root.
> [Wed Nov 13 04:18:02 2019] elogind[2278]: Removed session 64973.
That is 6 new root sessions in 2 seconds. What is in your cron job? I can't
immediately think of a reason why you would want a logind session for a root
cron job at all.