{"id":1906,"date":"2010-11-14T19:37:57","date_gmt":"2010-11-14T19:37:57","guid":{"rendered":"http:\/\/www.icocean.com\/blog\/?p=1906"},"modified":"2010-11-14T19:40:06","modified_gmt":"2010-11-14T19:40:06","slug":"%E6%9F%A5%E7%9C%8Bubuntu%E7%9A%84log","status":"publish","type":"post","link":"https:\/\/www.icocean.com\/blog\/?p=1906","title":{"rendered":"\u67e5\u770bubuntu\u7684log"},"content":{"rendered":"<p>Q. Can you explain me log files in Ubuntu Linux and how do I view logs?<br \/>A. All logs are stored in \/var\/log directory under Ubuntu (and other Linux distro).<\/p>\n<p>Linux Log files and usage<\/p>\n<p>=> \/var\/log\/messages : General log messages<br \/>=> \/var\/log\/boot : System boot log<br \/>=> \/var\/log\/debug : Debugging log messages<br \/>=> \/var\/log\/auth.log : User login and authentication logs<br \/>=> \/var\/log\/daemon.log : Running services such as squid, ntpd and others log message to this file<br \/>=> \/var\/log\/dmesg : Linux kernel ring buffer log<br \/>=> \/var\/log\/dpkg.log : All binary package log includes package installation and other information<br \/>=> \/var\/log\/faillog : User failed login log file<br \/>=> \/var\/log\/kern.log : Kernel log file<br \/>=> \/var\/log\/lpr.log : Printer log file<br \/>=> \/var\/log\/mail.* : All mail server message log files<br \/>=> \/var\/log\/mysql.* : MySQL server log file<br \/>=> \/var\/log\/user.log : All userlevel logs<br \/>=> \/var\/log\/xorg.0.log : X.org log file<br \/>=> \/var\/log\/apache2\/* : Apache web server log files directory<br \/>=> \/var\/log\/lighttpd\/* : Lighttpd web server log files directory<br \/>=> \/var\/log\/fsck\/* : fsck command log<br \/>=> \/var\/log\/apport.log : Application crash report \/ log file<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Q. Can you explain me log files in Ubuntu Linux and how <a href='https:\/\/www.icocean.com\/blog\/?p=1906' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[434,3060,595],"class_list":["post-1906","post","type-post","status-publish","format-standard","hentry","category-linuxunix","tag-linux","tag-logfile","tag-ubuntu","category-16-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1906","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1906"}],"version-history":[{"count":0,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1906\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1906"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1906"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}