Questions tagged [journalctl]
17 questions
2
votes
0 answers
Log stdout to journal from SystemD
I have a service unit with the following lines:
[Service]
StandardOutput=journal
StandardError=journal
When my service logs to stderr, I can see the logs with journalctl -f -t my-service.
But when I change the service to write the log to stdout,…
Josu Goñi
- 160
2
votes
2 answers
journalctl timpestamp format
journalctl -S [timestamp]
So journalctl prints out a lot of info, as those reading this probably already know. There is a flag -S (or --since) that allows the user to pinpoint the date of the logs she is looking for. I got some error message that is…
I sekai tensei
- 1,340
1
vote
0 answers
Checking for USB device disconnects on Windows (similar to journalctl on Linux)
I have these kiosk machines, (pretty much regular computers but in kiosk form factor), they have these built in USB scanners.
The scanners keep disconnecting and reconnecting at random, and it's causing issues if the scanner happens to disconnect…
Shaggydog
- 169
1
vote
0 answers
How to see the app name in journalctl lines?
If I run
journalctl -u app_1 -u app_2 -f
I see the lines:
Jun 07 12:29:31 server app[194430]: 2024-06-07T12:29:31.257154Z ERROR custom_error
Jun 07 12:53:33 server app[194430]: another message
Jun 07 12:53:33 server app[158501]: …
Fred Hors
- 123
- 3
1
vote
1 answer
How to pass bash's $@ over ssh accounting for spaces in arguments?
I want to read logs conveniently from my server. I'm trying to write a script that reads output of journalctl from my server, applying the parameters I pass to the script to journalctl call. I may want to apply various filters, so I want arguments…
jojman
- 483
- 1
- 5
- 18
1
vote
0 answers
Network devices manipulation when making a call via Microsoft Teams app
I am having an issue with the installation of the Microsoft Teams app on my work notebook Linux mint 19.3 Cinnamon (5.4.0-54-generic #60~18.04.1-Ubuntu SMP Fri Nov 6 17:25:16 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux). There are (among others) docker,…
Eduard Tomek
- 111
- 1
1
vote
1 answer
Why are journald logs in different order than shell output?
I'm running the following Python script with ./test.py:
#!/usr/bin/python3
import snowboydecoder
import sys
import signal
import speech_recognition as sr
import cec
import os
"""
This demo file shows you how to use the new_message_callback to…
kgello
- 31
1
vote
1 answer
Why won't journalctl show logs when the program output is piped?
I'm trying to run my docker-compose containers via a systemd service, and have fail2ban read their logs. However, docker-compose adds a prefix like:
container_name_1 | Actual log message
So what I'm trying to do is something like docker-compose…
Cole
- 151
0
votes
0 answers
Why does “journalctl” produce less output than “dmesg” for the same error?
I am running a paperless-ngx docker on my SBC. Because of processing some documents with many images (and thus OCR is required) out of memory errors are happening.
To troubleshoot it and to know the frequency of this error I used dmesg & journalctl…
nightcrawler
- 147
0
votes
0 answers
Systemd Failed to resolve unit specifiers "%I" in After and Requires specification
I have a udiskie@$DISPLAY.service that requres panel@@$DISPLAY.service. Both service are started by an X11@$Display.target. I want the udiskie service to start after the panel service. The udiskie@.service contains
[Unit]
Description=udiskie autorun…
godblessfq
- 381
0
votes
0 answers
Can't boot into Kali after an update. Still learning how to parse these logs...can anyone lend a set of eyes and help me sort this out?
I recently did a:
sudo apt update && sudo apt upgrade -y
And have been unable to boot since.
Fortunately, I can boot into recovery mode but I am having trouble diagnosing the issue. I've pulled the logs from both the unsuccessful boot and the…
0
votes
1 answer
How to prevent compiz spam in journalctl due to wine
I run a program (DingTalk) in Wine on Ubuntu, and because there are some lingering compatibility issues I find a lot of error messages about compiz in journalctl. There are several errors every second.
The issues are not bad enough to prevent me…
Jerry Ding
- 121
0
votes
1 answer
How to escape program name in journalctl
My system crashed and I am trying to determine what happened by looking at the logs.
I want to filter the logs for the different programs that caused the errors.
For this I tried:
my_username@pop-os:~$ journalctl -u pop-os\ kernel
Invalid unit name…
0
votes
1 answer
How to aggregate journal entries for last boot
I have centralized journals from different hosts to a central log server with systemd-journal-remote link to software. All journals are stored remotely in a file per host. Now I'd like to search in all of these journals with journalctl in case of an…
antonio
- 1
0
votes
0 answers
journalctl entries are logged using the same time, in 5minute intervals
I have a service which queries a database every second and print out results to console. When I look at journalctl I get a couple hundred lines that all have the same timestamp, and then the next couple hundred all have the same timestamp again just…
frend123123
- 33