Debian Error Log File
Contents |
2014 in Commands, File system, LinuxI am a new Linux debian log file rotation user. I would like to know where are the
Debian System Log File
log files located under Debian/Ubuntu or CentOS/RHEL/Fedora Linux server? How do I open or debian cron log file view log files on Linux operating systems? Almost all logfiles are located under /var/log directory and its sub-directories on Linux. You can change
Debian Php Error Log
to this directory using the cd command. You need be the root user to view or access log files on Linux or Unix like operating systems. You can use the following commands to see the log files:less commandmore commandcat commandgrep commandtail commandzcat commandzgrep commandzmore commandHow debian apache error log do I view log files on Linux?Open the Terminal or login as root user using ssh command. Go to /var/log directory using the following cd command: # cd /var/log
To list files use the following ls command: # ls Sample outputs from RHEL 6.x server:anaconda.ifcfg.log boot.log-20111225 cron-20131110.gz maillog-20111218 messages-20131103.gz secure-20131027.gz spooler-20131117.gz up2date-20131117.gz anaconda.log btmp cron-20131117.gz maillog-20111225 messages-20131110.gz secure-20131103.gz squid uptrack.log anaconda.program.log btmp-20120101 cups maillog-20120101 messages-20131117.gz secure-20131110.gz swinstall.d uptrack.log.1 anaconda.storage.log btmp-20131101.gz dkms_autoinstaller maillog-20131027.gz mysqld.log secure-20131117.gz tallylog uptrack.log.2 anaconda.syslog collectl dmesg maillog-20131103.gz ntpstats setroubleshoot UcliEvt.log varnish anaconda.yum.log ConsoleKit dmesg.old maillog-20131110.gz prelink spooler up2date wtmp arcconfig.xml cron dracut.log maillog-20131117.gz rhsm spooler-20111211 up2date-20111211 yum.log atop cron-20111211 dracut.log-20120101 messages sa spooler-20111218 up2date-20111218 yum.log-20120101 audit cron-20111218 dracut.log-20130101.gz messages-20111211 secure spooler-20111225 up2date-20111225 yum.log-20130101.gz boot.log cron-20111225 httpd messages-20111218 secure-20111211 spooler-20120101 up2date-20120101 boot.log-20111204 cron-20120101 lastlog messages-20111225 secure-20111218 spooler-20131027.gz up2date-20131027.gz boot.log-20111211 cron-20131027.gz maillog messages-20120101 secure-2011that make it easy to view logfiles. The most important command is "tail". Tail can be used to read the last lines from a file. Examples: Get the last 100
Debian Logfile
lines from the Debian mail log file: tail -n 100 /var/log/mail.log To get
Ubuntu Php Error Logs
all newly added lines from a log file in realtime on the shell, use the command: tail -f /var/log/mail.log to quit how to check logs in linux server tail and go back to the commanline press the keys [ctrl] + [c] If you want to get the last 1000 lines from a log file and they do not fit into your shell http://www.cyberciti.biz/faq/linux-log-files-location-and-how-do-i-view-logs-files/ window, you can use the command "more" to be able to view them line by line. tail -n 1000 /var/log/mail.log | more press [space] to go to the next line or [ctrl] + [c] to quit. If you want to search for a specific term in a large file, the command "grep" comes in handy. Example: We search for the email address "[emailprotected]" in the mail log file: grep http://www.faqforge.com/linux/distributions/debian/linux-how-to-view-log-files-on-the-shell/ "[emailprotected]" /var/log/mail.log If you want to view the whole content of file on the shell, use the command "cat". Example: cat /proc/cpuinfo will show you detailed info about the CPU of your computer. Till Basics, Debian, Ubuntu No Comments ← Where is the ISPConfig roadmap? Linux: Get detailed information about server hardware and partitions on the shell → Leave a Reply Cancel reply Your email address will not be published. Required fields are marked *Comment Name * Email * Website CAPTCHA-Code Search Categories Basics CentOS Controlpanels Debian Distributions Email FTP iPad & iPhone ISPConfig 2 ISPConfig 3 Linux & Unix Mac OS X MySQL PostgreSQL Programming Server Ubuntu Uncategorized Virtualisation Vista Webserver Windows Windows 10 Windows 7 Windows 8 XP Tags7 apache boot change consumer Debian default delete desktop disable error files Firefox install ISPConfig 2 ISPConfig 3 key Linux & Unix Linux & Unix manager menu metro mint MySQL OpenVZ password postfix powershell preview registry remove screen script search Shell startup system Thunderbird Ubuntu virtualbox Vista Windows Windows 7 Windows 8 XP Pages Imprint Copyright © 2016 FAQforge. Powered by WordPress. Theme: Spacious by ThemeGrill. We use cookies to ensure that we give you the best experience on our website. If you co
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn http://unix.stackexchange.com/questions/115972/how-do-i-find-where-apache-keeps-the-log-files more about Stack Overflow the company Business Learn more about hiring developers or posting http://www.thegeekstuff.com/2011/08/linux-var-log-files ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer error log The best answers are voted up and rise to the top How do I find where Apache keeps the log files? up vote 7 down vote favorite 3 I need to find where Apache is keeping the access and error logs for a site. I have root access to a server where dozens of sites are hosted. I'm trying to debug one of those sites. When I browse the site, it php error log doesn't show up on /var/logs/apache2/access.log or /var/logs/apache2/error.log. (The files are there, and other sites gets logged on those. In fact, there are hundreds of different log files). Neither locate httpd.log nor find . -iname httpd.log performed at / issue any results. The apache configuration for the site is: ServerName REDACTED.com.br DocumentRoot /var/www/xyz/wiki AssignUserId xyz_wiki xyz_wiki
know where the log files are located, and what is contained in each and every log file. When your systems are running smoothly, take some time to learn and understand the content of various log files, which will help you when there is a crisis and you have to look though the log files to identify the issue. /etc/rsyslog.conf controls what goes inside some of the log files. For example, following is the entry in rsyslog.conf for /var/log/messages. $ grep "/var/log/messages" /etc/rsyslog.conf *.info;mail.none;authpriv.none;cron.none /var/log/messages In the above output, *.info indicates that all logs with type INFO will be logged. mail.none,authpriv.none,cron.none indicates that those error messages should not be logged into the /var/log/messages file. You can also specify *.none, which indicates that none of the log messages will be logged. The following are the 20 different log files that are located under /var/log/ directory. Some of these log files are distribution specific. For example, you'll see dpkg.log on Debian based systems (for example, on Ubuntu). /var/log/messages - Contains global system messages, including the messages that are logged during system startup. There are several things that are logged in /var/log/messages including mail, cron, daemon, kern, auth, etc. /var/log/dmesg - Contains kernel ring buffer information. When the system boots up, it prints number of messages on the screen that displays information about the hardware devices that the kernel detects during boot process. These messages are available in kernel ring buffer and whenever the new message comes the old message gets overwritten. You can also view the content of this file using the dmesg command. /var/log/auth.log - Contains system authorization information, including user logins and authentication machinsm that were used. /var/log/boot.log