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.
311 questions
2
votes
1
answer
56
views
RTC / systemd time drift
I do see the following behaviour on a SUSE SLE 15 VM
(VMWare ESXi, location setting is Europe / Germany)
and getting confused the more I think about it.
I have shortened the journal-log output to the ...
0
votes
2
answers
71
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 ...
7
votes
2
answers
902
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 ...
2
votes
2
answers
429
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
1
answer
65
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 ...
1
vote
2
answers
220
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 ...
0
votes
0
answers
209
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. ...
3
votes
0
answers
199
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
549
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
...
0
votes
1
answer
31
views
Cannot see "file,line,func" fields in the journal
I am trying to use sd_journal_print_with_location() function.
#include <systemd/sd-journal.h>
int main() {
sd_journal_print_with_location(LOG_INFO, "CODE_FILE=tst_file.c", "...
1
vote
0
answers
195
views
Process under systemd (journald) doesn't log stdout?
I have a process that I've written that logs several lines to stdout on startup:
Remote Input Daemon starting...
Creating evdev device... done.
Filling keys list array... done.
Setting up listening ...
0
votes
1
answer
409
views
How to tail remote systemd journal files
I've gotten my systemd-journald-remote.service up and running, with (1) test client connecting successfully via systemd-journald-upload.service. When I normally tail journald logs, I use journalctl -...
1
vote
1
answer
104
views
Remote journal over AutoSSH tunnel
I'm having several remote sites (test setups), each having multiple Linux devices, uploading their journal remotely to Raspberry Pis in that remote site. I'm trying to forward these journals via ...
0
votes
1
answer
57
views
omit command output on systemd-run
when running systemd-run --pty --same-dir --wait --service-type=exec I get all the command output in journal. While nice, it is not something I want/can afford all the time.
for example, if I want ...
1
vote
0
answers
102
views
Systemd logging to journal stops after service outputs very long lines
I have a process that outputs its logs to standard error, and I'm running it as a systemd service with Type=simple. I have left the StandardError and StandardOutput fields at their default values (...
7
votes
2
answers
2k
views
Is it possible to dynamically refresh journalctl with less?
I'm using less to view my journalctl logs because it's more convenient. It doesn't clutter the console window with logs after you exit less and you can scroll using your mouse wheel.
journalctl --unit ...
0
votes
0
answers
247
views
How can I force systemd journalctl to output log in sequential order in case of frequent clock changes?
I have a standalone debian-based system that -- for the simplicity -- can be taken as not having RTC. The system clock can be set during operation, both forwards and backwards.
I thought that ...
2
votes
1
answer
326
views
Trying to periodically backup /var/log while using journald
I'm trying to periodically backup my /var/log directory, but journald manages the logging on my system. Is the correct way to just tar -cf log.tar /var/log?
The way journald saves it's log files in /...
0
votes
0
answers
1k
views
systemd-journald.service fails to load during boot
I've accidentally unplugged my NAS and after plugging back it fails to boot because of the following error:
[ 105.556720] systemd[1]: systemd-timesyncd.service: Main process exited, code=killed, ...
0
votes
0
answers
1k
views
systemd, journalctl, and suspend/resume (sleep/wake): marked by default in the logs? Or how to add? And scripting around suspend/resume in general?
(
First of all, I'm not completely sure what the official terms are.
I think it's "suspend"/"resume",
with "sleep"/"wake" being synonyms
(and I'm not sure if ...
3
votes
2
answers
1k
views
`journald` vs `systemd-journald` - are they the same notions?
I am new to systemd.
I have read that along with systemd boot system comes it's own logging daemon - journald. But there is also a lot of mention of systemd-journald daemon over the Internet.
At first ...
0
votes
1
answer
994
views
Can I mount `/var/log/journal` as `tmpfs`?
I have read this question, but it discusses syslog and my question is about journald. Can I mount /var/log/journal as tmpfs using fstab, or will journald be run (and therefore maybe write to the ...
0
votes
1
answer
1k
views
How to filter journalctl logs by human readable facility?
I can do the following to get local3 logs:
journalctl SYSLOG_FACILITY=19
The magic number 19 is uterly confusing. How can I do the following:
journalctl WHAT_TO_PUT_HERE=local3
?
I do not see ...
1
vote
2
answers
2k
views
Why all output of my C program directed to stdout is sent to journald?
I work on yocto based linux distribution. I'm not expert about systemd and neither about systemd-journald.
My C program my_c_program is started at boot by the script my_script.sh. Below there is the ...
2
votes
2
answers
8k
views
systemd-journal-flush.service Failed with result timeout - Failed to start Flush Journal to Persistent Storage
I see this on my systemctl log, the systemd-journal-flush.service fails to start with a timeout error. Server is apparently running fine though. OS is CentOS 8. Logs don't tell much about the error. ...