{"id":524,"date":"2009-06-20T15:43:00","date_gmt":"2009-06-20T15:43:00","guid":{"rendered":"https:\/\/brainlitter.itgroove.net\/2009\/06\/20\/clearing-iis-logfiles-disk-space-on-windows-servers\/"},"modified":"2009-06-20T15:43:00","modified_gmt":"2009-06-20T15:43:00","slug":"clearing-iis-logfiles-disk-space-on-windows-servers","status":"publish","type":"post","link":"https:\/\/regroove.ca\/brainlitter\/2009\/06\/20\/clearing-iis-logfiles-disk-space-on-windows-servers\/","title":{"rendered":"Clearing (IIS Logfiles) Disk Space on Windows Servers"},"content":{"rendered":"<div class=\"ExternalClassC79DE32689314149833037BBEDAE93CC\">\n<p>Although there are a number of techniques and places to look to clear disk space on a Windows server, including pruning SQL transaction logs, removing HIBERFIL.SYS, moving the pagefile to another drive, one of the most effective I&#8217;ve found has been removing HTTP logs that get accumulated daily (particularly if you have turned logging on, which is a good thing, except for the space that it takes \u2013 the logging is useful for troubleshooting something that has happened in the past and also, statistics software such as WebTrends and SmarterStats rely on these logs to produce their results). <\/p>\n<p>\u00a0<\/p>\n<h1>Windows Server 2000\/2003 <\/h1>\n<ul>\n<li>Logfiles are here by default \u2013 %SystemDrive%windowssystem32logfiles <\/li>\n<\/ul>\n<p>\u00a0<\/p>\n<h1>Windows Server 2008 <\/h1>\n<ul>\n<li>The default location for IIS Logfiles has been moved here &#8211; %SystemDrive%inetpublogsLogFiles <\/li>\n<\/ul>\n<p>\u00a0<\/p>\n<p>If the customer doesn&#8217;t care about logging<span><strong>*<\/strong><\/span> (we still do, for troubleshooting), it is safe to delete all of the logfiles in the various subdirectories. And in some cases, for a server that has been logging every day and is very active with OWA, etc., there can be hundreds or thousands of logs from 10k to 5mb in size or more. I always sort the folder by date and then shift+delete all of the entries, *except* for the latest (today) as it will be locked (in use). <\/p>\n<p>\u00a0<\/p>\n<p><span style=\"color:#1f497d;font-size:14pt\"><strong>*<\/strong><\/span> If the customer is using IIS analytical software, those logs are very important to them. Particularly in the case of Internet facing, public websites, you may want to be more choosy about logs that you purge \u2013 perhaps only deleting those older than a year, etc.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Although there are a number of techniques and places to look to clear disk space on a Windows server, including pruning SQL transaction logs, removing HIBERFIL.SYS, moving the pagefile to another drive, one of the most effective I&#8217;ve found has been removing HTTP logs that get accumulated daily (particularly if you have turned logging on, &hellip; <a href=\"https:\/\/regroove.ca\/brainlitter\/2009\/06\/20\/clearing-iis-logfiles-disk-space-on-windows-servers\/\"><\/a><\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":"","_jetpack_memberships_contains_paid_content":false},"categories":[433,337,14,325,222,339],"tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Clearing (IIS Logfiles) Disk Space on Windows Servers - Brainlitter - Inside the mind of Sean Wallbridge<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/regroove.ca\/brainlitter\/2009\/06\/20\/clearing-iis-logfiles-disk-space-on-windows-servers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Clearing (IIS Logfiles) Disk Space on Windows Servers - Brainlitter - Inside the mind of Sean Wallbridge\" \/>\n<meta property=\"og:description\" content=\"Although there are a number of techniques and places to look to clear disk space on a Windows server, including pruning SQL transaction logs, removing HIBERFIL.SYS, moving the pagefile to another drive, one of the most effective I&#8217;ve found has been removing HTTP logs that get accumulated daily (particularly if you have turned logging on, &hellip;\" \/>\n<meta property=\"og:url\" content=\"http:\/\/regroove.ca\/brainlitter\/2009\/06\/20\/clearing-iis-logfiles-disk-space-on-windows-servers\/\" \/>\n<meta property=\"og:site_name\" content=\"Brainlitter - Inside the mind of Sean Wallbridge\" \/>\n<meta property=\"article:published_time\" content=\"2009-06-20T15:43:00+00:00\" \/>\n<meta name=\"author\" content=\"Sean Wallbridge\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sean Wallbridge\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/regroove.ca\/brainlitter\/2009\/06\/20\/clearing-iis-logfiles-disk-space-on-windows-servers\/\",\"url\":\"http:\/\/regroove.ca\/brainlitter\/2009\/06\/20\/clearing-iis-logfiles-disk-space-on-windows-servers\/\",\"name\":\"Clearing (IIS Logfiles) Disk Space on Windows Servers - Brainlitter - Inside the mind of Sean Wallbridge\",\"isPartOf\":{\"@id\":\"https:\/\/regroove.ca\/brainlitter\/#website\"},\"datePublished\":\"2009-06-20T15:43:00+00:00\",\"dateModified\":\"2009-06-20T15:43:00+00:00\",\"author\":{\"@id\":\"https:\/\/regroove.ca\/brainlitter\/#\/schema\/person\/74e1c0def190f181c1394c2b6d883e77\"},\"breadcrumb\":{\"@id\":\"http:\/\/regroove.ca\/brainlitter\/2009\/06\/20\/clearing-iis-logfiles-disk-space-on-windows-servers\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/regroove.ca\/brainlitter\/2009\/06\/20\/clearing-iis-logfiles-disk-space-on-windows-servers\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/regroove.ca\/brainlitter\/2009\/06\/20\/clearing-iis-logfiles-disk-space-on-windows-servers\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Brainlitter\",\"item\":\"https:\/\/regroove.ca\/brainlitter\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Clearing (IIS Logfiles) Disk Space on Windows Servers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/regroove.ca\/brainlitter\/#website\",\"url\":\"https:\/\/regroove.ca\/brainlitter\/\",\"name\":\"Brainlitter - Inside the mind of Sean Wallbridge\",\"description\":\"Dad. Husband. Drummer. Learner of Things.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/regroove.ca\/brainlitter\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/regroove.ca\/brainlitter\/#\/schema\/person\/74e1c0def190f181c1394c2b6d883e77\",\"name\":\"Sean Wallbridge\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/regroove.ca\/brainlitter\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/adf8cea6291c39d166616f2148d919a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/adf8cea6291c39d166616f2148d919a6?s=96&d=mm&r=g\",\"caption\":\"Sean Wallbridge\"},\"url\":\"https:\/\/regroove.ca\/brainlitter\/author\/swallbridge\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Clearing (IIS Logfiles) Disk Space on Windows Servers - Brainlitter - Inside the mind of Sean Wallbridge","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/regroove.ca\/brainlitter\/2009\/06\/20\/clearing-iis-logfiles-disk-space-on-windows-servers\/","og_locale":"en_US","og_type":"article","og_title":"Clearing (IIS Logfiles) Disk Space on Windows Servers - Brainlitter - Inside the mind of Sean Wallbridge","og_description":"Although there are a number of techniques and places to look to clear disk space on a Windows server, including pruning SQL transaction logs, removing HIBERFIL.SYS, moving the pagefile to another drive, one of the most effective I&#8217;ve found has been removing HTTP logs that get accumulated daily (particularly if you have turned logging on, &hellip;","og_url":"http:\/\/regroove.ca\/brainlitter\/2009\/06\/20\/clearing-iis-logfiles-disk-space-on-windows-servers\/","og_site_name":"Brainlitter - Inside the mind of Sean Wallbridge","article_published_time":"2009-06-20T15:43:00+00:00","author":"Sean Wallbridge","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Sean Wallbridge","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/regroove.ca\/brainlitter\/2009\/06\/20\/clearing-iis-logfiles-disk-space-on-windows-servers\/","url":"http:\/\/regroove.ca\/brainlitter\/2009\/06\/20\/clearing-iis-logfiles-disk-space-on-windows-servers\/","name":"Clearing (IIS Logfiles) Disk Space on Windows Servers - Brainlitter - Inside the mind of Sean Wallbridge","isPartOf":{"@id":"https:\/\/regroove.ca\/brainlitter\/#website"},"datePublished":"2009-06-20T15:43:00+00:00","dateModified":"2009-06-20T15:43:00+00:00","author":{"@id":"https:\/\/regroove.ca\/brainlitter\/#\/schema\/person\/74e1c0def190f181c1394c2b6d883e77"},"breadcrumb":{"@id":"http:\/\/regroove.ca\/brainlitter\/2009\/06\/20\/clearing-iis-logfiles-disk-space-on-windows-servers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/regroove.ca\/brainlitter\/2009\/06\/20\/clearing-iis-logfiles-disk-space-on-windows-servers\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/regroove.ca\/brainlitter\/2009\/06\/20\/clearing-iis-logfiles-disk-space-on-windows-servers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Brainlitter","item":"https:\/\/regroove.ca\/brainlitter\/"},{"@type":"ListItem","position":2,"name":"Clearing (IIS Logfiles) Disk Space on Windows Servers"}]},{"@type":"WebSite","@id":"https:\/\/regroove.ca\/brainlitter\/#website","url":"https:\/\/regroove.ca\/brainlitter\/","name":"Brainlitter - Inside the mind of Sean Wallbridge","description":"Dad. Husband. Drummer. Learner of Things.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/regroove.ca\/brainlitter\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/regroove.ca\/brainlitter\/#\/schema\/person\/74e1c0def190f181c1394c2b6d883e77","name":"Sean Wallbridge","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/regroove.ca\/brainlitter\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/adf8cea6291c39d166616f2148d919a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/adf8cea6291c39d166616f2148d919a6?s=96&d=mm&r=g","caption":"Sean Wallbridge"},"url":"https:\/\/regroove.ca\/brainlitter\/author\/swallbridge\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/posts\/524"}],"collection":[{"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/comments?post=524"}],"version-history":[{"count":0,"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/posts\/524\/revisions"}],"wp:attachment":[{"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/media?parent=524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/categories?post=524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/tags?post=524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}