{"id":97,"date":"2016-06-21T08:55:52","date_gmt":"2016-06-21T07:55:52","guid":{"rendered":"http:\/\/www.kneefel-ict.nl\/?post_type=kbe_knowledgebase&#038;p=97"},"modified":"2016-07-13T09:49:41","modified_gmt":"2016-07-13T08:49:41","slug":"modify-path-for-iis-and-sharepoint-logging","status":"publish","type":"kbe_knowledgebase","link":"https:\/\/www.kneefel-ict.nl\/en\/knowledgebase\/modify-path-for-iis-and-sharepoint-logging\/","title":{"rendered":"Modify path for IIS and SharePoint logging"},"content":{"rendered":"<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\n$IISLoggingPath  = &quot;D:\\logs\\IIS&quot;\r\n$SPDiagnosticsLoggingPath  = &quot;D:\\logs\\Diagnostics&quot;\r\n$SPUsageLoggingPath  = &quot;D:\\logs\\Usage&quot;\r\n$SPLogDiskSpaceUsageGB  = 30\r\n\r\nif (!(Test-Path -path $IISLoggingPath)) { New-Item -ItemType directory -Path $IISLoggingPath | out-null}\r\nif (!(Test-Path -path $SPDiagnosticsLoggingPath)) { New-Item -ItemType directory -Path $SPDiagnosticsLoggingPath | out-null}\r\nif (!(Test-Path -path $SPUsageLoggingPath)) { New-Item -ItemType directory -Path $SPUsageLoggingPath | out-null}\r\n\r\nset-SPDiagnosticConfig -LogLocation $SPDiagnosticsLoggingPath -LogDiskSpaceUsageGB $SPLogDiskSpaceUsageGB\r\nset-SPUsageService -UsageLogLocation $SPUsageLoggingPath\r\n\r\nSet-WebConfigurationProperty &quot;\/system.applicationHost\/sites\/siteDefaults&quot; -name logfile.directory -value $IISLoggingPath\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>$IISLoggingPath = &quot;D:\\logs\\IIS&quot; $SPDiagnosticsLoggingPath = &quot;D:\\logs\\Diagnostics&quot; $SPUsageLoggingPath = &quot;D:\\logs\\Usage&quot; $SPLogDiskSpaceUsageGB = 30 if (!(Test-Path -path $IISLoggingPath)) { New-Item -ItemType directory -Path $IISLoggingPath | out-null} if (!(Test-Path -path $SPDiagnosticsLoggingPath)) { New-Item -ItemType directory -Path $SPDiagnosticsLoggingPath | out-null} if (!(Test-Path -path $SPUsageLoggingPath)) { New-Item -ItemType directory -Path $SPUsageLoggingPath | out-null} set-SPDiagnosticConfig -LogLocation $SPDiagnosticsLoggingPath -LogDiskSpaceUsageGB $SPLogDiskSpaceUsageGB set-SPUsageService -UsageLogLocation &hellip; <a href=\"https:\/\/www.kneefel-ict.nl\/en\/knowledgebase\/modify-path-for-iis-and-sharepoint-logging\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Modify path for IIS and SharePoint logging&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","kbe_taxonomy":[5],"kbe_tags":[12,29,10,11],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Modify path for IIS and SharePoint logging - Kneefel ICT B.V.<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.kneefel-ict.nl\/en\/knowledgebase\/modify-path-for-iis-and-sharepoint-logging\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Modify path for IIS and SharePoint logging - Kneefel ICT B.V.\" \/>\n<meta property=\"og:description\" content=\"$IISLoggingPath = &quot;D:logsIIS&quot; $SPDiagnosticsLoggingPath = &quot;D:logsDiagnostics&quot; $SPUsageLoggingPath = &quot;D:logsUsage&quot; $SPLogDiskSpaceUsageGB = 30 if (!(Test-Path -path $IISLoggingPath)) { New-Item -ItemType directory -Path $IISLoggingPath | out-null} if (!(Test-Path -path $SPDiagnosticsLoggingPath)) { New-Item -ItemType directory -Path $SPDiagnosticsLoggingPath | out-null} if (!(Test-Path -path $SPUsageLoggingPath)) { New-Item -ItemType directory -Path $SPUsageLoggingPath | out-null} set-SPDiagnosticConfig -LogLocation $SPDiagnosticsLoggingPath -LogDiskSpaceUsageGB $SPLogDiskSpaceUsageGB set-SPUsageService -UsageLogLocation &hellip; Continue reading &quot;Modify path for IIS and SharePoint logging&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.kneefel-ict.nl\/en\/knowledgebase\/modify-path-for-iis-and-sharepoint-logging\/\" \/>\n<meta property=\"og:site_name\" content=\"Kneefel ICT B.V.\" \/>\n<meta property=\"article:modified_time\" content=\"2016-07-13T08:49:41+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.kneefel-ict.nl\/en\/knowledgebase\/modify-path-for-iis-and-sharepoint-logging\/\",\"url\":\"https:\/\/www.kneefel-ict.nl\/en\/knowledgebase\/modify-path-for-iis-and-sharepoint-logging\/\",\"name\":\"Modify path for IIS and SharePoint logging - Kneefel ICT B.V.\",\"isPartOf\":{\"@id\":\"https:\/\/kneefel-ict.nl\/#website\"},\"datePublished\":\"2016-06-21T07:55:52+00:00\",\"dateModified\":\"2016-07-13T08:49:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.kneefel-ict.nl\/en\/knowledgebase\/modify-path-for-iis-and-sharepoint-logging\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.kneefel-ict.nl\/en\/knowledgebase\/modify-path-for-iis-and-sharepoint-logging\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.kneefel-ict.nl\/en\/knowledgebase\/modify-path-for-iis-and-sharepoint-logging\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kneefel-ict.nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledgebase\",\"item\":\"https:\/\/kneefel-ict.nl\/en\/knowledgebase\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Modify path for IIS and SharePoint logging\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kneefel-ict.nl\/#website\",\"url\":\"https:\/\/kneefel-ict.nl\/\",\"name\":\"Kneefel ICT B.V.\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kneefel-ict.nl\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kneefel-ict.nl\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kneefel-ict.nl\/#organization\",\"name\":\"Kneefel ICT B.V.\",\"url\":\"https:\/\/kneefel-ict.nl\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kneefel-ict.nl\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i1.wp.com\/www.kneefel-ict.nl\/wp-content\/uploads\/2016\/01\/logo_kneefel-ict-1200x280dpi.jpg?fit=1200%2C280&ssl=1\",\"contentUrl\":\"https:\/\/i1.wp.com\/www.kneefel-ict.nl\/wp-content\/uploads\/2016\/01\/logo_kneefel-ict-1200x280dpi.jpg?fit=1200%2C280&ssl=1\",\"width\":1200,\"height\":280,\"caption\":\"Kneefel ICT B.V.\"},\"image\":{\"@id\":\"https:\/\/kneefel-ict.nl\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Modify path for IIS and SharePoint logging - Kneefel ICT B.V.","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":"https:\/\/www.kneefel-ict.nl\/en\/knowledgebase\/modify-path-for-iis-and-sharepoint-logging\/","og_locale":"en_US","og_type":"article","og_title":"Modify path for IIS and SharePoint logging - Kneefel ICT B.V.","og_description":"$IISLoggingPath = &quot;D:logsIIS&quot; $SPDiagnosticsLoggingPath = &quot;D:logsDiagnostics&quot; $SPUsageLoggingPath = &quot;D:logsUsage&quot; $SPLogDiskSpaceUsageGB = 30 if (!(Test-Path -path $IISLoggingPath)) { New-Item -ItemType directory -Path $IISLoggingPath | out-null} if (!(Test-Path -path $SPDiagnosticsLoggingPath)) { New-Item -ItemType directory -Path $SPDiagnosticsLoggingPath | out-null} if (!(Test-Path -path $SPUsageLoggingPath)) { New-Item -ItemType directory -Path $SPUsageLoggingPath | out-null} set-SPDiagnosticConfig -LogLocation $SPDiagnosticsLoggingPath -LogDiskSpaceUsageGB $SPLogDiskSpaceUsageGB set-SPUsageService -UsageLogLocation &hellip; Continue reading \"Modify path for IIS and SharePoint logging\"","og_url":"https:\/\/www.kneefel-ict.nl\/en\/knowledgebase\/modify-path-for-iis-and-sharepoint-logging\/","og_site_name":"Kneefel ICT B.V.","article_modified_time":"2016-07-13T08:49:41+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.kneefel-ict.nl\/en\/knowledgebase\/modify-path-for-iis-and-sharepoint-logging\/","url":"https:\/\/www.kneefel-ict.nl\/en\/knowledgebase\/modify-path-for-iis-and-sharepoint-logging\/","name":"Modify path for IIS and SharePoint logging - Kneefel ICT B.V.","isPartOf":{"@id":"https:\/\/kneefel-ict.nl\/#website"},"datePublished":"2016-06-21T07:55:52+00:00","dateModified":"2016-07-13T08:49:41+00:00","breadcrumb":{"@id":"https:\/\/www.kneefel-ict.nl\/en\/knowledgebase\/modify-path-for-iis-and-sharepoint-logging\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.kneefel-ict.nl\/en\/knowledgebase\/modify-path-for-iis-and-sharepoint-logging\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.kneefel-ict.nl\/en\/knowledgebase\/modify-path-for-iis-and-sharepoint-logging\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kneefel-ict.nl\/"},{"@type":"ListItem","position":2,"name":"Knowledgebase","item":"https:\/\/kneefel-ict.nl\/en\/knowledgebase\/"},{"@type":"ListItem","position":3,"name":"Modify path for IIS and SharePoint logging"}]},{"@type":"WebSite","@id":"https:\/\/kneefel-ict.nl\/#website","url":"https:\/\/kneefel-ict.nl\/","name":"Kneefel ICT B.V.","description":"","publisher":{"@id":"https:\/\/kneefel-ict.nl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kneefel-ict.nl\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kneefel-ict.nl\/#organization","name":"Kneefel ICT B.V.","url":"https:\/\/kneefel-ict.nl\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kneefel-ict.nl\/#\/schema\/logo\/image\/","url":"https:\/\/i1.wp.com\/www.kneefel-ict.nl\/wp-content\/uploads\/2016\/01\/logo_kneefel-ict-1200x280dpi.jpg?fit=1200%2C280&ssl=1","contentUrl":"https:\/\/i1.wp.com\/www.kneefel-ict.nl\/wp-content\/uploads\/2016\/01\/logo_kneefel-ict-1200x280dpi.jpg?fit=1200%2C280&ssl=1","width":1200,"height":280,"caption":"Kneefel ICT B.V."},"image":{"@id":"https:\/\/kneefel-ict.nl\/#\/schema\/logo\/image\/"}}]}},"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.kneefel-ict.nl\/en\/wp-json\/wp\/v2\/kbe_knowledgebase\/97"}],"collection":[{"href":"https:\/\/www.kneefel-ict.nl\/en\/wp-json\/wp\/v2\/kbe_knowledgebase"}],"about":[{"href":"https:\/\/www.kneefel-ict.nl\/en\/wp-json\/wp\/v2\/types\/kbe_knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/www.kneefel-ict.nl\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kneefel-ict.nl\/en\/wp-json\/wp\/v2\/comments?post=97"}],"version-history":[{"count":1,"href":"https:\/\/www.kneefel-ict.nl\/en\/wp-json\/wp\/v2\/kbe_knowledgebase\/97\/revisions"}],"predecessor-version":[{"id":98,"href":"https:\/\/www.kneefel-ict.nl\/en\/wp-json\/wp\/v2\/kbe_knowledgebase\/97\/revisions\/98"}],"wp:attachment":[{"href":"https:\/\/www.kneefel-ict.nl\/en\/wp-json\/wp\/v2\/media?parent=97"}],"wp:term":[{"taxonomy":"kbe_taxonomy","embeddable":true,"href":"https:\/\/www.kneefel-ict.nl\/en\/wp-json\/wp\/v2\/kbe_taxonomy?post=97"},{"taxonomy":"kbe_tags","embeddable":true,"href":"https:\/\/www.kneefel-ict.nl\/en\/wp-json\/wp\/v2\/kbe_tags?post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}