{"id":72,"date":"2008-09-15T13:20:32","date_gmt":"2008-09-15T12:20:32","guid":{"rendered":"http:\/\/soi57.net\/articles\/?p=72"},"modified":"2020-09-08T16:03:22","modified_gmt":"2020-09-08T15:03:22","slug":"apache-logformat","status":"publish","type":"post","link":"https:\/\/soi57.net\/blog\/apache-logformat\/","title":{"rendered":"Apache LogFormat"},"content":{"rendered":"<p>Este es un ejemplo de c\u00f3mo configurar el\u00a0 <strong>formato<\/strong> de los <strong>logs<\/strong> de <strong>apache<\/strong> ( definidos en la directiva <strong>LogFormat<\/strong> ). Proporciona mucha informaci\u00f3n extra e incluso en servidores con un gran volumen de tr\u00e1fico s\u00f3lo a\u00f1ade un poco de overhead, pero para la informaci\u00f3n que proporciona, merece la pena.<\/p>\n<pre>%V The server name according to the UseCanonicalName setting. Useful for virtual hosting servers.\r\n# %h Remote host\r\n# %l Remote logname (from identd, if supplied). This will return a dash unless mod_ident is<\/pre>\n<pre># present and IdentityCheck is set On.\r\n# %u Remote user (from auth; may be bogus if return status (%s) is 401)\r\n# %t Time the request was received (standard english format)\r\n# %r First line of request\r\n# %&gt;s status. For requests that got internally redirected, this is the status of the *original*<\/pre>\n<pre># request --- %&gt;s  for the last.\r\n# %b Size of response in bytes, excluding HTTP headers. In CLF format, i.e.  a '-' rather than<\/pre>\n<pre># a 0 when no bytes are sent.\r\n# %{Referer}i The contents of Foobar: header line(s) in the request sent to the server.\r\n# %{User-Agent}i\r\n# %{Foorbar}C The contents of cookie Foobar in the request sent to the server.\r\n# %P The process ID of the child that serviced the request.\r\n<strong># %D The time taken to serve the request, in microseconds.<\/strong>\r\nLogFormat \"%V %h %l %u %t \\\"%r\\\" %&gt;s %b \\\"%{Referer}i\\\" \\\"%{User-Agent}i\\\" %P %D\" vcombinedwithPD\r\n\r\nSetEnvIf Request_URI \"^\/favicon.ico$\" dontlog\r\nSetEnvIf User-Agent \".*internal dummy connection.*\" dontlog\r\nCustomLog logs\/access_log vcombinedwithPD env=!dontlog<\/pre>\n<p>He resaltado en negrita una opci\u00f3n que me parece muy interesante, %D, con la que puedes ver el tiempo que tarda <strong>Apache <\/strong>en servir cada petici\u00f3n.<\/p>\n<div style='text-align:left' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>Este es un ejemplo de c\u00f3mo configurar el\u00a0 formato de los logs de apache ( definidos en la directiva LogFormat ). Proporciona mucha informaci\u00f3n extra e incluso en servidores con &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","footnotes":""},"categories":[51,97],"tags":[599,58,57,59],"class_list":["post-72","post","type-post","status-publish","format-standard","hentry","category-software","category-tecnologia","tag-apache","tag-configuracion","tag-logformat","tag-monitorizacion"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Apache LogFormat<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/soi57.net\/blog\/apache-logformat\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Apache LogFormat\" \/>\n<meta property=\"og:description\" content=\"Este es un ejemplo de c\u00f3mo configurar el\u00a0 formato de los logs de apache ( definidos en la directiva LogFormat ). Proporciona mucha informaci\u00f3n extra e incluso en servidores con &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/soi57.net\/blog\/apache-logformat\/\" \/>\n<meta property=\"og:site_name\" content=\"Android, administracion de sistemas y seo\" \/>\n<meta property=\"article:published_time\" content=\"2008-09-15T12:20:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-09-08T15:03:22+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/soi57.net\/blog\/apache-logformat\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/soi57.net\/blog\/apache-logformat\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/soi57.net\/blog\/#\/schema\/person\/9410e0a8d6f61a74f9f82f2229ab79d7\"},\"headline\":\"Apache LogFormat\",\"datePublished\":\"2008-09-15T12:20:32+00:00\",\"dateModified\":\"2020-09-08T15:03:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/soi57.net\/blog\/apache-logformat\/\"},\"wordCount\":84,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/soi57.net\/blog\/#organization\"},\"keywords\":[\"apache\",\"configuracion\",\"logformat\",\"monitorizacion\"],\"articleSection\":[\"software\",\"tecnologia\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/soi57.net\/blog\/apache-logformat\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/soi57.net\/blog\/apache-logformat\/\",\"url\":\"https:\/\/soi57.net\/blog\/apache-logformat\/\",\"name\":\"Apache LogFormat\",\"isPartOf\":{\"@id\":\"https:\/\/soi57.net\/blog\/#website\"},\"datePublished\":\"2008-09-15T12:20:32+00:00\",\"dateModified\":\"2020-09-08T15:03:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/soi57.net\/blog\/apache-logformat\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/soi57.net\/blog\/apache-logformat\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/soi57.net\/blog\/apache-logformat\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/soi57.net\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Apache LogFormat\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/soi57.net\/blog\/#website\",\"url\":\"https:\/\/soi57.net\/blog\/\",\"name\":\"Android, administracion de sistemas y seo\",\"description\":\"soi57.net\/blog\",\"publisher\":{\"@id\":\"https:\/\/soi57.net\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/soi57.net\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/soi57.net\/blog\/#organization\",\"name\":\"Soi57.Net\",\"url\":\"https:\/\/soi57.net\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/soi57.net\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/soi57.net\/blog\/wp-content\/logo_soi57.net_half.jpg\",\"contentUrl\":\"https:\/\/soi57.net\/blog\/wp-content\/logo_soi57.net_half.jpg\",\"width\":342,\"height\":77,\"caption\":\"Soi57.Net\"},\"image\":{\"@id\":\"https:\/\/soi57.net\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/soi57.net\/blog\/#\/schema\/person\/9410e0a8d6f61a74f9f82f2229ab79d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/soi57.net\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6e87f10096d6c8f82a9bc2ddc0f3a223?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6e87f10096d6c8f82a9bc2ddc0f3a223?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/soi57.net\"]},false]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Apache LogFormat","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/soi57.net\/blog\/apache-logformat\/","og_locale":"es_ES","og_type":"article","og_title":"Apache LogFormat","og_description":"Este es un ejemplo de c\u00f3mo configurar el\u00a0 formato de los logs de apache ( definidos en la directiva LogFormat ). Proporciona mucha informaci\u00f3n extra e incluso en servidores con &hellip;","og_url":"https:\/\/soi57.net\/blog\/apache-logformat\/","og_site_name":"Android, administracion de sistemas y seo","article_published_time":"2008-09-15T12:20:32+00:00","article_modified_time":"2020-09-08T15:03:22+00:00","author":"root","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/soi57.net\/blog\/apache-logformat\/#article","isPartOf":{"@id":"https:\/\/soi57.net\/blog\/apache-logformat\/"},"author":{"name":"root","@id":"https:\/\/soi57.net\/blog\/#\/schema\/person\/9410e0a8d6f61a74f9f82f2229ab79d7"},"headline":"Apache LogFormat","datePublished":"2008-09-15T12:20:32+00:00","dateModified":"2020-09-08T15:03:22+00:00","mainEntityOfPage":{"@id":"https:\/\/soi57.net\/blog\/apache-logformat\/"},"wordCount":84,"commentCount":0,"publisher":{"@id":"https:\/\/soi57.net\/blog\/#organization"},"keywords":["apache","configuracion","logformat","monitorizacion"],"articleSection":["software","tecnologia"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/soi57.net\/blog\/apache-logformat\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/soi57.net\/blog\/apache-logformat\/","url":"https:\/\/soi57.net\/blog\/apache-logformat\/","name":"Apache LogFormat","isPartOf":{"@id":"https:\/\/soi57.net\/blog\/#website"},"datePublished":"2008-09-15T12:20:32+00:00","dateModified":"2020-09-08T15:03:22+00:00","breadcrumb":{"@id":"https:\/\/soi57.net\/blog\/apache-logformat\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/soi57.net\/blog\/apache-logformat\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/soi57.net\/blog\/apache-logformat\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/soi57.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Apache LogFormat"}]},{"@type":"WebSite","@id":"https:\/\/soi57.net\/blog\/#website","url":"https:\/\/soi57.net\/blog\/","name":"Android, administracion de sistemas y seo","description":"soi57.net\/blog","publisher":{"@id":"https:\/\/soi57.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/soi57.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/soi57.net\/blog\/#organization","name":"Soi57.Net","url":"https:\/\/soi57.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/soi57.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/soi57.net\/blog\/wp-content\/logo_soi57.net_half.jpg","contentUrl":"https:\/\/soi57.net\/blog\/wp-content\/logo_soi57.net_half.jpg","width":342,"height":77,"caption":"Soi57.Net"},"image":{"@id":"https:\/\/soi57.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/soi57.net\/blog\/#\/schema\/person\/9410e0a8d6f61a74f9f82f2229ab79d7","name":"root","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/soi57.net\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6e87f10096d6c8f82a9bc2ddc0f3a223?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6e87f10096d6c8f82a9bc2ddc0f3a223?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/soi57.net"]},false]}},"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":0,"sum_votes":0},"_links":{"self":[{"href":"https:\/\/soi57.net\/blog\/wp-json\/wp\/v2\/posts\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/soi57.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/soi57.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/soi57.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/soi57.net\/blog\/wp-json\/wp\/v2\/comments?post=72"}],"version-history":[{"count":5,"href":"https:\/\/soi57.net\/blog\/wp-json\/wp\/v2\/posts\/72\/revisions"}],"predecessor-version":[{"id":2285,"href":"https:\/\/soi57.net\/blog\/wp-json\/wp\/v2\/posts\/72\/revisions\/2285"}],"wp:attachment":[{"href":"https:\/\/soi57.net\/blog\/wp-json\/wp\/v2\/media?parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/soi57.net\/blog\/wp-json\/wp\/v2\/categories?post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/soi57.net\/blog\/wp-json\/wp\/v2\/tags?post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}