Questions tagged [journald]
102 questions
6
votes
1 answer
Getting journald to send email on certain events
I found these solutions for syslogd that send emails on certain events like local0.crit or local1.err
How can I make syslogd email certain log messages to…

fdafgfdgfagfdagfdagfdagfdagfda
- 171
- 3
- 14
5
votes
1 answer
systemd-journal Rate Limit
I have a service set up on CentOS 7 which outputs a lot of log messages, which results in this in the system log / journal: systemd-journal[xxxx]: Suppressed 864 messages from /system.slice/example.service.
However, I want to see all of the service…

David
- 51
- 1
- 2
5
votes
3 answers
System logs are empty (/var/log/messages; /var/log/secure; etc)
I found that rsyslog stopped writing on logs (messages; secure; cron;etc)
System information:
NAME="Red Hat Enterprise Linux Server"
VERSION="7.4 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.4"
already…

BANJOSA
- 370
- 1
- 3
- 15
5
votes
5 answers
reliable export of journalctl logs
I search a way for a reliable export of journalctl logs.
I could use the --since=... option, but this is a bit fuzzy.
In my case a script would call journalctl --output=json every ten minutes.
I don't want to miss a single line and (if possible) I…

guettli
- 3,591
- 17
- 72
- 123
5
votes
2 answers
Turn off buffering in systemd unit-file?
When I write my unit-file I want all output from Exec*-options (ExecStartPre=, ExecStartPost=, ExecStart=, and ExecStopPost=) to be sent to the journal. But apparently the output is buffered in some way so it is in no way certain what will be…

UlfR
- 347
- 6
- 11
5
votes
1 answer
Separating java stdout and stderr with systemd and without filling journal
I am running java apps via systemd:
[Unit]
Description=test service
[Service]
Type=simple
EnvironmentFile=/etc/sysconfig/testserver
WorkingDirectory=/opt/testserver
ExecStart=/usr/bin/java -jar…

GioMac
- 4,544
- 4
- 27
- 41
5
votes
1 answer
Is it safe to disable rsyslog if I have journald?
I am using Debian 10. It seems to me, that both journald and (r)syslogd watch for messages independently from sources such as kmesg() or syslog().
Is there any advantage to running both? Why does Debian ship with both? For comfort? I guess syslog…

markson edwardson
- 189
- 9
4
votes
3 answers
systemd-journald system logs are not persistent across boots despite Storage=persistent
I recently got a problem with systemd not preserving logs from previous boots. I checked several answers here and elsewhere but haven't found a solution.
the problem is that the user log gets persistent across boots but system logs are…

Jan Peter König
- 73
- 3
4
votes
2 answers
Systemd: Default log output format
I am wondering if the default output for journalctl can be adjusted. Such that a custom pattern can be supplied.
For example I would like to:
display the log level (e.g. priority)
configure fixed column width for certain journal fields
enable…

lanoxx
- 302
- 1
- 4
- 12
4
votes
2 answers
How can I get haproxy to log to systemd/journald?
I have a current generation Linux system I'd like to use with haproxy. Journald will happily log stdout from .service, and mark the log as coming from that service, but haproxy doesn't seem to be able to log to stdout.
What's the simplest and…

mikemaccana
- 3,370
- 5
- 25
- 29
3
votes
1 answer
httpd.service is reloaded or killed
On a new CentOS7 server, I got the issue, that every night the httpd.service is getting reloaded. And sometimes, around same time, it is getting just killed.
systemctl status httpd:
● httpd.service - The Apache HTTP Server
Loaded: loaded…

lickmycode
- 167
- 3
- 9
3
votes
1 answer
Not seeing logs for program managed by systemd
I'm using systemd to manage a program on Ubuntu 16. I can't seem to get the logs from the program to output to journalctl or /var/log/syslog. The journald configuration is the default, which should forward all log messages < debug to syslog, at…

lps
- 151
- 7
3
votes
0 answers
Multiple Nginx Error Log Locations
I'm trying to get Nginx to log both in a log file and to stderr. The reasoning behind this is that I want Nginx to log to a log file as well as to journald. From the research and tests I've done I can make it do one or the other, but not both.
To…

thatguy
- 31
- 2
3
votes
1 answer
How can I start systemd unit files (someservice.service) with logging set to /dev/null?
Is there a way to start a service using systemd and direct it's logging to /dev/null WITHOUT including the proper lines in the unit file.
For example, A file that has the StandardOutput and StandardErorr directives set to null will send logs to…

Brian Sizemore
- 132
- 1
- 6
3
votes
1 answer
ionice for systemd journal
It happens on my production machines that there is so much logs that journalctl "freezes" the production webservers (by eating all IO). Yup, I'm logging a lot (~4GB compressed per 3-4 hours).
As my servers should earn money first and in free time do…

neutrinus
- 1,125
- 7
- 18