You are not logged in.
Pages: 1
Hi guys,
So I've been curious as to why we don't have the journal.service unit file. Is this a debian issue? Natively on my B.L install, it seems the binary of /bin/journalctl is present, but the service unit is not used or not installed.
Running any of the jourlnalctl commands produces no output.
Just curious, I know I can still view the /var/log/messages, but I'm curious to see the hype over the systemd journaling..
"I have not failed, I have found 10,000 ways that will not work" -Edison
Offline
You will need to explicitely enable it. Edit /etc/systemd/jounrald.conf with
Storage=persistent
Other stuff in there can be configured how you like. I tend to just leave it at defaults. man journald will give you more info.
Offline
try sudo or as root
Offline
It is active but logs are only stored if there are problems.
"auto" is similar to "persistent" but the directory /var/log/journal is not created if needed [...] Defaults to "auto"
See journald.conf(5)
EDIT: Just out of interest, can you post the output of:
groups
Last edited by Head_on_a_Stick (2015-12-18 06:41:59)
“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.
Offline
It is active but logs are only stored if there are problems.
"auto" is similar to "persistent" but the directory /var/log/journal is not created if needed [...] Defaults to "auto"
See journald.conf(5)
EDIT: Just out of interest, can you post the output of:
groups
I'm not sure what this has to do with the journalctl?
kingghidorah@bunsen:~$ groups
kingghidorah cdrom floppy audio dip video plugdev netdev bluetooth
what am I looking at here?
"I have not failed, I have found 10,000 ways that will not work" -Edison
Offline
You will need to explicitely enable it. Edit /etc/systemd/jounrald.conf with
Storage=persistent
Other stuff in there can be configured how you like. I tend to just leave it at defaults. man journald will give you more info.
Ahh, found it, thanks Tkmncer!
"I have not failed, I have found 10,000 ways that will not work" -Edison
Offline
I'm not sure what this has to do with the journalctl?
kingghidorah@bunsen:~$ groups
kingghidorah cdrom floppy audio dip video plugdev netdev bluetoothwhat am I looking at here?
When Debian 8.0 was released, normal users could not access the journal unless they were a member of the "systemd-journal" group.
This is no longer true.
“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.
Offline
^ As HoaS pointed out, you either enable Storage=persistent or if you choose auto make sure the directory /var/log/journal exists as it won't be created for you with auto. I am not really sure why Debian chose not to enable it by default.
Offline
if you choose auto make sure the directory /var/log/journal exists as it won't be created for you with auto
Are you sure tk?
I can't check (no systemd) but that sounds strange.
I know that systemd creates the folder itself if storage is set to "Persistent" so it seems weird that wouldn't happen with "Auto"
“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.
Offline
"auto" is similar to "persistent" but the directory /var/log/journal is not created if needed [...] Defaults to "auto"
quoting you but yeah that's it's default behavior, which explains why journalctl does not work out of the box on a Debian install. However, a Live image could be mapped either way to sort it out.
Offline
Thanks guys... This sort of seems like something that should be in the first time setup prompt though, no?
"I have not failed, I have found 10,000 ways that will not work" -Edison
Offline
Pages: 1