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
  • Наука та технологія

КОМЕНТАРІ • 42

  • @slobgoblin
    @slobgoblin Рік тому +4

    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!

  • @emmashepard2070
    @emmashepard2070 Рік тому +5

    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

  • @user-bz5qg2tv6c
    @user-bz5qg2tv6c Рік тому +1

    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

  • @SimonHuenecke
    @SimonHuenecke 11 місяців тому

    really nice videos, always covering little edges i didn't know about

  • @kanutomay
    @kanutomay Рік тому +2

    Great video! I think the /var/log/messages file is very important as well

  • @KR1ML0N
    @KR1ML0N Рік тому +9

    Get to know your log files while working in IT.

    • @jacksoncremean1664
      @jacksoncremean1664 Рік тому +5

      You truly have no idea how many problems you can fix just by looking at the logs

    • @ethanrivers4057
      @ethanrivers4057 Рік тому +9

      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.

    • @voodooyam
      @voodooyam Рік тому +1

      log speaks!

  • @SoniaChavez-je7hq
    @SoniaChavez-je7hq 5 місяців тому

    Superb way of explaining.

  • @Lucas_Fidalgo
    @Lucas_Fidalgo Рік тому

    For a noob in this, that's a lot of easy to understand functions, great content!

  • @theshadow6273
    @theshadow6273 3 місяці тому

    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!

  • @WaySensei
    @WaySensei Рік тому

    As a relatively new linux desktop user, this is very helpful for me to understand how to troubleshoot my system.

  • @portfedh
    @portfedh Рік тому

    Great Video! Thanks

  • @juanrebella2589
    @juanrebella2589 Рік тому +2

    Thanks! 😄

  • @manojkumar-lf1ei
    @manojkumar-lf1ei 6 місяців тому

    Your videos are different from the others and will be useful for the newbies who steps into the system administrator career.

  • @zameerpashablr
    @zameerpashablr Рік тому

    Lot of information and learning from you.

  • @albertoleo9529
    @albertoleo9529 Рік тому +2

    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

  • @diablobarcelona
    @diablobarcelona Рік тому +3

    dmesg -T is a handy one

  • @jwspock1690
    @jwspock1690 Рік тому

    tnx for the video

  • @djamolmukhtarov3328
    @djamolmukhtarov3328 7 місяців тому

    We need lots s of videos from you plz, everything about Linux for system engineers

  • @rcdenis1
    @rcdenis1 Рік тому

    lnav can be a very handy tool, I use it all the time.

  • @canahmetbe
    @canahmetbe Рік тому

    Thanks. Could you make a video about NIC Teaming in Ubuntu please?

  • @michaelwaterman3553
    @michaelwaterman3553 Рік тому +1

    Great video and explanation again! @jay would you consider a video on an unattended installation of Ubuntu using preseed?

  • @georgehope5477
    @georgehope5477 Рік тому

    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?

  • @JohanEkelund84
    @JohanEkelund84 Рік тому +1

    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!

    • @0eieiei
      @0eieiei Рік тому +1

      Virtual machines, my guy. Linode. There's videos on all of it.

  • @andreas_tech
    @andreas_tech Рік тому

    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

  • @G.T828
    @G.T828 Рік тому

    Do a systemV tutorial as well please

  • @ElreyRayo
    @ElreyRayo Рік тому

    Wow!

  • @2mustange
    @2mustange Рік тому +1

    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.

    • @HanTrio
      @HanTrio Рік тому +3

      Alternatively, you can also press "F" (capital f) when using less, or open a file in "follow mode" with less +F /path/to/file

  • @voiceoftreason1760
    @voiceoftreason1760 Рік тому +2

    how do you get the green glow around your terminal?

    • @LearnLinuxTV
      @LearnLinuxTV  Рік тому +4

      That’s done in post processing. It’s not actually like that in real life.

  • @WillsJazzLoft
    @WillsJazzLoft Рік тому

    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

  • @thesilentgeneration
    @thesilentgeneration 7 місяців тому

    I just recently installed Mint and the OS did prompt me after installation to add Nvidia and I did so with no problem.

  • @dontmindbeingblindd
    @dontmindbeingblindd Рік тому

    I have an arch vm. Would it have logs as well?

    • @deprimarvin5382
      @deprimarvin5382 Рік тому

      Essentially every Linux distribution has logs.
      Arch uses systemd, so most logs can be viewed with journalctl.

  • @WorldWorrier3273
    @WorldWorrier3273 Рік тому

    Hello brother, please explain halt cmd🤔

  • @daredevil6145
    @daredevil6145 Рік тому

    12:03