{"id":394,"date":"2019-07-27T11:37:46","date_gmt":"2019-07-27T09:37:46","guid":{"rendered":"https:\/\/ubuntu.science\/?p=394"},"modified":"2022-04-03T23:42:52","modified_gmt":"2022-04-03T21:42:52","slug":"compruebe-los-registros-del-host-virtual-de-apache","status":"publish","type":"post","link":"https:\/\/rootfan.com\/es\/check-apache-virtual-host-logs\/","title":{"rendered":"Comprobar todos los registros de Apache Virtual Host en Ubuntu"},"content":{"rendered":"<p>A veces necesito comprobar todos mis hosts virtuales en mi servidor Apache.<\/p>\n\n\n\n<p>La mejor manera de hacerlo es con un comando cat como este<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\/var\/log\/apache2# cat *.access.log<\/pre><\/pre>\n\n\n\n<p>Si quiero seguir observando el log uso el comando tail de la siguiente manera<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\/var\/log\/apache2# tail -f *.access.log<\/pre><\/pre>\n\n\n\n<p>Pero si quiero comprobar algo m\u00e1s espec\u00edfico tambi\u00e9n puedo usar un grep<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\/var\/log\/apache2# cat *.access.log | grep root<\/pre><\/pre>\n\n\n\n<p>Es una forma r\u00e1pida de verificar mis registros sin tener que comprobarlos uno por uno.<\/p>","protected":false},"excerpt":{"rendered":"<p>A veces necesito comprobar todos mis hosts virtuales en mi servidor Apache. La mejor forma de hacerlo es con un comando cat como este \/var\/log\/apache2# cat *.access.log Si quiero seguir observando el registro utilizo el comando tail como sigue \/var\/log\/apache2# tail -f *.access.log Pero si quiero comprobar algo ... <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/rootfan.com\/es\/check-apache-virtual-host-logs\/\" class=\"more-link\">Seguir leyendo<span class=\"screen-reader-text\"> \"Comprobar todos los registros de Apache Virtual Host en Ubuntu\"<\/span><\/a><\/p>","protected":false},"author":1,"featured_media":2891,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_focus_keyword":"","rank_math_title":"","rank_math_description":"Easily check and analyze Apache virtual host logs on Ubuntu for better server management and troubleshooting.","rank_math_robots":null,"rank_math_og_title":"","rank_math_og_description":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11],"tags":[8,24,25,29],"class_list":["post-394","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","tag-command","tag-debug","tag-logs","tag-ubuntu"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/rootfan.com\/wp-content\/uploads\/pexels-photo-3573555.jpeg?fit=1880%2C1058&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/rootfan.com\/es\/wp-json\/wp\/v2\/posts\/394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rootfan.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rootfan.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rootfan.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rootfan.com\/es\/wp-json\/wp\/v2\/comments?post=394"}],"version-history":[{"count":3,"href":"https:\/\/rootfan.com\/es\/wp-json\/wp\/v2\/posts\/394\/revisions"}],"predecessor-version":[{"id":2893,"href":"https:\/\/rootfan.com\/es\/wp-json\/wp\/v2\/posts\/394\/revisions\/2893"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rootfan.com\/es\/wp-json\/wp\/v2\/media\/2891"}],"wp:attachment":[{"href":"https:\/\/rootfan.com\/es\/wp-json\/wp\/v2\/media?parent=394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rootfan.com\/es\/wp-json\/wp\/v2\/categories?post=394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rootfan.com\/es\/wp-json\/wp\/v2\/tags?post=394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}