{"id":4488,"date":"2022-12-20T18:08:48","date_gmt":"2022-12-20T21:08:48","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/cupsd-logs-man5\/"},"modified":"2022-12-20T18:08:48","modified_gmt":"2022-12-20T21:08:48","slug":"cupsd-logs-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/cupsd-logs-man5\/","title":{"rendered":"cupsd-logs (man5)"},"content":{"rendered":"<h1 align=\"center\">cupsd-logs<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#COPYRIGHT\">COPYRIGHT<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">cupsd\u2212logs \u2212 cupsd log files (access_log, error_log, and page_log)<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>cupsd<\/b>(8) normally maintains three log files: <i>access_log<\/i> to track requests that are submitted to the scheduler, <i>error_log<\/i> to track progress and errors, and <i>page_log<\/i> to track pages that are printed. Configuration directives in <b>cupsd.conf<\/b>(5) and <b>cups-files.conf<\/b>(5) control what information is logged and where it is stored.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ACCESS LOG FILE FORMAT<\/b> <br \/> The <i>access_log<\/i> file lists each HTTP resource that is accessed by a web browser or client. Each line is in an extended version of the so-called &#8220;Common Log Format&#8221; used by many web servers and web reporting tools:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>host group user date-time<\/i> &#8220;<i>method resource version<\/i>&#8221; <i>status bytes <br \/> ipp-operation ipp-status<\/i><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">For example:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">10.0.1.2 &#8211; &#8211; [01\/Dec\/2005:21:50:28 +0000] &#8220;POST \/ HTTP\/1.1&#8221; 200 317 <br \/> CUPS-Get-Printers successful-ok-ignored-or-substituted-attributes <br \/> localhost &#8211; &#8211; [01\/Dec\/2005:21:50:32 +0000] &#8220;GET \/admin HTTP\/1.1&#8221; <br \/> 200 0 &#8211; &#8211; <br \/> localhost &#8211; &#8211; [01\/Dec\/2005:21:50:32 +0000] &#8220;POST \/ HTTP\/1.1&#8221; <br \/> 200 157 CUPS-Get-Printers <br \/> successful-ok-ignored-or-substituted-attributes <br \/> localhost &#8211; &#8211; [01\/Dec\/2005:21:50:32 +0000] &#8220;POST \/ HTTP\/1.1&#8221; <br \/> 200 1411 CUPS-Get-Devices &#8211; <br \/> localhost &#8211; &#8211; [01\/Dec\/2005:21:50:32 +0000] &#8220;GET \/admin HTTP\/1.1&#8221; <br \/> 200 6667 &#8211; &#8211;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>host<\/i> field will normally only be an IP address unless you have enabled the HostNameLookups directive in the <i>cupsd.conf<\/i> file or if the IP address corresponds to your local machine.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>group<\/i> field always contains &#8220;-&#8220;.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>user<\/i> field is the authenticated username of the requesting user. If no username and password is supplied for the request then this field contains &#8220;-&#8220;.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>date-time<\/i> field is the date and time of the request in local time and is in the format &#8220;[DD\/MON\/YYYY:HH:MM:SS +ZZZZ]&#8221;.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>method<\/i> field is the HTTP method used: &#8220;GET&#8221;, &#8220;HEAD&#8221;, &#8220;OPTIONS&#8221;, &#8220;POST&#8221;, or &#8220;PUT&#8221;. &#8220;GET&#8221; requests are used to get files from the server, both for the web interface and to get configuration and log files. &#8220;HEAD&#8221; requests are used to get information about a resource prior to a &#8220;GET&#8221;. &#8220;OPTIONS&#8221; requests are used to upgrade connections to TLS encryption. &#8220;POST&#8221; requests are used for web interface forms and IPP requests. &#8220;PUT&#8221; requests are used to upload configuration files.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>resource<\/i> field is the filename of the requested resource.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>version<\/i> field is the HTTP specification version used by the client. For CUPS clients this will always be &#8220;HTTP\/1.1&#8221;.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>status<\/i> field contains the HTTP result status of the request, as follows:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"18%\"><\/td>\n<td width=\"5%\">\n<p>200<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p>Successful operation.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"18%\"><\/td>\n<td width=\"5%\">\n<p>201<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p>File created\/modified successfully.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"18%\"><\/td>\n<td width=\"5%\">\n<p>304<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p>The requested file has not changed.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"18%\"><\/td>\n<td width=\"5%\">\n<p>400<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p>Bad HTTP request; typically this means that you have a malicious program trying to access your server.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"18%\"><\/td>\n<td width=\"5%\">\n<p>401<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p>Unauthorized, authentication (username + password) is required.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"18%\"><\/td>\n<td width=\"5%\">\n<p>403<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p>Access is forbidden; typically this means that a client tried to access a file or resource they do not have permission to access.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"18%\"><\/td>\n<td width=\"5%\">\n<p>404<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p>The file or resource does not exist.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"18%\"><\/td>\n<td width=\"5%\">\n<p>405<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p>URL access method is not allowed; typically this means you have a web browser using your server as a proxy.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"18%\"><\/td>\n<td width=\"5%\">\n<p>413<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p>Request too large; typically this means that a client tried to print a file larger than the MaxRequestSize allows.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"18%\"><\/td>\n<td width=\"5%\">\n<p>426<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p>Upgrading to TLS-encrypted connection.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"18%\"><\/td>\n<td width=\"5%\">\n<p>500<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p>Server error; typically this happens when the server is unable to open\/create a file &#8211; consult the error_log file for details.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"18%\"><\/td>\n<td width=\"5%\">\n<p>501<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p>The client requested encryption but encryption support is not enabled\/compiled in.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"18%\"><\/td>\n<td width=\"5%\">\n<p>505<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p>HTTP version number not supported; typically this means that you have a malicious program trying to access your server.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>bytes<\/i> field contains the number of bytes in the request. For POST requests the bytes field contains the number of bytes of non-IPP data that is received from the client.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>ipp-operation<\/i> field contains either &#8220;-&#8221; for non-IPP requests or the IPP operation name for POST requests containing an IPP request.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>ipp-status<\/i> field contains either &#8220;-&#8221; for non-IPP requests or the IPP status code name for POST requests containing an IPP response.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ERROR LOG FILE FORMAT<\/b> <br \/> The <i>error_log<\/i> file lists messages from the scheduler &#8211; errors, warnings, etc. The LogLevel directive in the <b>cupsd.conf<\/b>(5) file controls which messages are logged:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">level date-time message<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">For example:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">I [20\/May\/1999:19:18:28 +0000] [Job 1] Queued on \u2019DeskJet\u2019 by \u2019mike\u2019. <br \/> D [20\/May\/1999:19:18:28 +0000] [Job 1] argv[0]=&#8221;DeskJet&#8221; <br \/> D [20\/May\/1999:19:18:28 +0000] [Job 1] argv[1]=&#8221;1&#8243; <br \/> D [20\/May\/1999:19:18:28 +0000] [Job 1] argv[2]=&#8221;mike&#8221; <br \/> D [20\/May\/1999:19:18:28 +0000] [Job 1] argv[3]=&#8221;myjob&#8221; <br \/> D [20\/May\/1999:19:18:28 +0000] [Job 1] argv[4]=&#8221;1&#8243; <br \/> D [20\/May\/1999:19:18:28 +0000] [Job 1] argv[5]=&#8221;media= <br \/> na_letter_8.5x11in sides=one-sided&#8221; <br \/> D [20\/May\/1999:19:18:28 +0000] [Job 1] argv[6]=&#8221;\/var\/spool\/cups\/ <br \/> d000001-001&#8243; <br \/> I [20\/May\/1999:19:21:02 +0000] [Job 2] Queued on \u2019DeskJet\u2019 by \u2019mike\u2019. <br \/> I [20\/May\/1999:19:22:24 +0000] [Job 2] Canceled by \u2019mike\u2019.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>level<\/i> field contains the type of message:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">A<\/p>\n<\/td>\n<td width=\"6%\"><\/td>\n<td width=\"68%\">\n<p style=\"margin-top: 1em\">Alert message (LogLevel alert)<\/p>\n<\/td>\n<td width=\"14%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>C<\/p>\n<\/td>\n<td width=\"6%\"><\/td>\n<td width=\"68%\">\n<p>Critical error message (LogLevel crit)<\/p>\n<\/td>\n<td width=\"14%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>D<\/p>\n<\/td>\n<td width=\"6%\"><\/td>\n<td width=\"68%\">\n<p>Debugging message (LogLevel debug)<\/p>\n<\/td>\n<td width=\"14%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>d<\/p>\n<\/td>\n<td width=\"6%\"><\/td>\n<td width=\"68%\">\n<p>Detailed debugging message (LogLevel debug2)<\/p>\n<\/td>\n<td width=\"14%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>E<\/p>\n<\/td>\n<td width=\"6%\"><\/td>\n<td width=\"68%\">\n<p>Normal error message (LogLevel error)<\/p>\n<\/td>\n<td width=\"14%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>I<\/p>\n<\/td>\n<td width=\"6%\"><\/td>\n<td width=\"68%\">\n<p>Informational message (LogLevel info)<\/p>\n<\/td>\n<td width=\"14%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>N<\/p>\n<\/td>\n<td width=\"6%\"><\/td>\n<td width=\"68%\">\n<p>Notice message (LogLevel notice)<\/p>\n<\/td>\n<td width=\"14%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>W<\/p>\n<\/td>\n<td width=\"6%\"><\/td>\n<td width=\"68%\">\n<p>Warning message (LogLevel warn)<\/p>\n<\/td>\n<td width=\"14%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>X<\/p>\n<\/td>\n<td width=\"6%\"><\/td>\n<td width=\"68%\">\n<p>Emergency error message (LogLevel emerg)<\/p>\n<\/td>\n<td width=\"14%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>date-time<\/i> field contains the date and time of when the page started printing. The format of this field is identical to the data-time field in the <i>access_log<\/i> file.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>message<\/i> field contains a free-form textual message. Messages from job filters are prefixed with &#8220;[Job NNN]&#8221; where &#8220;NNN&#8221; is the job ID.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>PAGE LOG FILE FORMAT<\/b> <br \/> The <i>page_log<\/i> file lists the total number of pages (sheets) that are printed. By default, each line contains the following information:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>printer user job-id date-time<\/i> <b>total<\/b> <i>num-sheets job-billing <br \/> job-originating-host-name job-name media sides<\/i><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">For example the entry for a two page job called &#8220;myjob&#8221; might look like:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">DeskJet root 1 [20\/May\/1999:19:21:06 +0000] total 2 acme-123 <br \/> localhost myjob na_letter_8.5x11in one-sided<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The PageLogFormat directive in the <b>cupsd.conf<\/b>(5) file can be used to change this information.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>printer<\/i> field contains the name of the printer that printed the page. If you send a job to a printer class, this field will contain the name of the printer that was assigned the job.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>user<\/i> field contains the name of the user (the IPP requesting-user-name attribute) that submitted this file for printing.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>job-id<\/i> field contains the job number of the page being printed.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>date-time<\/i> field contains the date and time of when the page started printing. The format of this field is identical to the data-time field in the <i>access_log<\/i> file.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>num-sheets<\/i> field provides the total number of pages (sheets) that have been printed on for the job.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>job-billing<\/i> field contains a copy of the job-billing or job-account-id attributes provided with the IPP Create-Job or Print-Job requests or &#8220;-&#8221; if neither was provided.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>job-originating-host-name<\/i> field contains the hostname or IP address of the client that printed the job.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>job-name<\/i> field contains a copy of the job-name attribute provided with the IPP Create-Job or Print-Job requests or &#8220;-&#8221; if none was provided.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>media<\/i> field contains a copy of the media or media-col\/media-size attribute provided with the IPP Create-Job or Print-Job requests or &#8220;-&#8221; if none was provided.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>sides<\/i> field contains a copy of the sides attribute provided with the IPP Create-Job or Print-Job requests or &#8220;-&#8221; if none was provided.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>cupsd<\/b>(8), <b>cupsd.conf<\/b>(5), <b>cups-files.conf<\/b>(5), CUPS Online Help (http:\/\/localhost:631\/help)<\/p>\n<h2>COPYRIGHT <a name=\"COPYRIGHT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Copyright \u00a9 2007-2019 by Apple Inc.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  cupsd\u2212logs \u2212 cupsd log files (access_log, error_log, and page_log) <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1460,1291],"class_list":["post-4488","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-cupsd-logs","tag-man5"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4488"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4488\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}