Linux Crash Course - Understanding Logging
Вставка
- Опубліковано 25 чер 2024
- The Linux Crash Course is a series of tutorials that will teach you a fundamental Linux-related concept in each episode. This time around, the spotlight is on logging. In this video, you'll see some examples of log files that exist in Fedora as well as Ubuntu.
Thanks to Linode for sponsoring today's video! Check them out and get your very own cloud Linux server ➜ learnlinux.link/akamai
Brand LPI Linux Essentials Course Available
Check out the new course on Udemy! ➜ learnlinux.link/lpi-course
➜ learnlinux.link/lpi-course
Check out the Linux Shop
In the official shop, you'll find Shirts, hats, stickers, bags and more!
➜ merch.learnlinux.tv
5% discount on LPI exam vouchers
After you finish Jay's new course, get 5% off an LPI exam voucher here:
➜ learnlinux.link/lpi-voucher
Become a Patron
Show your support for Learn Linux TV on Patreon and get access to exclusive perks!
➜ learnlinux.link/patron
Become a Channel Member
Show your support for Learn Linux TV here on UA-cam and get access to exclusive perks!
➜ learnlinux.link/member
Mastering Ubuntu Server: 4th Edition
Jay's latest book covers everything you need to know in order to master Ubuntu Server. It's available here:
➜ ubuntuserverbook.com
Linux Gear and Kits
Check out Jay's choice of hardware products, audio/video equipment, and more.
➜ learnlinux.link/amazon
Grab an awesome Pi-powered KVM
Support Learn Linux TV and grab yourself a TinyPilot KVM here:
➜ learnlinux.link/tinypilot
Note: Royalties and/or commission is earned from each of the above links
Time Codes
00:00 - Intro
00:59 - Get your very own cloud Linux server with Linode (sponsor)
02:21 - Log file examples from a Fedora instance
04:46 - Some log files may not be viewable as your normal user
05:52 - The dnf log file
07:35 - How to view the contents of the wtmp log file
09:18 - Viewing the contents of the btmp file
12:34 - Taking a look at some of the log files in Ubuntu
14:16 - The authorization log (authlog)
15:00 - Viewing logs in "follow mode" with tail
17:42 - Viewing the System Log (syslog)
21:56 - The dmesg log file
24:34 - The journalctl command
Full Courses from Learn Linux TV
• Linux Essentials Certification Workshop ➜ learnlinux.link/lpi-course
• Linux Crash Course series ➜ linux.video/cc
• Learn how to use tmux ➜ linux.video/tmux
• Learn how to use vim ➜ linux.video/vim
• Bash Scripting Series ➜ linux.video/bash
• Proxmox VE Cluster Full Course ➜ linux.video/pve
• Learn Ansible ➜ linux.video/ansible
Linux-related Podcasts
• Enterprise Linux Security ➜ enterpriselinuxsecurity.show
• The Homelab Show ➜ thehomelab.show
Learn Linux TV on the Web
• Main site ➜ www.learnlinux.tv
• Community ➜ community.learnlinux.tv
• Enterprise Linux Security Podcast ➜ enterpriselinuxsecurity.show
• The Homelab Show Podcast ➜ thehomelab.show
• Content Ethics ➜ www.learnlinux.tv/content-ethics
• Request Assistance ➜ www.learnlinux.tv/request-ass...
Disclaimer
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. The person viewing Learn Linux TV's content is expected to follow their best judgement and to make their best decisions while working with any related technology. Always make sure you have written permission before working with any infrastructure. Also, be sure that you're compliant with all company rules, change control procedures, and local laws.
#Linux #LearnLinux #LinuxTutorial - Наука та технологія
Perfect timing - I'm covering some logging material this week in my Linux class. Always nice to get some extra info!
Also, digging the new woodgrain aesthetic in the studio!
SAME lmao
Have a linode box. SSH on port 22. (password disabled, root disabled). Took the output of authlog. Made a quick Python script to save all the user login attempts. Every day had well into 300 unique user login attempts. Logs are useful :D
greetings from Mexico, awesome channel. I plan to go through all your videos of linux crash Course and i plan to do it within a month
really nice videos, always covering little edges i didn't know about
Great video! I think the /var/log/messages file is very important as well
Get to know your log files while working in IT.
You truly have no idea how many problems you can fix just by looking at the logs
In my work we were having an issue where a VM was losing their TC connection. Problem been going on for months maybe a year. I got assigned the issue. Looked at the logs, immidiately found the problem.
log speaks!
Superb way of explaining.
For a noob in this, that's a lot of easy to understand functions, great content!
As a beginner, I found this to be very helpful towards learning about the tools available for troubleshooting in linux and in my case, ubuntu! Thank you!
As a relatively new linux desktop user, this is very helpful for me to understand how to troubleshoot my system.
Great Video! Thanks
Thanks! 😄
Your videos are different from the others and will be useful for the newbies who steps into the system administrator career.
Lot of information and learning from you.
Very interesting as usual. Thank you for your great content
A question: how can I (permanently) clean all the logs? Maybe also regularly or on shutdown. Thank you
dmesg -T is a handy one
tnx for the video
We need lots s of videos from you plz, everything about Linux for system engineers
lnav can be a very handy tool, I use it all the time.
Thanks. Could you make a video about NIC Teaming in Ubuntu please?
Great video and explanation again! @jay would you consider a video on an unattended installation of Ubuntu using preseed?
So this is a mix of journald and rsyslogd due to the switch from fedora to ubuntu which is a little confusing. Rsyslogd has been deprecated, would you advise running it in parallel?
Great video as usual! One question, when you install different distros all day long, how do you do this? Using USB thumbdrives? Or do you use som sort of PXE boot install solution for this? I have been looking for a solution for this that is not to much of a pain to use. Thanks!
Virtual machines, my guy. Linode. There's videos on all of it.
Thanks.
Do you know, how I can see, which files were downloaded (or edited) during a specific time period (days)?!
I have an apache linux machine.
Big thanks
Do a systemV tutorial as well please
Wow!
I need to keep that follow option in my pocket more. The amount of FTP connection issues i go through that would be helpful to have when viewing the auth.log.
Alternatively, you can also press "F" (capital f) when using less, or open a file in "follow mode" with less +F /path/to/file
how do you get the green glow around your terminal?
That’s done in post processing. It’s not actually like that in real life.
I do not own a server. Yet, I wish to better understand what's going on in my distro the way a Windows power user would using Event Viewer
I just recently installed Mint and the OS did prompt me after installation to add Nvidia and I did so with no problem.
I have an arch vm. Would it have logs as well?
Essentially every Linux distribution has logs.
Arch uses systemd, so most logs can be viewed with journalctl.
Hello brother, please explain halt cmd🤔
12:03