{"id":1620,"date":"2011-11-12T15:45:38","date_gmt":"2011-11-12T13:45:38","guid":{"rendered":"http:\/\/www.karadere.com\/blog\/?p=1620"},"modified":"2011-11-12T15:45:38","modified_gmt":"2011-11-12T13:45:38","slug":"ubuntu-ile-log-dosyasina-shell-terminal-command-prompt-tan-bakmak-ubuntu-sistem-hata-loglarini-incelemek","status":"publish","type":"post","link":"https:\/\/www.karadere.com\/blog\/ubuntu-ile-log-dosyasina-shell-terminal-command-prompt-tan-bakmak-ubuntu-sistem-hata-loglarini-incelemek.html","title":{"rendered":"Ubuntu ile log dosyas\u0131na shell  terminal command prompt tan bakmak. Ubuntu sistem hata loglar\u0131n\u0131 incelemek."},"content":{"rendered":"<div>\n<address>Merhabalar shell den log dosyas\u0131n\u0131n i\u00e7ine bakmak nas\u0131l yap\u0131l\u0131r\u0131 inceliyece\u011fiz.<\/address>\n<p>a\u015fa\u011f\u0131daki komutlar linx ve unix \u00e7ilerin eli aya\u011f\u0131d\u0131r diyebiliriz. \u00a0<\/p>\n<p><strong>Use tail, more, less and grep command.<\/strong><br \/>\n<strong><code>tail -f \/var\/log\/apport.log<br \/>\nmore \/var\/log\/xorg.0.log<br \/>\ncat \/var\/log\/mysql.err<br \/>\nless \/var\/log\/messages<br \/>\ngrep -i fail \/var\/log\/boot<\/code><\/strong><\/p>\n<p><strong><code><\/code><\/strong>\u00a0<\/p>\n<h1>Ubuntu sistem loglar\u0131n\u0131 incelemek<\/h1>\n<\/div>\n<div>\n<div>\u00a0<\/div>\n<p><strong>Q<\/strong>. Can you explain me log files in Ubuntu Linux and how do I view logs?<\/p>\n<p><strong>A. <\/strong>All logs are stored in \/var\/log directory under Ubuntu (and other Linux distro).<\/p>\n<h2>Linux Log dosyalar\u0131 ve\u00a0kullan\u0131mlar\u0131 a\u015fa\u011f\u0131daki gibidir<\/h2>\n<p>=&gt; <strong>\/var\/log\/messages<\/strong> : General log messages<\/p>\n<p>=&gt; <strong>\/var\/log\/boot<\/strong> : System boot log<\/p>\n<p>=&gt; <strong>\/var\/log\/debug<\/strong> : Debugging log messages<\/p>\n<p>=&gt; <strong>\/var\/log\/auth.log<\/strong> : User login and authentication logs<\/p>\n<p>=&gt; <strong>\/var\/log\/daemon.log<\/strong> : Running services such as squid, ntpd and others log message to this file<\/p>\n<p>=&gt; <strong>\/var\/log\/dmesg<\/strong> : Linux kernel ring buffer log<\/p>\n<p>=&gt; <strong>\/var\/log\/dpkg.log<\/strong> : All binary package log includes package installation and other information<\/p>\n<p>=&gt; <strong>\/var\/log\/faillog<\/strong> : User failed login log file<\/p>\n<p>=&gt; <strong>\/var\/log\/kern.log<\/strong> : Kernel log file<\/p>\n<p>=&gt; <strong>\/var\/log\/lpr.log<\/strong> : Printer log file<\/p>\n<p>=&gt; <strong>\/var\/log\/mail.*<\/strong> : All mail server message log files<\/p>\n<p>=&gt; <strong>\/var\/log\/mysql.*<\/strong> : MySQL server log file<\/p>\n<p>=&gt; <strong>\/var\/log\/user.log<\/strong> : All userlevel logs<\/p>\n<p>=&gt; <strong>\/var\/log\/xorg.0.log<\/strong> : X.org log file<\/p>\n<p>=&gt; <strong>\/var\/log\/apache2\/*<\/strong> : Apache web server log files directory<\/p>\n<p>=&gt; <strong>\/var\/log\/lighttpd\/*<\/strong> : Lighttpd web server log files directory<\/p>\n<p>=&gt; <strong>\/var\/log\/fsck\/*<\/strong> : fsck command log<\/p>\n<p>=&gt; <strong>\/var\/log\/apport.log<\/strong> : Application crash report \/ log file<\/p>\n<blockquote>\n<h2><strong>To view log files at shell prompt<\/strong><\/h2>\n<p><strong>Use tail, more, less and grep command.<\/strong><br \/>\n<strong><code>tail -f \/var\/log\/apport.log<br \/>\nmore \/var\/log\/xorg.0.log<br \/>\ncat \/var\/log\/mysql.err<br \/>\nless \/var\/log\/messages<br \/>\ngrep -i fail \/var\/log\/boot<\/code><\/strong><\/p><\/blockquote>\n<h2>View log files using GUI tools using the GNOME System Log Viewer<\/h2>\n<p>System Log Viewer is a graphical, menu-driven viewer that you can use to view and monitor your system logs. System Log Viewer comes with a few functions that can help you manage your logs, including a calendar, log monitor and log statistics display. System Log Viewer is useful if you are new to system administration because it provides an easier, more user-friendly display of your logs than a text display of the log file. It is also useful for more experienced administrators, as it contains a calendar to help you locate trends and track problems, as well as a monitor to enable you to continuously monitor crucial logs.<\/p>\n<p>You can start System Log Viewer in the following ways:<\/p>\n<p>Click on System menu &gt; Choose Administration &gt; System Log:<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Kaynak \/ Source : <a href=\"http:\/\/www.cyberciti.biz\/faq\/ubuntu-linux-gnome-system-log-viewer\/\">http:\/\/www.cyberciti.biz\/faq\/ubuntu-linux-gnome-system-log-viewer\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu ile log dosyas\u0131na shell  terminal command prompt tan bakmak. Ubuntu sistem hata loglar\u0131n\u0131 incelemek.<br \/>\nMerhabalar shell den log dosyas\u0131n\u0131n i\u00e7ine bakmak nas\u0131l yap\u0131l\u0131r\u0131 inceliyece\u011fiz. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[59],"tags":[708,1731,1896,2060,2120],"class_list":["post-1620","post","type-post","status-publish","format-standard","hentry","category-ubuntu","tag-command","tag-prompt","tag-shell","tag-terminal","tag-ubuntu","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"views":2157,"_links":{"self":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/1620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/comments?post=1620"}],"version-history":[{"count":0,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/1620\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/media?parent=1620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/categories?post=1620"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/tags?post=1620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}