{"id":2396,"date":"2011-09-20T14:43:21","date_gmt":"2011-09-20T18:43:21","guid":{"rendered":"https:\/\/webhostinggeeks.com\/blog\/?p=2396"},"modified":"2011-09-20T14:43:21","modified_gmt":"2011-09-20T18:43:21","slug":"linux-server-logs-explained","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/blog\/linux-server-logs-explained\/","title":{"rendered":"Linux Server Logs Explained"},"content":{"rendered":"<p>It\u2019s a jungle out there, and when things go wrong in web hosting, they often go terribly wrong. It\u2019s a tragic fact of life that not all technology is full-proof (or fool-proof) but just because you\u2019ve encountered a problem doesn\u2019t mean it\u2019s the end of the world. In fact, with the handy help of a little bit of Linux log files, you\u2019ll soon have your system right as rain!<\/p>\n<p><strong>What Are Log Files?<\/strong><\/p>\n<p>Log files are essentially transcripts of all the processes that are run underneath your operating system. They track what scripts are initiated, as well as how each initiation goes. If there\u2019s an error that occurs, the log will say what kind of error it was, when it occurred, and what process caused the issue. A good way to think about logs is to imagine them as tiny memos for meetings within your operating system. They function in a similar manner, and they\u2019re every bit as helpful.<\/p>\n<p>The logs we\u2019ll be talking about here are standard for most Linux operating system varieties\u2014If you\u2019re using a <a href=\"https:\/\/webhostinggeeks.com\/best-windows-hosting\">Windows-based server<\/a>, you\u2019ll have to look elsewhere for information specific to your platform. However, no matter what Linux branch you\u2019re running, you can expect to find most, if not all, of the files we mention. This is inherent to the way the operating system is constructed, and is yet another boon for using Linux on your servers.<\/p>\n<p><strong>Where Are The Logs, And What Do They Do?<\/strong><\/p>\n<p>All of the log files we\u2019ll be mentioning can be found under the \/var\/log section of your <a href=\"https:\/\/webhostinggeeks.com\/best-unix-hosting\">hosting Linux server<\/a>. Within this directory, you\u2019ll see a number of files, including the following, which we\u2019ll explain:<\/p>\n<p><strong>boot:<\/strong> This here\u2019s the log file for every time your server has been booted. If you\u2019ve recently needed to reset or reboot your hardware, and encountered an error during the process, check here to find out exactly what went wrong.<\/p>\n<p><strong>daemon:<\/strong> A daemon is a specialized script that runs in the background without your input. This file shows you exactly which daemons have been called recently, as well as how they\u2019ve been performing.<\/p>\n<p><strong>auth:<\/strong> This is an important one. Within this log you can track how many times users have connected to your server, as well as when they did so. More importantly, you can track how many times a user failed to log-in correctly, helping you keep an eye open for any unwanted intruders.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It\u2019s a jungle out there, and when things go wrong in web hosting, they often go terribly wrong. It\u2019s a tragic fact of life that not all technology is full-proof&#8230;<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2601],"tags":[2933,2931,2932,3926,61],"class_list":["post-2396","post","type-post","status-publish","format-standard","hentry","category-webmaster-resources","tag-auth","tag-boot","tag-daemon","tag-files","tag-linux"],"views":124,"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/blog\/wp-json\/wp\/v2\/posts\/2396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/blog\/wp-json\/wp\/v2\/comments?post=2396"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/blog\/wp-json\/wp\/v2\/posts\/2396\/revisions"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/blog\/wp-json\/wp\/v2\/media?parent=2396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/blog\/wp-json\/wp\/v2\/categories?post=2396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/blog\/wp-json\/wp\/v2\/tags?post=2396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}