Questions tagged [journalctl]
The journalctl tag has no usage guidance.
15
questions
1
vote
0
answers
6
views
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 ...
0
votes
0
answers
125
views
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 ...
0
votes
0
answers
124
views
Rotate journald at a specific time
Is it possible to either configure journald to rotate logs at a specific time of day, or to externally trigger a log rotation (say in a systemd timer or cron job)?
The reason is to play nicely with ...
0
votes
1
answer
59
views
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....
1
vote
1
answer
908
views
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 ...
0
votes
1
answer
180
views
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:~$...
0
votes
1
answer
137
views
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 ...
0
votes
0
answers
98
views
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 ...
1
vote
0
answers
2k
views
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 ...
0
votes
1
answer
9k
views
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 ...
0
votes
1
answer
28
views
is it possible to link an execution to a file in linux?
I was wondering if it is possible to create a link to an actual execution of an executable file on the file system?
For example i want to create a link to a command like journalctl -feu myservice as ...
1
vote
0
answers
83
views
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 ...
0
votes
1
answer
590
views
Sddm greeter isn't showing after logout in arch
I'm having a problem in arch Linux, i installed kde sddm and when i try to logout i get a black screen with a cursor on it. I've enabled the sddm.service also and everything else works fine except ...
1
vote
1
answer
125
views
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 ...
1
vote
1
answer
1k
views
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'...