Keegan Turner
  • πŸ‘‹Hello World.
  • πŸ“šHow-To Guides
    • Integrating Git on your local host
    • βš–οΈLoad Balancing with HAProxy
    • πŸ‘¨β€πŸ’»Code Server - Self Hosted VSCode alternative
    • πŸ•ΈοΈWordPress + LAMP - Self Hosted CMS
    • ☁️Nextcloud - Self Hosted file sync & sharing solution
    • ⏳Grafana Cloud - Cloud Hosted Monitoring
    • βŒ›Prometheus + Grafana - Self Hosted monitoring stack solution
    • πŸ›³οΈPortainer + Docker - Self Hosted container management UI
    • 🐬MariaDB - Self Hosted database server
    • πŸ€–Let's Encrypt + Certbot - Secure your web services with SSL certificates
    • ◀️Nginx Proxy Manager - Self Hosted domain controller with LE SSL certificates
    • πŸ–₯️LXD - Linux OS containers
    • 🐧Linux basics: commands
    • 🐧Linux basics: file paths
    • 🐧Linux basics: SWAP file
  • 🚫Bytes of Caution
Powered by GitBook
On this page
  1. How-To Guides

Linux basics: file paths

03-05-2024

Linux is a powerful operating system that runs on most servers worldwide. Its important to know where to find system information and log files to troubleshoot, maintain and update your Linux system. I have compiled a list of the most common used log file paths.

General system messages, including kernel messages:

/var/log/messages

Authentication-related messages, including sudo activity and SSH logins:

/var/log/auth.log

Kernel messages. Useful for troubleshooting hardware and driver-related issues:

/var/log/kern.log

Information about the boot process:

/var/log/boot.log

Kernel ring buffer messages. Contains information logged during the boot process:

/var/log/dmesg

Information logged by system daemons such as cron, init, and syslog:

Apache web server access and error logs:

/var/log/apache2/access.log
/var/log/apache2/error.log

Nginx web server access and error logs:

/var/log/nginx/access.log
/var/log/nginx/error.log

MySQL database server error log:

/var/log/mysql/error.log

Authentication-related messages, particularly on systems using the syslog daemon:

/var/log/secure

Mail server log, useful for troubleshooting email-related issues (e.g., Postfix, Sendmail):

/var/log/mail.log

Logs for cron jobs, which include scheduled tasks:

/var/log/cron

Audit log messages. Useful for monitoring security-related events:

/var/log/audit/audit.log

Information about the last login times for users:

/var/log/lastlog

Logs for the Uncomplicated Firewall (UFW) on Ubuntu and Debian systems:

/var/log/ufw.log

Understanding and regularly checking log file paths in Linux is invaluable for system administrators and users alike. These paths offer a window into the inner workings of your system, providing crucial insights into its health, performance, and security.

PreviousLinux basics: commandsNextLinux basics: SWAP file

Last updated 1 year ago

πŸ“š
🐧
Page cover image