Linux Log Files & Locations Plus Usage
Page 1 of 1
Linux Log Files & Locations Plus Usage
- Code:
cd /var/log
To view a common log file called /var/log/messages use any one of the following command:
- Code:
less /var/log/messages
more -f /var/log/messages
cat /var/log/messages
tail -f /var/log/messages
grep -i error /var/log/messages
Common Linux log files
names and usage
/var/log/messages : General message and system related stuff
/var/log/auth.log : Authenication logs
/var/log/kern.log : Kernel logs
/var/log/cron.log : Crond logs (cron job)
/var/log/maillog : Mail server logs
/var/log/qmail/ : Qmail log directory (more files inside this directory)
/var/log/httpd/ : Apache access and error logs directory
/var/log/lighttpd/ : Lighttpd access and error logs directory
/var/log/boot.log : System boot log
/var/log/mysqld.log : MySQL database server log file
/var/log/secure or /var/log/auth.log : Authentication log
/var/log/utmp or /var/log/wtmp : Login records file
/var/log/yum.log : Yum command log file.
A note about rsyslogd
All of the above logs are generated using rsyslogd service. It is a system utility providing support for message logging. Support of both internet and unix domain sockets enables this utility to support both local and remote logging. You can view its config file by tying the following command:
- Code:
vi /etc/rsyslog.conf
ls /etc/rsyslog.d/
cyberciti.biz/faq/linux-log-files-location-and-how-do-i-view-logs-files
More
google.co.uk/#safe=off&q=all+log+files+for+linux
Similar topics
» FTP Files From Linux With Bash
» ffmpeg usage for linux
» use linux command line to split files into 7z files
» how to install .jar files on linux
» Linux Mint 13 Files
» ffmpeg usage for linux
» use linux command line to split files into 7z files
» how to install .jar files on linux
» Linux Mint 13 Files
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum