You are not logged in.

#1 2014-10-10 11:16:23

manleyd
Member
Registered: 2014-05-16
Posts: 6

journalctl doesn't show recent journal entries

If I call journalctl without any parameters, or with a --since parameter, it only shows entries up to 8th October (it's 10th October as I write this):

root~> journalctl --since '2014-10-01 00:00:00'
-- Logs begin at Thu 2014-08-28 11:19:31 BST, end at Fri 2014-10-10 12:01:01 BST. --
...
...
...
Oct 08 15:17:33 inspiron systemd[1]: Stopping Disk Manager...
Oct 08 15:17:33 inspiron systemd[1]: Stopping Daemon for power management...
Oct 08 15:17:33 inspiron systemd[1]: Stopping User Manager for UID 1000...
Oct 08 15:17:33 inspiron systemd[1]: Stopping WPA supplicant...
Oct 08 15:17:33 inspiron systemd[1]: Stopping Authorization Manager...
Oct 08 15:17:33 inspiron systemd[1]: Stopping Manage, Install and Generate Color Profiles...
Oct 08 15:17:33 inspiron systemd[1]: Stopping CUPS Printing Service...
Oct 08 15:17:33 inspiron systemd[1]: Stopping Graphical Interface.
Oct 08 15:17:33 inspiron systemd[1]: Stopped target Graphical Interface.
Oct 08 15:17:33 inspiron systemd[1]: Stopping Multi-User System.
root~>

If I call it with the -n parameter it shows all recent entries:

root~> journalctl -n 10
-- Logs begin at Thu 2014-08-28 11:19:31 BST, end at Fri 2014-10-10 12:01:01 BST. --
Oct 10 11:38:56 inspiron dbus[220]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Oct 10 11:40:11 inspiron dbus[220]: [system] Activating service name='org.kde.powerdevil.backlighthelper' (using servicehelper)
Oct 10 11:40:11 inspiron org.kde.powerdevil.backlighthelper[1188]: QDBusConnection: system D-Bus connection created before QCoreAppli
Oct 10 11:40:11 inspiron dbus[220]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Oct 10 11:41:17 inspiron dbus[220]: [system] Activating service name='org.kde.powerdevil.backlighthelper' (using servicehelper)
Oct 10 11:41:17 inspiron org.kde.powerdevil.backlighthelper[1192]: QDBusConnection: system D-Bus connection created before QCoreAppli
Oct 10 11:41:17 inspiron dbus[220]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Oct 10 12:01:01 inspiron crond[1345]: pam_unix(crond:session): session opened for user root by (uid=0)
Oct 10 12:01:01 inspiron CROND[1346]: (root) CMD (run-parts /etc/cron.hourly)
Oct 10 12:01:01 inspiron CROND[1345]: pam_unix(crond:session): session closed for user root
root~>

I've tried reinstalling systemd but it made no difference. Do I need to reset the logs somehow?

Offline

#2 2014-10-10 16:45:16

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: journalctl doesn't show recent journal entries

If you had read the manual page, you would know that this is the default behavior. In the very first lines it says:

"If called without parameters, it will show the full contents of the journal, starting with the oldest entry collected."

If you want the messages of the last boot, just use

journalctl -b -0

About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#3 2014-10-10 16:54:47

manleyd
Member
Registered: 2014-05-16
Posts: 6

Re: journalctl doesn't show recent journal entries

mauritiusdadd

Read my post again. The point is that, without parameters, it isn't showing the full contents of the journal.

Offline

#4 2014-10-10 17:27:24

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,193

Re: journalctl doesn't show recent journal entries

What does journalctl --verify  have to say?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2014-10-10 17:38:22

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: journalctl doesn't show recent journal entries

Also, have a look at the output of timedatectl; maybe your current time is incorrect?

Offline

#6 2014-10-10 17:53:02

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: journalctl doesn't show recent journal entries

Ok, forgive me manleyd, I have misunderstood your question.
You should verify the integrity of your journal as suggested by ewaller.


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#7 2014-10-10 18:32:43

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: journalctl doesn't show recent journal entries

journalctl --list-boots

will also show you what has been logged.

Is this a laptop or a desktop? What are your settings in the conf file? Have you hit your limit: pass `--disk-usage`to check. Is logrotate running and when is it set to run?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2014-10-10 22:01:39

manleyd
Member
Registered: 2014-05-16
Posts: 6

Re: journalctl doesn't show recent journal entries

Thanks for the suggestions.

The time is correct.

journalctl --list-boots shows all the boots, including those after 'Oct 08 15:17:33'

Here is journalctl --verify:

PASS: /var/log/journal/ded9607d88904d69b94dda8437c92947/system@c081ad0077294ecda7c0a142ad64a58d-0000000000000001-000501addf58f184.journal
PASS: /var/log/journal/ded9607d88904d69b94dda8437c92947/system@000504e9f191a901-9b4b2795fabdaa41.journal~
PASS: /var/log/journal/ded9607d88904d69b94dda8437c92947/user-1000@000504e9f29d821e-a44f29e24c8fd814.journal~
000000: invalid tail monotonic timestamp                                                                
File corruption detected at /var/log/journal/ded9607d88904d69b94dda8437c92947/user-1000@89b22ce3586f47339e77fc56e24cbecc-00000000000004cc-000501ae1ff781f9.journal:000000 (of 8388608 bytes, 0%).
FAIL: /var/log/journal/ded9607d88904d69b94dda8437c92947/user-1000@89b22ce3586f47339e77fc56e24cbecc-00000000000004cc-000501ae1ff781f9.journal (Bad message)
PASS: /var/log/journal/ded9607d88904d69b94dda8437c92947/user-1000.journal                               
560f70: invalid entry item (5/23 offset: 000000                                                         
560f70: invalid object contents: Bad message                                                            
File corruption detected at /var/log/journal/ded9607d88904d69b94dda8437c92947/system@000504ea00013d02-f9141571b742d519.journal~:560f70 (of 8388608 bytes, 67%).
FAIL: /var/log/journal/ded9607d88904d69b94dda8437c92947/system@000504ea00013d02-f9141571b742d519.journal~ (Bad message)
PASS: /var/log/journal/ded9607d88904d69b94dda8437c92947/system.journal                                  
PASS: /var/log/journal/ded9607d88904d69b94dda8437c92947/system@c081ad0077294ecda7c0a142ad64a58d-0000000000003ef9-0005047f0ea56fd3.journal
39bff8: invalid object                                                                                  
File corruption detected at /var/log/journal/ded9607d88904d69b94dda8437c92947/user-1000@000504ea0184e373-450e16161e7cde68.journal~:39bff8 (of 8388608 bytes, 45%).
FAIL: /var/log/journal/ded9607d88904d69b94dda8437c92947/user-1000@000504ea0184e373-450e16161e7cde68.journal~ (Bad message)

Clearly log file(s) have been corrupted somehow. Is there a tool to clean the log files? It's a private laptop so it's not a big issue if I have to delete the logs and start again.

Offline

#9 2014-10-11 06:17:20

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,193

Re: journalctl doesn't show recent journal entries

As far as I know, there is not yet a tool like fsck to repair systemd logs.  This is the one thing about systemd I don't like -- the binary logs that are subject to corruption.   
It is okay to delete them.   Just delete the ones that are damaged.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB