Re: [systemd-devel] systemd-journald: prioritize system log over user log
On Thu, 23.03.17 19:13, Yunchih Chen (yunc...@csie.ntu.edu.tw) wrote: > > > On 03/23/2017 06:29 PM, Michael Chapman wrote: > > On Thu, 23 Mar 2017, Yunchih Chen wrote: > > > Hello: > > > > > >At my organization, there can be hundreds of user logins in a > > > public workstation each day, among more than one thousand of users. > > > Since each user login produces a 8MiB sparse log file in > > > /var/log/journal/x/, significant disk space is consumed. From > > > the administrator point of view, it is desirable to prioritize > > > system log over user log. For example, when total log size exceeds > > > SystemMaxUse, user log is vacuumed / rotated before system log. Can > > > we achieve this goal under current implementation? > > > > I don't think journald has support for that itself currently. > > > > Have you considered using SplitMode=none in journald.conf? If you do > > that the per-UID journal files will not be created. Instead, all > > messages will go into the system journal. > > > > Of course, using SplitMode=none does mean unprivileged users probably > > won't be able to view their own logs, but it does mean you won't get > > this per-UID overhead. > > > Thanks for your reply. But we actually intend to let users view their own > logs and we don't like to pollute system log with user log. Maybe consider > my original proposal as a feature request? Please file feature requests on github, we'll consider them then. https://github.com/systemd/systemd/issues/new Lennart -- Lennart Poettering, Red Hat ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] systemd-journald: prioritize system log over user log
On 03/23/2017 06:29 PM, Michael Chapman wrote: On Thu, 23 Mar 2017, Yunchih Chen wrote: Hello: At my organization, there can be hundreds of user logins in a public workstation each day, among more than one thousand of users. Since each user login produces a 8MiB sparse log file in /var/log/journal/x/, significant disk space is consumed. From the administrator point of view, it is desirable to prioritize system log over user log. For example, when total log size exceeds SystemMaxUse, user log is vacuumed / rotated before system log. Can we achieve this goal under current implementation? I don't think journald has support for that itself currently. Have you considered using SplitMode=none in journald.conf? If you do that the per-UID journal files will not be created. Instead, all messages will go into the system journal. Of course, using SplitMode=none does mean unprivileged users probably won't be able to view their own logs, but it does mean you won't get this per-UID overhead. Thanks for your reply. But we actually intend to let users view their own logs and we don't like to pollute system log with user log. Maybe consider my original proposal as a feature request? Regards, -- -- Yun-Chih Chen 陳耘志 Network/Workstation Assistant Dept. of Computer Science and Information Engineering National Taiwan University Tel: +886-2-33664888 ext. 217/204 Email: ta...@csie.ntu.edu.tw Website: http://wslab.csie.ntu.edu.tw/ ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] systemd-journald: prioritize system log over user log
On Thu, 23 Mar 2017, Yunchih Chen wrote: Hello: At my organization, there can be hundreds of user logins in a public workstation each day, among more than one thousand of users. Since each user login produces a 8MiB sparse log file in /var/log/journal/x/, significant disk space is consumed. From the administrator point of view, it is desirable to prioritize system log over user log. For example, when total log size exceeds SystemMaxUse, user log is vacuumed / rotated before system log. Can we achieve this goal under current implementation? I don't think journald has support for that itself currently. Have you considered using SplitMode=none in journald.conf? If you do that the per-UID journal files will not be created. Instead, all messages will go into the system journal. Of course, using SplitMode=none does mean unprivileged users probably won't be able to view their own logs, but it does mean you won't get this per-UID overhead. -- Michael ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
[systemd-devel] systemd-journald: prioritize system log over user log
Hello: At my organization, there can be hundreds of user logins in a public workstation each day, among more than one thousand of users. Since each user login produces a 8MiB sparse log file in /var/log/journal/x/, significant disk space is consumed. From the administrator point of view, it is desirable to prioritize system log over user log. For example, when total log size exceeds SystemMaxUse, user log is vacuumed / rotated before system log. Can we achieve this goal under current implementation? I guess the size of pre-allocation (in my case, 8MiB), is probably determined platform-wise. Here[1] I include some relevant platform info that might aids debugging. Many thanks! [1] https://www.csie.ntu.edu.tw/~yunchih/s/systemd-journald-sample-output.log -- Yun-Chih Chen 陳耘志 Network/Workstation Assistant Dept. of Computer Science and Information Engineering National Taiwan University Tel: +886-2-33664888 ext. 217/204 Email: ta...@csie.ntu.edu.tw Website: http://wslab.csie.ntu.edu.tw/ ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel