{"id":5344,"date":"2022-12-24T13:25:21","date_gmt":"2022-12-24T16:25:21","guid":{"rendered":"http:\/\/wiki3.locaweb.com.br\/?post_type=ht_kb&#038;p=5344"},"modified":"2025-09-05T16:29:20","modified_gmt":"2025-09-05T19:29:20","slug":"como-obter-logs-de-erros-e-acesso-hospedagem-de-sites","status":"publish","type":"ht_kb","link":"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-obter-logs-de-erros-e-acesso-hospedagem-de-sites\/","title":{"rendered":"Como obter logs de erros e acesso &#8211; Hospedagem de Sites"},"content":{"rendered":"    \t\t<div class=\"hts-messages hts-messages--info  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\"><b>Informa\u00e7\u00e3o!<\/b><\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tVeja neste artigo como localizar e obter os logs de erros e acesso do seu servi\u00e7o de Hospedagem de Sites.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<h6><strong>Linux<\/strong><\/h6>\n<ul>\n<li>Acessando o ambiente de sua hospedagem Linux atrav\u00e9s do <a href=\"https:\/\/ajuda.locaweb.com.br\/wiki\/ssh-hospedagem-de-sites\/\" target=\"_blank\" rel=\"noopener noreferrer\">SSH<\/a> voc\u00ea consegue obter os logs de erro e acesso ao ambiente.<\/li>\n<\/ul>\n    \t\t<div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Importante!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tLembrando que o procedimento \u00e9 v\u00e1lido apenas para verificar os logs do dia.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<h6>Verificando os logs de erro<\/h6>\n<ul>\n<li>Acesse sua hospedagem atrav\u00e9s do <a href=\"https:\/\/ajuda.locaweb.com.br\/wiki\/ssh-hospedagem-de-sites\/\" target=\"_blank\" rel=\"noopener noreferrer\">SSH<\/a>.<\/li>\n<li>Execute o comando de verifica\u00e7\u00e3o:<\/li>\n<\/ul>\n<pre>tail -f ~\/logs\/error_log<strong>YYYYMMDD\r\n<\/strong><\/pre>\n<p style=\"padding-left: 30px;\">Ex.: tail -f ~\/logs\/error_log200180724<\/p>\n<ul>\n<li>\u00a0Onde:\n<ul>\n<li>YYYY \u00e9 o ano (com quatro d\u00edgitos)<\/li>\n<li>MM \u00e9 o m\u00eas (01 a 12)<\/li>\n<li>DD \u00e9 o dia (01 a 31)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n    \t\t<div class=\"hts-messages hts-messages--success  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\"><b>Pronto!<\/b><\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tSer\u00e1 exibido o log de erros de sua hospedagem!    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<h6><span id=\"Verificando_os_logs_de_acessos\" class=\"mw-headline\">Verificando os logs de acessos<\/span><\/h6>\n<ul>\n<li>Acesse sua hospedagem atrav\u00e9s do <a href=\"http:\/\/wiki3.locaweb.com.br\/wiki\/ssh-hospedagem-de-sites\/\">SSH<\/a>.<\/li>\n<li>Execute o comando de verifica\u00e7\u00e3o:<\/li>\n<\/ul>\n<pre>tail -f ~\/logs\/access_log<strong>YYYYMMDD<\/strong><\/pre>\n<p style=\"padding-left: 30px;\">Ex.: tail -f ~\/logs\/acess_log200180724<\/p>\n<ul>\n<li>\u00a0Onde:\n<ul>\n<li>YYYY \u00e9 o ano (com quatro d\u00edgitos)<\/li>\n<li>MM \u00e9 o m\u00eas (01 a 12)<\/li>\n<li>DD \u00e9 o dia (01 a 31)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n    \t\t<div class=\"hts-messages hts-messages--success  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\"><b>Pronto!<\/b><\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tSer\u00e1 exibido o log de acesso de sua hospedagem!    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<h6><span id=\"Verificando_os_logs_de_acessos\" class=\"mw-headline\">Verificando os logs de acesso FTP<\/span><\/h6>\n<ul>\n<li>Caso deseje logs de acesso FTP (cria\u00e7\u00e3o\/modifica\u00e7\u00e3o e dele\u00e7\u00e3o de software), ser\u00e1 necess\u00e1rio <a href=\"https:\/\/ajuda.locaweb.com.br\/wiki\/como-criar-e-acompanhar-um-chamado-central-do-cliente\/\" target=\"_blank\" rel=\"noopener noreferrer\">abrir um chamado<\/a> atrav\u00e9s de sua central do cliente.<\/li>\n<li>Altera\u00e7\u00f5es realizada via ssh e .sh n\u00e3o ficam gravados.<\/li>\n<\/ul>\n<h6>Windows<\/h6>\n<ul>\n<li>Clientes que possuem planos de Hospedagem Windows 2003, 2016 e 2022 devem solicitar os logs de HTTP\/FTP atrav\u00e9s de nossa <strong><a href=\"https:\/\/www.locaweb.com.br\/atendimento\/\" target=\"_blank\" rel=\"noopener\">Central de Atendimento.<\/a><\/strong><\/li>\n<li>Os Logs de FTP podem demorar <strong>at\u00e9 1 dia<\/strong> para serem atualizados.<\/li>\n<\/ul>\n    \t\t<div class=\"hts-messages hts-messages--info  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\"><b>Conhe\u00e7a!<\/b><\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tAproveite e conhe\u00e7a outros produtos da Locaweb, como o <a class=\"waffle-rich-text-link\" href=\"https:\/\/www.locaweb.com.br\/servidor-vps\/\">VPS <\/a> Locaweb e a <a class=\"waffle-rich-text-link\" href=\"https:\/\/www.locaweb.com.br\/revenda-cpanel\/\">revenda de hospedagem<\/a>!    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n","protected":false},"excerpt":{"rendered":"<p>Linux Acessando o ambiente de sua hospedagem Linux atrav\u00e9s do SSH voc\u00ea consegue obter os logs de erro e acesso ao ambiente. Verificando os logs de erro Acesse sua hospedagem atrav\u00e9s do SSH. Execute o comando de verifica\u00e7\u00e3o: tail -f ~\/logs\/error_logYYYYMMDD Ex.: tail -f ~\/logs\/error_log200180724 \u00a0Onde: YYYY \u00e9 o ano&#8230;<\/p>\n","protected":false},"author":6,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[119],"ht-kb-tag":[418],"class_list":["post-5344","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-hospedagem-de-sites","ht_kb_tag-categoriahospedagem"],"_links":{"self":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/5344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/comments?post=5344"}],"version-history":[{"count":19,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/5344\/revisions"}],"predecessor-version":[{"id":38284,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/5344\/revisions\/38284"}],"wp:attachment":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/media?parent=5344"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-category?post=5344"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-tag?post=5344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}