Questions tagged [systemd-journald]
89 questions
0
votes
1 answer
Go syslog package - messages being triplicated in different files
On a Debian 9 (stretch) system, 4.14 kernel I have some applications written in Go that make extensive use of logging. I'm finding that these log messages are being triplicated.
With the following code, all log messages are written to…

Michael Anonymous
- 131
- 11
0
votes
1 answer
How to monitor JournalD for Error/Fatal error messages of some particular process and start some callback if any
How to monitor JournalD for Error/Fatal error messages of some particular process and start some callback if any. Say if some service - say Nginx posts a log with Error - some script would call. How to make such a script?
user12569851
0
votes
1 answer
JVM to use Systemd log transport and output straight into JournalCTL instead of STDout
JVM to use Systemd log transport and output straight into JournalCTL instead of STDout. I am developing Clojure application ant it prints logs straight into stdout. From there SystemD service picks it and puts into log file. But it happens that…
user12524810
0
votes
1 answer
How to configure the hostname shown in logs from a docker container?
I log the activity of my docker containers via journald. The hostnames provided by the containers are non-descriptive. An example for a Minecraft docker container:
Jul 25 16:51:38 srv c34ebd053ff5[19692]: [14:51:38 ERROR]: Could not pass event…

WoJ
- 27,165
- 48
- 180
- 345
0
votes
1 answer
How to get memory mapping information from systemd-coredump / coredumpctl / systemd-journal
When I report a crash using ABRT, it attaches a file maps, which shows memory mappings - and their permissions - saved from /proc/self/maps.
I have a crash of gnome-shell which has mysteriously failed to show up in ABRT, despite showing up in…

sourcejedi
- 3,051
- 2
- 24
- 42
0
votes
0 answers
How to set the journal logging priority in a C program?
Currently, the "Hello World" does alway appear in the journal.
How can I prevent this, e.g. have it only in the journal, if debug is 1?
int main(int argc, char *argv[]) {
int debug = (argc >= 2 && !strcmp(argv[1], "--debug")) ? 1 : 0;
…

Martin
- 31
- 3
0
votes
1 answer
Filtering out container logs from jorunald using fluentd
I have around 30 docker containers which write the logs to journald with the tag 'container_name'. I'm using google-fluentd to send the logs to the Google Stackdriver. I'm finding it difficult to categorize the logs using the tag given in journald.…

Sine C
- 41
- 4
0
votes
1 answer
sd_journal_send to send binary data. How can I retrieve the data using journalctl?
I'm looking at systemd-journal as a method of collecting logs from external processors. I'm very interested in it's ability to collect binary data when necessary.
I'm simply testing and investigating journal right now. I'm well aware there are…

PacoProgramming
- 25
- 3
0
votes
1 answer
Journalctl logs messages in groups?
So on our machines we noticed something odd. Our services log normally, but these messages seem to be grouped into packs of specific sizes. For instance, one command of our service generates only 1 line in the log. Another command generates about 5…

steW
- 87
- 10
0
votes
1 answer
How to make journald increase logs storage capacity?
I would like to have persistent logs via journald. I created /var/log/journal and reloaded the service. Now logs are saved on the disk. But the log size limit is low.
I added /etc/systemd/journald.conf. (Storage=persistent/auto doesn't matter, I…

4xy
- 3,494
- 2
- 20
- 35
-1
votes
1 answer
How to import systemd under DNF package in Yocto?
I am trying to move DNF logging from the default filehandler(/var/log/dnf.log) to JournalHandler as part of a task.
My basic code snippet for this under my .py
import sys
import logging
from systemd.journal import JournalHandler
log =…

zaheerk
- 11
- 2
-1
votes
1 answer
journalctl stops logging systemd service logs with systemd_unit field
This is a question about journalctl and how systemd log entries are produced.
My OS is RHEL8.
I've got a systemd service setup to run kubelet as a systemd service, and I would like to use journalctl to tail the logs using the unit flag with…

r.t
- 1
- 1
-1
votes
1 answer
View systemd logs without journald
I have a rootfs of broken container with ubuntu-xenial. How to view logs of specific service without running journald?

dimcha
- 193
- 14