[systemd-devel] Why doe I not see the logging with -u

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Sat Dec 14 19:57:03 PST 2013


On Sun, Dec 15, 2013 at 01:08:29AM +0100, Cecil Westerhof wrote:
> >And for good measure, the output from
> >SYSTEMD_LOG_LEVEL=debug journalctl -u h2 2>&1 >/dev/null|grep 'Journal filter'
> 
> That gives nothing. Even when I remove >/dev/null
So you have some old systemd version (<= 204). What version is it exactly?

> -- Logs begin at Tue, 2013-11-19 06:24:51 CET, end at Sun, 2013-12-15 00:59:08 CET. --
> Fri, 2013-12-13 11:37:40 CET [s=b6a58b6feb364b758ecb0ff6d531b755;i=ab73;b=36201f9cba90417c9c8ff931d14a17ed;m=8619d59103;t=4ed680d31f64a;x=4c5eb74b9e57f151]
> 	PRIORITY=6
> 	_UID=0
> 	_GID=0
> 	_SELINUX_CONTEXT=[11B blob data]
> 	_MACHINE_ID=32d8e93f7e634d9d87d1021d9f47a2ad
> 	_HOSTNAME=Equus.Decebal.nl
> 	SYSLOG_FACILITY=3
> 	_TRANSPORT=stdout
> 	_BOOT_ID=36201f9cba90417c9c8ff931d14a17ed
> 	SYSLOG_IDENTIFIER=java
> 	MESSAGE=Web Console server running at http://127.0.0.2:8082 (only local connections)
> 	_PID=20909
> 	_COMM=java
> 	_EXE=/usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/jre/bin/java
> 	_CMDLINE=/usr/bin/java -cp /home/cecil/java/h2/bin/h2-1.3.174.jar org.h2.tools.Console -tool -tcp
> 	_SYSTEMD_CGROUP=/system/h2.service
> 	_SYSTEMD_UNIT=h2.service
So, this is OK.

> 	UNIT=h2.service
> 	UNIT=h2.service
> 	_CMDLINE=/usr/bin/java -cp /home/cecil/java/h2/bin/h2-1.3.174.jar org.h2.tools.Console -tool -tcp
> 	_SYSTEMD_CGROUP=/system/h2.service
> 	_SYSTEMD_UNIT=h2.service
> 	_CMDLINE=/usr/bin/java -cp /home/cecil/java/h2/bin/h2-1.3.174.jar org.h2.tools.Console -tool -tcp
> 	_SYSTEMD_CGROUP=/system/h2.service
> 	_SYSTEMD_UNIT=h2.service
But this is useless. Can you attach *one* entry from the journal (like the one quoted above),
but for the entries which should be but are are not shown by 'journalctl -u h2'?

Zbyszek


More information about the systemd-devel mailing list