Questions tagged [systemd-journald]

For questions pertaining to systemd-journald, a system service that collects and stores logging data. Use this tag for questions about systemd-journald itself, using systemd-journald, or questions about issues arising from collecting and storing logging data in systems where this task is performed by systemd-journald.

The systemd journal deamon, a system service that collects and stores logging data, allowing administrators to read detailed information from the journal while monitoring service status using the status command.

Official documentation: systemd-journald.

284 questions
554
votes
13 answers

How to clear journalctl

I couldn't find in google any safe way to clear systemd journal. Do anyone know any safe and reliable way to do so? Let's say I was experimenting with something and my logs got cluttered with various error messages. Moreover I'm displaying my…
Łukasz Zaroda
  • 6,083
  • 4
  • 17
  • 24
124
votes
2 answers

How do I display log messages from previous boots under CentOS 7?

Executing journalctl under a CentOS 7 system just prints messages generated after the last boot. The command # journalctl --boot=-1 prints Failed to look up boot -1: Cannot assign requested address and exits with status 1. Comparing it to a…
maxschlepzig
  • 56,316
  • 50
  • 205
  • 279
91
votes
2 answers

How to tell journald to re-read its configuration?

My question is simple: how do I tell journald to re-read its configuration file without rebooting? I've made some changes to /etc/systemd/journald.conf and I'd like to see if they are correct and everything works as I expect. I do not want to…
lorenzog
  • 1,413
  • 1
  • 10
  • 11
50
votes
1 answer

How to inspect systemd journal files directly?

I have arch linux failing on a device. The device doesn't have any screen, it doesn't respond to network. So I take its SD card, insert it in ubuntu desktop, see a fresh system.journal there and... How to see what is inside? From the Arch Linux…
MajesticRa
  • 593
  • 1
  • 5
  • 8
36
votes
3 answers

How do I clear journalctl entries for a specific unit only?

I spent a few days writing a python script, and creating a systemd unit file for it. During testing, the script logged a lot of errors to journald. I would like to clear those errors from journald now that I'm done. There are several ways to clear…
Tal
  • 1,982
  • 5
  • 22
  • 36
34
votes
3 answers

How to see error message in journald

I've created a program that intentionally has a divide by zero error. If I run it in the command line it returns: "Floating point exception" But if I run this as a systemd service I can not see this error message. In my systemd script I have…
Thomas
  • 443
  • 1
  • 4
  • 5
34
votes
1 answer

Is systemd-journald a syslog implementation?

I wonder if systemd-journald is a new implementation of syslog protocol, or rather, it uses syslog implementations, such as rsyslog, syslog-ng I've googled a bit, but I didn't find nothing convincing about it.
sebelk
  • 4,209
  • 10
  • 35
  • 54
28
votes
6 answers

Receiving Syslog messages with a systemd Arch Linux

I'm feeling like I've overlooked the obvious, but I can't figure out how to get my Arch Linux server, which uses systemd, to receive and log syslog messages from a remote system. I have a Cisco 678 DSL modem and a DD-WRT WAP, and both can be…
user732
27
votes
3 answers

journalctl --verify reports corruption

I just noticed this verify option for journalctl and decided to give it a go, it's showing corruption, what might cause that? and what if anything should I do about it? should I investigate further? journalctl --verify PASS:…
xenoterracide
  • 57,918
  • 74
  • 184
  • 250
27
votes
3 answers

How do I see when a systemd service was started/stopped/restarted?

I have a service (written by myself) running on a Debian (Jessie) server, and the service's own logs happen to indicate that it restarted at a particular time. There is no indication of a segfault or other crash, so I am now trying to figure out if…
mindriot
  • 501
  • 1
  • 4
  • 6
25
votes
3 answers

How to get the current systemd-journald running configuration?

I'd like to get the current configuration of journald, similarly to question How to view systemd's runtime global config? How can I do this? Specifically, I have set some of the available parameters for log rotation but journald seems to obey other…
Christophe Drevet
  • 4,047
  • 1
  • 16
  • 16
21
votes
3 answers

Examining /dev/log

/dev/log is the default entry for system logging. In the case of a systemd implementation (this case) it's a symlink to whatever /run/systemd/journal/dev-log. It used to be a receiving end of a unix socket handled by syslog daemon. ~$ echo "hello" >…
TheMeaningfulEngineer
  • 5,735
  • 15
  • 64
  • 113
21
votes
3 answers

Where does `logger` log its messages to in Arch Linux?

The logger command logs an entry via syslog, which usually puts that line to some file like /var/log/messages. If I understand the documentation correctly in Arch Linux all the logging is done through systemd, but I cannot find the logger entries…
michas
  • 21,190
  • 4
  • 63
  • 93
20
votes
1 answer

Stop rtkit-daemon from spamming logs with "Supervising X threads of Y processes of Z users"

journalctl -b | grep Supervising | wc -l 2819 Distro is Fedora 35, vanilla, with PipeWire running the show. I'm pretty sure all modern Linux distros are affected but people don't care. There's no rsyslog here and journald doesn't support…
Artem S. Tashkinov
  • 26,392
  • 4
  • 33
  • 64
20
votes
1 answer

How to direct the journal output of certain units to a particular file?

I've got a system with several daemons running (as systemd units) that output log information to the journal in Arch Linux. I want to direct the journal output of some of those unit files into a separate text file whose location I specify,…
Amr Bekhit
  • 643
  • 2
  • 10
  • 17
1
2 3
18 19