Questions tagged [journald]

102 questions
0
votes
0 answers

Deal with systemd-journald namespaces

I am trying to find out how the namespace mechanism of systemd's journald operates. How to configure it, whether journal namespaces are equal to unix / linux namespaces and how to attach my custom processes to such a namespace to make them able to…
woodz
  • 136
  • 3
0
votes
1 answer

define custom fields for systemd-journald

The doc states, it may be possible to define new fields by applications. What does it mean? Can one define arbitrary fields or are only those possible listed in the doc USER JOURNAL FIELDS? If arbitrary fields are possible, how to define them then?
woodz
  • 136
  • 3
0
votes
0 answers

Cannot edit journald.conf

I'm working with a embedded linux machine that was made with Buildroot. The default user is root and I would like to edit /etc/systemd/journald.conf to set the SystemMaxUse to prevent the log files from taking all the limited space. When I try to…
0
votes
0 answers

Systemd service stdout incompletely captured by systemd journal

I have a trivial systemd service (called "testpath") which simply prints some output to be captured by the journal. The journal is intermittently and unpredictably losing part of the output. The behaviour seems so erratic, and the test case so…
0
votes
0 answers

Redirect systemd service logs to /dev/kmsg for all running services

Currently systemd service files will redirect the logs to journal buffer by default. But I need to get all the userspace services logs as part of /dev/kmsg buffer. I was able to add StandardOutput=file:/dev/kmsg to a service file and that works only…
Rckzz
  • 1
0
votes
0 answers

systemd journal - delete logs belonging to a specified unit?

Like there is a way to show all logs belonging to a unit: journalctl -xu , Is there a way to clear the logs belonging to a specified unit with journalctl ? Actually, my problem is, one of the service which is imported (from Sys-V /etc/init.d…
Ani
  • 32
  • 2
  • 13
0
votes
1 answer

How do I stop journald from dropping blank lines?

I have an application which logs to stdout in a format like this: incoming request from x.x.x.x client version is 1.2 authenticated as alice@example.com processed 1234 bytes closing connection rejecting connection from y.y.y.y client subnet is not…
9072997
  • 171
  • 1
  • 11
0
votes
2 answers

systemd, journal receiving raw log

one common paradigm on all other syslog implementations (rsyslog, syslog-ng, readlog, etc) is to exchange log entries via UDP514 in plain text format. How do I enable systemd-journal-remote to receive logs in such format? (I know there are plugins…
gcb
  • 344
  • 1
  • 4
  • 18
0
votes
0 answers

How to ensure output from "tee" is shown when used in a script run under systemd

I have a script that I'm running under systemd which has some debug logs that I'd like to send to both stdout (which should end up in the system journal, viewable with journalctl) as well as to a log file on my filesystem. Typically I'd reach for…
mgalgs
  • 345
  • 2
  • 9
0
votes
0 answers

rsyslog seems to be triggering sdhci dumps when writing in external storage

Acording what I read, rsyslog is usually used to process logs and send them to another locations, either local (external storage, specific partition, etc.) or remote (logging server, for example). However I'm trying to configure rsyslog to store the…
jfernandz
  • 3
  • 5
0
votes
0 answers

Make journalctl keep all logs forever (SystemMaxUse = unlimited)

How do I configure journald so that it never, ever, ever deletes my logs. Yes, what I want to do is tell journald to keep writing until the disk (read: /var partition's filesystem) is full. No, I don't want it to keep storing to memory until the RAM…
Michael Altfield
  • 739
  • 2
  • 8
  • 23
0
votes
2 answers

Podman rootless journald logging

I'm trying to log to the host's systemd-journald from a rootless podman-container. When i run the container as root with the --privileged flag, i can read the logs from the container on the host with journalctl as expected. However, running the…
PManeCon
  • 1
  • 1
  • 1
1 2 3 4 5 6
7