{"id":253,"date":"2016-03-30T18:00:00","date_gmt":"2016-03-30T14:00:00","guid":{"rendered":"http:\/\/yohoho.msp360.com\/?p=253"},"modified":"2021-01-18T19:43:27","modified_gmt":"2021-01-18T15:43:27","slug":"how-to-turn-on-amazon-s3-bucket-logging-part-1","status":"publish","type":"post","link":"https:\/\/www.msp360.com\/resources\/blog\/how-to-turn-on-amazon-s3-bucket-logging-part-1\/","title":{"rendered":"How to Switch on Amazon S3 Bucket Logging With MSP360 Explorer (Part 1)"},"content":{"rendered":"<p>If you are wondering what kind of request is coming to your bucket and what you pay money for you may consider turning on Amazon S3 logging to record the requests coming to your bucket. This is a simple task that MSP360 Explorer freeware will make it even easier.<\/p>\n<h2>A Bucket to Keep Log Files<\/h2>\n<p>Let\u2019s create a bucket called cloudberry.log to keep your log file. You don\u2019t necessarily have to create a new bucket for your log files, but I think it is a good idea to have a separate bucket for the purpose to make things better organized.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-31541 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/03\/2019-06-21_18-42-08.png\" alt=\"A Bucket to Keep Log Files\" width=\"346\" height=\"238\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/03\/2019-06-21_18-42-08.png 346w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/03\/2019-06-21_18-42-08-300x206.png 300w\" sizes=\"auto, (max-width: 346px) 100vw, 346px\" \/><\/p>\n<h2>Configure Logging<\/h2>\n<p>Let\u2019s imagine we want to configure logging for a bucket called cb_test. So, all you have to do is to select the bucket and to click the Logging button on the toolbar.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-31540 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/03\/2019-06-21_18-34-08.png\" alt=\"Configure Logging\" width=\"446\" height=\"168\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/03\/2019-06-21_18-34-08.png 446w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/03\/2019-06-21_18-34-08-300x113.png 300w\" sizes=\"auto, (max-width: 446px) 100vw, 446px\" \/><\/p>\n<p>Now check the \u201cUse logging\u201d checkbox and choose the bucket where you want the log files to be written in the dropdown list. In our example it is cloudberry.log.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-31542 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/03\/2019-06-21_18-47-26.png\" alt=\"Object properties\" width=\"390\" height=\"500\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/03\/2019-06-21_18-47-26.png 390w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/03\/2019-06-21_18-47-26-234x300.png 234w\" sizes=\"auto, (max-width: 390px) 100vw, 390px\" \/><\/p>\n<p>Click ok and you are done. According to Amazon documentation, the log file doesn\u2019t appear immediately. It may take up to 24 hours for the log file to be created.<\/p>\n<h2>What's Next?<\/h2>\n<p>Now you are asking yourself: what can I do with the log files, how I can view them? What format are they stored in? Read our second blog post in this series on <a href=\"https:\/\/www.msp360.com\/resources\/blog\/how-to-view-amazon-s3-server-log-with-cloudberry-s3-explorer\/\" target=\"_blank\" rel=\"noopener noreferrer\">analyzing the log files<\/a>.<\/p>\n<h2>Final Notes<\/h2>\n<p>A log file can be written to the bucket in the same geographical location. In other words, if you are logging the access to the bucket in the US you will have to assign another bucket in the US to keep that log.<\/p>\n<p>Also, notice that logfile will add up to your monthly bill (although insignificantly) as you will need some additional S3 storage for your log files. The number of log files will grow over time so don\u2019t forget to clean them up regularly.<\/p>\n<h2>S3 Log Accuracy<\/h2>\n<p>One thing worth mentioning that even though Amazon will make the best effort to make the log as accurate as possible it doesn't guarantee its complete accuracy. In a rare situation, certain requests will not make it to the log. But as Amazon explains S3 log is designed to give a general idea of how your bucket is being used.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are wondering what kind of request is coming to your bucket and what you pay money for you may consider turning on Amazon S3 logging to record the requests coming to your bucket. This is a simple task that MSP360 Explorer freeware will make it even easier. A Bucket to Keep Log Files [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[877,898,882],"tags":[],"class_list":["post-253","post","type-post","status-publish","format-standard","hentry","category-blog-articles","category-msp360-explorer","category-msp360-news"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/comments?post=253"}],"version-history":[{"count":0,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/253\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/media?parent=253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/categories?post=253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/tags?post=253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}