{"id":239,"date":"2014-04-17T20:47:29","date_gmt":"2014-04-17T20:47:29","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=239"},"modified":"2014-04-17T20:47:29","modified_gmt":"2014-04-17T20:47:29","slug":"grep-ip-addresses-from-plesk-server","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/04\/17\/grep-ip-addresses-from-plesk-server\/","title":{"rendered":"Grep IP addresses from Plesk Server"},"content":{"rendered":"<p>Want to see the number and list of IP addresses in the access log for a Plesk Domain?<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\ncd \/var\/www\/vhosts\/domainname.com\/statistics\/logs\nsed -e &#039;s\/\\(&#x5B;0-9]\\+\\.&#x5B;0-9]\\+\\.&#x5B;0-9]\\+\\.&#x5B;0-9]\\+\\).*$\/\\1\/&#039; -e t -e d access_log | sort | uniq -c\n\n<\/pre>\n<p>You should see a list like this\u2026<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n30 100.3.125.44\n4 101.226.65.105\n6 103.6.190.208\n11 105.227.211.73\n168 107.213.9.254\n\n<\/pre>\n<p>For all Plesk access logs<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# cd \/var\/log\/httpd\n# sed -e &#039;s\/\\(&#x5B;0-9]\\+\\.&#x5B;0-9]\\+\\.&#x5B;0-9]\\+\\.&#x5B;0-9]\\+\\).*$\/\\1\/&#039; -e t -e d access_log | sort | uniq -c\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Want to see the number and list of IP addresses in the access log for a Plesk Domain? cd \/var\/www\/vhosts\/domainname.com\/statistics\/logs sed -e &#039;s\/\\(&#x5B;0-9]\\+\\.&#x5B;0-9]\\+\\.&#x5B;0-9]\\+\\.&#x5B;0-9]\\+\\).*$\/\\1\/&#039; -e t -e d access_log | sort | uniq -c You should see a list like this\u2026 30 100.3.125.44 4 101.226.65.105 6 103.6.190.208 11 105.227.211.73 168 107.213.9.254 For all Plesk access logs &#8230; <a title=\"Grep IP addresses from Plesk Server\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2014\/04\/17\/grep-ip-addresses-from-plesk-server\/\" aria-label=\"Read more about Grep IP addresses from Plesk Server\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86],"tags":[],"class_list":["post-239","post","type-post","status-publish","format-standard","hentry","category-plesk"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=239"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/239\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}