The size of the binary journal files and log file as parsed by "journalctl" differ greatly

Solution Unverified - Updated -

Issue

  • There is a difference in the size of the the below files (after persistent logging is enabled following article 696893):
# ls -alsh /var/log/journal/ff62cd3863554847a2414b981cfba22e/system.journal 
8.1M -rw-r-----+ 1 root systemd-journal 8.0M Apr 19 11:44 /var/log/journal/ff62cd3863554847a2414b981cfba22e/system.journal

# journalctl -all --no-tail --no-pager > /tmp/logs.txt
# du -sch /tmp/logs.txt
320K    /tmp/logs.txt
320K    total

Environment

  • Red Hat Enterprise Linux 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.