{"id":2096,"date":"2018-12-07T09:43:06","date_gmt":"2018-12-07T17:43:06","guid":{"rendered":"http:\/\/k6hr.com\/?p=2096"},"modified":"2023-01-22T17:19:23","modified_gmt":"2023-01-23T01:19:23","slug":"migrating-apache2-log-files","status":"publish","type":"post","link":"http:\/\/k6hr.com\/index.php\/2018\/12\/07\/migrating-apache2-log-files\/","title":{"rendered":"Migrating Apache2 Log Files"},"content":{"rendered":"<h1>Migrating Apache2 Log Files<\/h1>\n<p>I got my second wind after successfully migrating the WordPress website and got to thinking about moving all the log files. I plan to keep all the stats I accumulated under the old domain and continue forward.<\/p>\n<p>After several failed attempts at migrating Webalizer I gave up and decided to look for&nbsp; a more up to date log analyzer. I quickly found out my first choice, the &#8220;GoAccess&#8221; log analyzer, would not work for my purposes, so I started looking for something else and came across <a href=\"https:\/\/awstats.sourceforge.io\/\" target=\"_blank\" rel=\"noopener\">&#8220;AWStats&#8221;<\/a>.<\/p>\n<h3>Moving On From Webalizer<\/h3>\n<p>Webalizer is like a trusted old friend. Webalizer has been running here for so long, I wondered how I&#8217;d ever get along without it. One look at AWStats and I was ready to switch. It makes Webalizer look like something from the Flintstones!<\/p>\n<h3>AWStats<\/h3>\n<p>I was successful in transferring the log files from the old domain to the new domain. I was able to work it out after reading <a href=\"https:\/\/serverfault.com\/questions\/297061\/how-to-analyze-multiple-gz-log-files-for-awstats\" target=\"_blank\" rel=\"noopener\">this article<\/a>&nbsp;and combining it with ideas presented in a <a href=\"http:\/\/albertech.net\/2009\/09\/awstats-import-old-log-files\/\" target=\"_blank\" rel=\"noopener\">second article<\/a>.<\/p>\n<p>Steps taken:<\/p>\n<ol>\n<li>Delete all existing files in the AWStats DataDir&nbsp; &#8216;\/var\/lib\/awstats&#8217;<\/li>\n<li>Combine all my log files using the utility &#8220;logresolvemerge.pl&#8221; into one &#8216;masterlog&#8217; file.<\/li>\n<li>Temporarily modify awstats.conf to update from the &#8216;masterlog&#8217; file.<\/li>\n<li>Run the update.<\/li>\n<\/ol>\n<p>Voila! The previous years logs were successfully imported into AWStats!<\/p>\n<p>Next, I went back to the &#8216;awstats.conf&#8217; file and set it to back to read the daily Apache2 access.log file<\/p>\n<h3>Log File \/ Domain Overlap<\/h3>\n<p>The Apache server is still running on the old domain. I can see there are still some connections to it, so I put a <a href=\"https:\/\/www.w3docs.com\/snippets\/php\/how-to-redirect-a-web-page-with-php.html\" target=\"_blank\" rel=\"noopener\">redirect on the entry page<\/a>, and another redirect on my other&nbsp;<a href=\"https:\/\/www.w3docs.com\/snippets\/html\/how-to-redirect-a-web-page-in-html.html\" target=\"_blank\" rel=\"noopener\">high traffic page<\/a>.<\/p>\n<p>Using redirects, we can ensure all clients using outdated bookmarks will be taken to the same page on the new server.<\/p>\n<p>After this, the only connections I should see should be direct connections to old domain URL&#8217;s from stale bookmarks.<\/p>\n<p>I plan to let the Apache servers overlap in operation for the remainder of the month of December (2018 for that matter). On January 1, 2019 I will take the old Apache server offline for good. By that time all the search engines should have my entire site indexed, and I hope to have AWStats completely tweaked out by then.<\/p>\n<p><a href=\"http:\/\/k6hr.com\">Back To The Front<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Migrating Apache2 Log Files I got my second wind after successfully migrating the WordPress website and got to thinking about moving all the log files. I plan to keep all the stats I accumulated under the old domain and continue forward. After several failed attempts at migrating Webalizer I gave up and decided to look &hellip; <a href=\"http:\/\/k6hr.com\/index.php\/2018\/12\/07\/migrating-apache2-log-files\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Migrating Apache2 Log Files&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[12],"tags":[162,163,93],"class_list":["post-2096","post","type-post","status-publish","format-standard","hentry","category-whats-new","tag-awstats","tag-migrating-apache2-log-files","tag-webalizer"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Migrating Apache2 Log Files - K6HR SDR Server 2026<\/title>\n<meta name=\"description\" content=\"K6HR SDR Server 2023 - Migrating Apache2 Log Files\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/k6hr.com\/index.php\/2018\/12\/07\/migrating-apache2-log-files\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Migrating Apache2 Log Files - K6HR SDR Server 2026\" \/>\n<meta property=\"og:description\" content=\"K6HR SDR Server 2023 - Migrating Apache2 Log Files\" \/>\n<meta property=\"og:url\" content=\"http:\/\/k6hr.com\/index.php\/2018\/12\/07\/migrating-apache2-log-files\/\" \/>\n<meta property=\"og:site_name\" content=\"K6HR SDR Server 2026\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-07T17:43:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-23T01:19:23+00:00\" \/>\n<meta name=\"author\" content=\"K6HR\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"K6HR\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/k6hr.com\\\/index.php\\\/2018\\\/12\\\/07\\\/migrating-apache2-log-files\\\/#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/k6hr.com\\\/index.php\\\/2018\\\/12\\\/07\\\/migrating-apache2-log-files\\\/\"},\"author\":{\"name\":\"K6HR\",\"@id\":\"http:\\\/\\\/k6hr.com\\\/#\\\/schema\\\/person\\\/c65191ecdc6b432c91282328288efb24\"},\"headline\":\"Migrating Apache2 Log Files\",\"datePublished\":\"2018-12-07T17:43:06+00:00\",\"dateModified\":\"2023-01-23T01:19:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/k6hr.com\\\/index.php\\\/2018\\\/12\\\/07\\\/migrating-apache2-log-files\\\/\"},\"wordCount\":401,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\\\/\\\/k6hr.com\\\/#\\\/schema\\\/person\\\/c65191ecdc6b432c91282328288efb24\"},\"keywords\":[\"awstats\",\"migrating apache2 log files\",\"webalizer\"],\"articleSection\":[\"What's New\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\\\/\\\/k6hr.com\\\/index.php\\\/2018\\\/12\\\/07\\\/migrating-apache2-log-files\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/k6hr.com\\\/index.php\\\/2018\\\/12\\\/07\\\/migrating-apache2-log-files\\\/\",\"url\":\"http:\\\/\\\/k6hr.com\\\/index.php\\\/2018\\\/12\\\/07\\\/migrating-apache2-log-files\\\/\",\"name\":\"Migrating Apache2 Log Files - K6HR SDR Server 2026\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/k6hr.com\\\/#website\"},\"datePublished\":\"2018-12-07T17:43:06+00:00\",\"dateModified\":\"2023-01-23T01:19:23+00:00\",\"description\":\"K6HR SDR Server 2023 - Migrating Apache2 Log Files\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/k6hr.com\\\/index.php\\\/2018\\\/12\\\/07\\\/migrating-apache2-log-files\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/k6hr.com\\\/index.php\\\/2018\\\/12\\\/07\\\/migrating-apache2-log-files\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/k6hr.com\\\/index.php\\\/2018\\\/12\\\/07\\\/migrating-apache2-log-files\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/k6hr.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Migrating Apache2 Log Files\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/k6hr.com\\\/#website\",\"url\":\"http:\\\/\\\/k6hr.com\\\/\",\"name\":\"K6HR SDR Server 2025\",\"description\":\"Flex Radio 6000 Series - TG-XL \\\/ PG-XL\",\"publisher\":{\"@id\":\"http:\\\/\\\/k6hr.com\\\/#\\\/schema\\\/person\\\/c65191ecdc6b432c91282328288efb24\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\\\/\\\/k6hr.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\\\/\\\/k6hr.com\\\/#\\\/schema\\\/person\\\/c65191ecdc6b432c91282328288efb24\",\"name\":\"K6HR\",\"logo\":{\"@id\":\"http:\\\/\\\/k6hr.com\\\/#\\\/schema\\\/person\\\/image\\\/\"},\"description\":\"Licensed since 1994. Active on HF \\\/ VHF \\\/ UHF \\\/ Satellite.\",\"sameAs\":[\"http:\\\/\\\/k6hr.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Migrating Apache2 Log Files - K6HR SDR Server 2026","description":"K6HR SDR Server 2023 - Migrating Apache2 Log Files","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:\/\/k6hr.com\/index.php\/2018\/12\/07\/migrating-apache2-log-files\/","og_locale":"en_US","og_type":"article","og_title":"Migrating Apache2 Log Files - K6HR SDR Server 2026","og_description":"K6HR SDR Server 2023 - Migrating Apache2 Log Files","og_url":"http:\/\/k6hr.com\/index.php\/2018\/12\/07\/migrating-apache2-log-files\/","og_site_name":"K6HR SDR Server 2026","article_published_time":"2018-12-07T17:43:06+00:00","article_modified_time":"2023-01-23T01:19:23+00:00","author":"K6HR","twitter_card":"summary_large_image","twitter_misc":{"Written by":"K6HR","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/k6hr.com\/index.php\/2018\/12\/07\/migrating-apache2-log-files\/#article","isPartOf":{"@id":"http:\/\/k6hr.com\/index.php\/2018\/12\/07\/migrating-apache2-log-files\/"},"author":{"name":"K6HR","@id":"http:\/\/k6hr.com\/#\/schema\/person\/c65191ecdc6b432c91282328288efb24"},"headline":"Migrating Apache2 Log Files","datePublished":"2018-12-07T17:43:06+00:00","dateModified":"2023-01-23T01:19:23+00:00","mainEntityOfPage":{"@id":"http:\/\/k6hr.com\/index.php\/2018\/12\/07\/migrating-apache2-log-files\/"},"wordCount":401,"commentCount":0,"publisher":{"@id":"http:\/\/k6hr.com\/#\/schema\/person\/c65191ecdc6b432c91282328288efb24"},"keywords":["awstats","migrating apache2 log files","webalizer"],"articleSection":["What's New"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/k6hr.com\/index.php\/2018\/12\/07\/migrating-apache2-log-files\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/k6hr.com\/index.php\/2018\/12\/07\/migrating-apache2-log-files\/","url":"http:\/\/k6hr.com\/index.php\/2018\/12\/07\/migrating-apache2-log-files\/","name":"Migrating Apache2 Log Files - K6HR SDR Server 2026","isPartOf":{"@id":"http:\/\/k6hr.com\/#website"},"datePublished":"2018-12-07T17:43:06+00:00","dateModified":"2023-01-23T01:19:23+00:00","description":"K6HR SDR Server 2023 - Migrating Apache2 Log Files","breadcrumb":{"@id":"http:\/\/k6hr.com\/index.php\/2018\/12\/07\/migrating-apache2-log-files\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/k6hr.com\/index.php\/2018\/12\/07\/migrating-apache2-log-files\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/k6hr.com\/index.php\/2018\/12\/07\/migrating-apache2-log-files\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/k6hr.com\/"},{"@type":"ListItem","position":2,"name":"Migrating Apache2 Log Files"}]},{"@type":"WebSite","@id":"http:\/\/k6hr.com\/#website","url":"http:\/\/k6hr.com\/","name":"K6HR SDR Server 2025","description":"Flex Radio 6000 Series - TG-XL \/ PG-XL","publisher":{"@id":"http:\/\/k6hr.com\/#\/schema\/person\/c65191ecdc6b432c91282328288efb24"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/k6hr.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"http:\/\/k6hr.com\/#\/schema\/person\/c65191ecdc6b432c91282328288efb24","name":"K6HR","logo":{"@id":"http:\/\/k6hr.com\/#\/schema\/person\/image\/"},"description":"Licensed since 1994. Active on HF \/ VHF \/ UHF \/ Satellite.","sameAs":["http:\/\/k6hr.com"]}]}},"_links":{"self":[{"href":"http:\/\/k6hr.com\/index.php\/wp-json\/wp\/v2\/posts\/2096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/k6hr.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/k6hr.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/k6hr.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/k6hr.com\/index.php\/wp-json\/wp\/v2\/comments?post=2096"}],"version-history":[{"count":3,"href":"http:\/\/k6hr.com\/index.php\/wp-json\/wp\/v2\/posts\/2096\/revisions"}],"predecessor-version":[{"id":44278,"href":"http:\/\/k6hr.com\/index.php\/wp-json\/wp\/v2\/posts\/2096\/revisions\/44278"}],"wp:attachment":[{"href":"http:\/\/k6hr.com\/index.php\/wp-json\/wp\/v2\/media?parent=2096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/k6hr.com\/index.php\/wp-json\/wp\/v2\/categories?post=2096"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/k6hr.com\/index.php\/wp-json\/wp\/v2\/tags?post=2096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}