On Thursday 03 March 2016, Anton Aylward wrote:
On 03/03/2016 05:50 AM, Carlos E. R. wrote:
No, no. I want the log in syslog, where I know where to filter appropriately and rotate when needed. What I do not want them is in systemd journal wasting space and resources.
Another POV is that the text files are wasting space compared to the compression mode of journald.
LOL the text is factor 10 smaller. Compressed text (as in /var/log/messages) is factor 160 smaller: $ du -sh /var/run/log/journal 80M /var/run/log/journal $ journalctl | xz -c > /tmp/log $ du -sh /tmp/log 9M $ xz /tmp/log $ du -sh /tmp/log.xz 460K /tmp/log.xz BTW I see journald's compression mode is the default. I guess would be even more fun to measure an uncompressed journal.
So far, all you've said is that you are familiar with the old, tradition *NIX tools for searching and filtering text files and are comfortable using them on /var/log/messages as a text file, but don't know, haven't experimented with the capabilities of joournald/journalctl and the ways it can be configured and used.
I can't fault your knowledge of the old tools, and won't since they form my knowledge base as well, but I enjoy learning new stuff, despite my age, and have learnt a little more today to be able to show you a faster use of journalctl than filtering with grep.
I hope to learn a little more about something tomorrow and the day after, and on until I die, probably from my head exploding.
The probability to die while waiting for journalctl to show some logs is more than 10 times higher than waiting for syslog/grep. Instead of just to accept everything and to learn what is written somewhere you could also compare old and new things by yourself. cu, Rudi -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org