Questions tagged [systemd-journald]

89 questions
0
votes
1 answer

Linux: Triggering desktop notification pop-up when service is executed with systemd

I want to trigger a desktop notification pop-up when a service is executed with systemd on my Linux desktop. The main reason why I am doing this is that I want to learn how to work with systemd timers and services by creating my own scheduled jobs…
Tomáš Kruliš
  • 167
  • 2
  • 9
0
votes
2 answers

Programmaticaly parse journalctl to initiate an action

When my 3d printer runs out of filament, it pauses without sending any alert message. The only entry I can find is a message that on journalctl like this one: Jan 22 04:36:39 ultimakersystem-flipflop_wsgi.py[2884]: INF - root:80 - PrintJobStatus…
aag
  • 680
  • 2
  • 12
  • 33
0
votes
1 answer

can any one give me more details about journald and syslog

Can any one help me in understanding the difference between journald and rsyslog and advantages, disadvantages for each one, which one I should use?
M_Zakaria
  • 31
  • 8
0
votes
1 answer

Using jq to loop over objects and return an iterated value

I have an enteresting TODO that I'd like some eyes on. I'm using journalctl to grab system journal entries and output as JSON. journalctl outputs as JSON objects separated by a newline. Here's a sample of a JSON object outputted from journalctl: {…
Ken Jenney
  • 422
  • 7
  • 15
0
votes
2 answers

Journald not rotating at the configured size in Yocto poky hardknott

I'm using systemd-journald on poky hardknott journalctl --version systemd 247 (247.6+) -PAM -AUDIT -SELINUX +IMA -APPARMOR -SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL +XZ -LZ4 -ZSTD -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2…
0
votes
2 answers

Include systemd-journal-remote with Bitbake

I am using an embedded Linux system based on Yocto/Open Embedded Linux and the systemd-journald-remote program is missing. When I look at the systemd recipe the program is mentioned. It seems like it is not compiled or added by default to the image.…
flexo
  • 1,120
  • 1
  • 9
  • 14
0
votes
1 answer

Linux journal daemon log and/or persist only the error/critical event logs

With the systemd journal daemon is there a way to configure the persisted logs (/var/log/journal/*) so that only Errors and Critical level events are actually stored to disk? We have extremely high volume servers that would generated gigabytes daily…
No Fun
  • 15
  • 3
0
votes
0 answers

systemd not capturing echo statement from shell script

I have a systemd service file which is directly calling a shell script. My expectation is that stdout and stderr from the file would be captured by journal+console, but it is only appearing in syslog. What should I change in my service file or the…
lex
  • 1,701
  • 4
  • 19
  • 31
0
votes
1 answer

docker send internal cerbot log file to host journald

I'm building a docker container with nginx and certbot embedded. I want to be able to log the output from nginx and cerbot using journald on the host. The nginx output already goes to the console and the host journald is working fine for this…
Brett Sutton
  • 3,900
  • 2
  • 28
  • 53
0
votes
1 answer

Debian server Systemd-journald use high CPU

systemd-journal seems to have hig CPU usage(60~70%) # journalctl Jun 11 17:31:14 hotname.example kernel: BANDWIDTH_OUT:IN= OUT=lo SRC=127.0.0.1 DST=127.0.0.1 LEN=120 TOS=0x00 PREC=0x00 TTL=64 ID=25585 DF PROTO=TCP SPT=43 Jun 11 17:31:14…
DongJin Oh
  • 109
  • 6
0
votes
1 answer

Difference between **journalctl -u test.service** and **journalctl CONTAINER_NAME=test**

I have a systemd service file which run a docker container with log driver journald. ExecStart=/usr/bin/docker run \ --name ${CONTAINER_NAME} \ -p ${PORT}:8080 \ --add-host ${DNS} \ -v /etc/localtime:/etc/localtime:ro \ …
Sine C
  • 41
  • 4
0
votes
1 answer

Getting Docker logs to Fluentd via SYSLOG_IDENTIFIER

I have docker containers which writes all logs to Journald. I have added these two flags to the docker run command --log-driver=journald --log-opt tag="docker.test" When I see the logs using journalctl CONTAINER_NAME=test-docker, I see the the tag…
0
votes
0 answers

systemd fails to start VPN service

I have a simple expect script name "vpnloginpractice.sh" that starts my VPN. The script located in "/etc/openvpn/" and works fine if I run it manually. I try using systemd to execute the script at startup, but it won't start the VPN. Below is the…
0
votes
0 answers

Problem parsing Fluentbit Docker Logs(Systemd) to GELF message Output in Kubernetes

I'm getting Docker(Systemd) logs and trying send it in GELF format to Graylog 3 output but the log is not in the correct format, and Graylog discart it. I'm folow this…
rafambbr
  • 570
  • 8
  • 15
0
votes
3 answers

Fluentbit get Docker Logs(Systemd) in Kubernetes not working

I'm trying to configure Fluentbit in Kubernetes to get Logs from application PODs/Docker Containers and send this log messages to Graylog using GELF format, but this is not working. See my stack below: INPUT Docker version 1.13.1 Docker Log…
rafambbr
  • 570
  • 8
  • 15