{"id":846,"date":"2016-10-28T15:55:43","date_gmt":"2016-10-28T14:55:43","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=846"},"modified":"2016-10-28T15:55:43","modified_gmt":"2016-10-28T14:55:43","slug":"creating-basic-log-trees-rackspace-cdn","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2016\/10\/28\/creating-basic-log-trees-rackspace-cdn\/","title":{"rendered":"Creating basic Log Tree&#8217;s for Rackspace CDN"},"content":{"rendered":"<p>Well, this was a little bit of a hack, but I share it because it&#8217;s quite cool<\/p>\n<pre>\r\n#!\/bin\/bash\r\n\r\n# Simple script thaqt is designed to process Rackspace .CDN_ACCESS_LOGS recursively\r\n# once they are download with swiftly\r\n\r\n# to download the CDN logs use\r\n# swiftly --verbose --eventlet --concurrency=100 get .CDN_ACCESS_LOGS --all-objects -o .\/\r\nalldirs=$(ls -al -1);\r\n\r\necho \"$alldirs\" | awk '{print $9}' > alldirs.txt\r\n\r\n\r\n\r\nfor item in `cat alldirs.txt`\r\n\r\n do\r\n        echo \" --- CONTAINER $item START ---\"\r\n        tree -L 2 $item;\r\n echo \" --- CONTAINER $item END --- \"\r\n printf \"\\n\\n\"\r\ndone\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Well, this was a little bit of a hack, but I share it because it&#8217;s quite cool #!\/bin\/bash # Simple script thaqt is designed to process Rackspace .CDN_ACCESS_LOGS recursively # once they are download with swiftly # to download the &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2016\/10\/28\/creating-basic-log-trees-rackspace-cdn\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,9,61],"tags":[],"class_list":["post-846","post","type-post","status-publish","format-standard","hentry","category-cdn","category-linux","category-rackspace"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/846","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=846"}],"version-history":[{"count":1,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/846\/revisions"}],"predecessor-version":[{"id":847,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/846\/revisions\/847"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}