Questions tagged [journald]
102 questions
3
votes
3 answers
Reduce cron log level with systemd
Googling for a solution, I only found articles telling me how to do it in old systems and not under a systemd maintained Linux, by changing the cron init-script adding -L parameter to the command line.
I have a cron job that runs every minute. It…

fdafgfdgfagfdagfdagfdagfdagfda
- 171
- 3
- 14
3
votes
1 answer
Unable to read events from systemd journal gateway
I'm trying to forward systemd logs to the remote host and can't get systemd-journal-gateway working. I can connect to http://localhost:19531/entries?follow but there aren't any entries. In the same time journalctl -f shows new journal entries.
I…

bronislav
- 141
- 6
3
votes
3 answers
Forward systemd journal messages/Collect systemd journal messages
How can I collect systemd journal events (pull) or forward systemd journal events (push)?
I want to have something like forwarded event log (http://windows.tips.net/T012878_What_is_the_Purpose_of_the_Forwarded_Events_Event_Log.html) but under…

adontz
- 337
- 5
- 12
3
votes
3 answers
systemd StandardOutput to a file _and_ to the journal?
I am regularly doing a long running (~5 day) data processing programme. I'm using Ubuntu and running the command with a systemd transient task via systemd-run --unit data_import /path/to/my-script.sh. It's working well. I can look at the logging…

Amandasaurus
- 31,471
- 65
- 192
- 253
3
votes
1 answer
Is there a way to make samba (smb,nmb) to not log start/stop events as error?
smbd and nmbd services log a lot of things as errors which clutters my journald logs when I filter it with journalctl -p 3. Is there a way to tell samba to not log start/stop/daemon_ready messages as errors (log level 3) but as normal messages…

FieryRider
- 43
- 5
3
votes
0 answers
How do I specify a fail2ban filter/jail where the log is sourced from systemd/journald?
I've got nginx running and logging to systemd / journald.
How do I specify the source of the log to be from a systemd unit?
In man jail.conf I see for the backends listed as :
systemd
uses systemd python library to access the…

Chris Stryczynski
- 1,566
- 2
- 20
- 25
2
votes
1 answer
rcu_sched self-detected stall on CPU + watchdog: BUG: soft lockup - CPU#3 stuck for 22s
Being unable to ssh into a machine I connected it to a monitor and found the following:
The machine is running Ubuntu Server 18.04 LTS and is a first generation 8 core Ryzen 1700. I've restarted the machine since and it works fine but am not sure…

Greg
- 1,657
- 5
- 27
- 38
2
votes
0 answers
sudo log entries don't show username on Debian Stretch
For some reason, the username of the user calling a command with sudo is not shown in the system log:
$ journalctl -ef
sudo[30160]: pam_unix(sudo:session): session opened for user root by (uid=0)
sudo[30160]: pam_unix(sudo:session): session closed…

Strayer
- 121
- 3
2
votes
2 answers
Clearing "/var/log/journal"
I want to clear my "/var/log/journal" directory.
I'm using debian 8
root@nyc3-x8:/var/log# uname -a
Linux nyc3-x8 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/Linux
And my journal;
root@nyc3-x8:/var/log# du -hs journal/
11G…

Goktug
- 23
- 1
- 3
2
votes
1 answer
Systemd python service buffers journalctl output even with -u
I have a simple user systemd service configured like so:
[Unit]
Description=Bot
AssertPathExists=/home/mikel/discord-bot/
[Service]
WorkingDirectory=/home/mikel/discord-bot/
ExecStart=/home/mikel/anaconda3/bin/python -u bot.py…

mxbi
- 121
- 1
- 3
2
votes
0 answers
Journald allow a user to read one unit's logs
tl;dr
How can I allow a normal user to read one systemd service's logs?
Long question
Environment: CentOS 7
A user needs access to his service's logs, which are by default consumed by journald. I can view them as my non-root user (because I'm in the…

bgStack15
- 1,111
- 1
- 12
- 23
2
votes
1 answer
Journald does not log error messages before failing exit of program
I'm invoking a python3 module using systemd (version: systemd 232) on debian stretch. The problem is, if the python module raises an exception, the exception message (stderr) and some prior prints (stdout) are not output to the journal before the…

Matthew Mitchell
- 255
- 1
- 2
- 6
2
votes
0 answers
Unable to turn logging down on isc-dhcp-server on ubuntu xenial
I edited /etc/dhcp/dhcpd.conf and set
log-facility local4;
I've also edited /etc/systemd/system.conf and set
LogLevel=notice
I've verified that the log level is set to notice with the command.
systemctl -pLogLevel show
None of that seems to be…

mpmackenna
- 144
- 6
2
votes
1 answer
How to write multiline log entry to journald?
My NodeJS-based service writes multiline logs using console.log to journald. However, logs get broken down on each new line (\n). How can I have a multiline message in a single log entry?
Thank you!

geeko
- 141
- 1
- 5
2
votes
1 answer
Systemd journal files smaller than SystemMaxFileSize
I have a system running CentOS 7, with more than 1T free disk space. The systemd version is 219. I have configured journald with the following settings:
Storage=persistent
SplitMode=none
SystemMaxUse=50G
SystemMaxFileSize=1G
#MaxFileSec=1month…

joaerl
- 397
- 1
- 3
- 11