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.
309 questions
0
votes
2
answers
67
views
How to trigger an action when a kernel driver produces an error
Occasionally, my amdgpu driver errors out, freezing the system. I want to trigger a GPU reset (which is likely to solve the problem) when a specific error message appears from the amdgpu module. Is it ...
2
votes
1
answer
71
views
How to disable Journald's ForwardToSyslog=yes on Ubuntu 24.04?
I have Ubuntu 24.04 servers with this Journald config by default:
user@server:~$ systemd-analyze cat-config systemd/journald.conf
# /etc/systemd/journald.conf
# This file is part of systemd.
...
[...
7
votes
2
answers
816
views
journalctl seemingly can't handle too much logs
I have a systemctl service that generates rather high volume of logs, on the order of 20-50 Gb per day. The service runs on a VPS with Ubuntu 24.04 LTS. The service is written in node.js, and simply ...
-3
votes
1
answer
102
views
Linux Mint: /var/log shows 165GB disk usage but no large files found
My Linux Mint system reports that /var/log occupies 165 GB of space, but all subdirectories and files within it are small (total <100 MB). This is causing the root partition (/) to fill up, ...
1
vote
2
answers
337
views
systemd message litters tuigreet / greetd
A failing mount unit's systemd message somehow ends up on the tuigreet / greetd screen.
I suspected the problem stemmed from using VT1 for greetd which is used by systemd to log messages there but the ...
0
votes
0
answers
94
views
/dev/log is a socket not a symbolic link
I am trying to understand why one of my system has /dev/log as a socket and other has /dev/log as a symbolic link.
[ec2-user@ip-171-31-12-17 log]$ file /dev/log
/dev/log: symbolic link to /run/systemd/...
0
votes
1
answer
59
views
Why syslogd receives the message and not journald?
I have tried to log into journald using logger.
logger test, journalctl |grep test does not show any output. The message does not reach journald even though it listening and logger is writing (I ...
3
votes
2
answers
142
views
How to preserve newline characters in journald logs from PHP script stdout?
I have some service, which executes php scripts and sends its stdout to journald. Journald splits the log record by newline.
This can be read under lineMax:
journald.conf(5) - systemd | Debian ...
1
vote
2
answers
180
views
systemd-journald writes an average of 16MB per hour!
OS: Ubuntu MATE 24.04.2 LTS
I added the system monitor to my top panel and noticed much disk activity.
At first I thought the main 'culprit' was jbd2 -- Journaling Block Device.
But jbd2 ("a ...
2
votes
1
answer
756
views
Log all journald messages to AWS Cloudwatch
I'm migrating our existing Amazon Linux 2 servers to Amazon Linux 2023. One of the changes is that the AL2023 now uses journald for it's logging. I have the requirement to have all logging in AWS ...
0
votes
0
answers
200
views
tails booting issue
im getting this error while booting tails from a usb stick. i tried the same usb with another laptop it works fine. but trying with my asus g14 its not working, the error is shown in the screenshot. ...
0
votes
0
answers
94
views
journalctl does not keep logfiles
For some reason my server with SLES 15 SP4 is not keeping the log data in journalctl for more than 2 days.
My journald.conf looks like this:
[Journal]
Storage=persistent
Compress=yes
#Seal=yes
#...
2
votes
0
answers
188
views
How can I use --machine to see another user's units in journalctl?
With systemctl, I can start and stop the user service units of a different user using:
sudo systemctl --user --machine=OTHER_USER@ stop their.service
How can I achieve this behaviour with journalctl? ...
0
votes
1
answer
143
views
Best way to continuosly cat tty to journal
I have a serial device that shows output at /dev/ttyX. I can cat this and watch the output come in on my current terminal, But I want to log the output to the system journal even if I'm not at a ...
0
votes
1
answer
512
views
systemd journald not working properly after reboot (until rotation)
I'm encountering strange issue with journald on a custom embedded Linux system built with Yocto.
On freshly prepared and booted system, journal works fine:
using --list-boots shows only one (0) entry
...