You are not logged in.

#1 2015-12-18 00:52:39

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Journaling and Journalctl

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.

noservice.jpg

also.jpg

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

#2 2015-12-18 01:21:35

tknomanzr
BL Die Hard
From: Around the Bend
Registered: 2015-09-29
Posts: 1,057

Re: Journaling and Journalctl

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

#3 2015-12-18 04:37:29

gako
Member
Registered: 2015-10-02
Posts: 241

Re: Journaling and Journalctl

try sudo smile or as root

Offline

#4 2015-12-18 06:40:31

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Journaling and Journalctl

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.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#5 2015-12-18 20:36:15

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: Journaling and Journalctl

Head_on_a_Stick wrote:

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

#6 2015-12-18 20:38:11

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: Journaling and Journalctl

tknomanzr wrote:

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

#7 2015-12-18 21:49:56

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Journaling and Journalctl

Horizon_Brave wrote:

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?

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.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#8 2015-12-18 21:57:44

tknomanzr
BL Die Hard
From: Around the Bend
Registered: 2015-09-29
Posts: 1,057

Re: Journaling and Journalctl

^ 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

#9 2015-12-18 22:42:46

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Journaling and Journalctl

tknomanzr wrote:

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" hmm


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#10 2015-12-19 01:18:36

tknomanzr
BL Die Hard
From: Around the Bend
Registered: 2015-09-29
Posts: 1,057

Re: Journaling and Journalctl

"auto" is similar to "persistent" but the directory /var/log/journal is not created if needed [...] Defaults to "auto"

quoting you tongue 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

#11 2015-12-19 03:23:30

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: Journaling and Journalctl

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

Board footer

Powered by FluxBB