For any non-technical readers out there, this is probably a post to skip.
Anyone that’s been around Linux for a long time knows that system messages and logs are usually stored in /var/log/messages
. Apparently a few versions of Fedora ago, it went away and is now created or managed instead by a program called journalctl
.
I was having problems with my Logitech HD Pro Webcam C920 (1080p Widescreen Video Calling and Recording) using it with Bluejeans. Both the webcam and Bluejeans are fantastic tools I recommend. Both worked really well on Fedora 21 with Firefox until some of the more recent kernel updates. The problem I have is that in the midst of a video call my outgoing audio suddenly drops.
So far the problem has not appeared going back to an older kernel version. Right now I’m running kernel-3.17.8-300.fc21.x86_64
.
I was able to find some indicators by running journalctl
and scrolling through the output; however, I could not figure out how to export the output to save my life so I could share it with someone else and get help. Google and the man page weren’t any help. Asking someone at work I found out that it’s really simple, you just redirect the output!
$ journalctl > dump-of-journalctl.txt
Apparently you can also give it arguments like --since today
or --since yesterday
.
April 6, 2021 at 6:57 pm
Thank you! I need it this and also works on Linux mint 20.1!
January 9, 2019 at 3:37 pm
Thanks Tim Howard!! I was trying to get the Kubernetes Scheduler logs, journalctl -u kube-scheduler > scheduler.txt
February 16, 2018 at 3:20 pm
If you need to view the log for a specific service, you can do it like this:
journalctl -u service-name > output.txt