{"id":7537,"date":"2020-09-10T13:51:19","date_gmt":"2020-09-10T04:51:19","guid":{"rendered":"https:\/\/chat-messenger.com\/?p=7537"},"modified":"2025-06-08T16:17:15","modified_gmt":"2025-06-08T07:17:15","slug":"accesslog","status":"publish","type":"post","link":"https:\/\/chat-messenger.com\/en\/manual\/camserver\/accesslog","title":{"rendered":"Access log records"},"content":{"rendered":"<p><style type=\"text\/css\"><!--\ntable, th, td {\n    border: none !important;\n}\n--><\/style><\/p>\n<h2>About the Access Log<\/h2>\n<p>You can record logs of clients accessing on-premises CAMServer.<br \/>There are two ways to view access logs: one is to view them from the management screen, and the other is to record them in text format.<\/p>\n<h2>Access log of the management screen<\/h2>\n<table style=\"padding: 5px; width: 600px;\">\n<tbody>\n<tr align=\"top\">\n<td width=\"200\">\n<div class=\"card-img post_img\"><img src=\"\/images\/attendance_accesslog.png\" border=\"0\" \/><\/div>\n<\/td>\n<td>Access logs for each user can be viewed on the management screen.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"point\">\n<ul>\n<li>Access logs for the management screen are available for Cloud Enterprise and On-premise Ultimate.<\/li>\n<li>PC utilization status can be viewed when time and attendance management is enabled.<\/li>\n<\/ul>\n<\/div>\n<h2>Text access log<\/h2>\n<h3>Recording Method<\/h3>\n<ol>\n<li>CAMServer stop<\/li>\n<li><code>CAMServer\/boot.ini<\/code> Add the following section to the file\n<pre class=\"sample_src\">Log every # HTTP access\ncam.enableServerAccessLog=true\n# Optional. Add the login authentication email to the log above (email is partially masked and logged)\ncam.enableServerAccessLogEmail=true\n<\/pre>\n<\/li>\n<li>CAMServer startup<\/li>\n<\/ol>\n<h3>Log Storage Location<\/h3>\n<p>Once the above settings are completed <code>CAMServer\/sys\/logs\/YYYYMM_application0.log<\/code> Access logs are recorded in the file.<\/p>\n<p>*YYYYMM is the year and month when CAMServer was started.<\/p>\n<p>* Log files are rotated in 50MB increments, and the 0th file in YYYYMM_application0.log is the log file currently being output. The file with the lowest serial number is the newest log file for the current month.<\/p>\n<h3>What is recorded<\/h3>\n<p>Access logs are logged in the following format<\/p>\n<p><small><i>Date:[INFO]:CAMServlet :Request \/CAMServer\/API Endpoint Client IP Masked Email Part of User ID Part of Session ID Client Terminal Identifier (web|electron|android|ios)<\/i><\/small><\/p>\n<pre class=\"sample_src\">2022\/09\/10 13:57:09:[INFO]:CAMServlet :Request \/CAMServer\/getpublickey 192.168.1.XX tes*ou*an*be*te*t*co* 1gh7pgnovpss 856C9E2 web\n2022\/09\/10 13:57:09:[INFO]:CAMServlet :Request \/CAMServer\/getack 192.168.1.XX tes*ou*an*be*te*t*co* 1gh7pgnovpss 856C9E2 web\n2022\/09\/10 13:57:09:[INFO]:CAMServlet :Request \/CAMServer\/serverInfo 192.168.1.XX tes*ou*an*be*te*t*co* 1gh7pgnovpss 856C9E2 web\n2022\/09\/10 13:57:09:[INFO]:CAMServlet :Request \/CAMServer\/signIn 192.168.1.XX tes*ou*an*be*te*t*co* 1gh7pgnovpss 856C9E2 web\n2022\/09\/10 13:57:10:[INFO]:CAMServlet :Request \/CAMServer\/getTalkList 192.168.1.XX tes*ou*an*be*te*t*co* 1gh7pgnovpss 856C9E2 web\n2022\/09\/10 13:57:10:[INFO]:CAMServlet :Request \/CAMServer\/getUserPref 192.168.1.XX tes*ou*an*be*te*t*co* 1gh7pgnovpss 856C9E2 web\n2022\/09\/10 13:57:10:[INFO]:CAMServlet :Request \/CAMServer\/getLatestEntities 192.168.1.XX tes*ou*an*be*te*t*co* 1gh7pgnovpss 856C9E2 web\n<\/pre>\n\n\n<h2>Log monitoring<\/h2>\n\n\n\n<p>In order to detect an abnormality that occurs in CAMServer from the log, the log file output by CAMServer (<code>CAMServer\/sys\/logs\/YYYYMM_application0.log<\/code>) should be monitored with a log monitoring tool.<\/p>\n\n\n\n<p>In most cases<code> [SEVERE] <\/code>Please monitor it with a monitoring tool.<\/p>\n\n\n\n<h3>WARNING level<\/h3>\n\n\n\n<ul><li>Content: Output in case of authentication error, API access error, or unexpected error on the client side<\/li><li>Impact: Harmless in most cases<\/li><\/ul>\n\n\n\n<div class=\"hcb_wrap\" data-no-translation=\"\"><pre class=\"prism line-numbers lang-bash\" data-file=\"\u51fa\u529b\u30b5\u30f3\u30d7\u30eb\" data-lang=\"Bash\"><code>2024\/05\/23 16:29:15:[WARNING]:CAMServlet :app.base.AppLevelException: Bad request.<\/code><\/pre><\/div>\n\n\n\n<h3>SEVERE level<\/h3>\n\n\n\n<ul><li>Contents: Disk failure, insufficient disk space, insufficient memory, product bug, etc.<\/li><li>Impact level: Since it has an impact, it needs to be dealt with. However, although it is harmless, it can also occur due to oversight of the product itself, so it is necessary to set up exclusions in monitoring tools for logs that occur frequently.<\/li><\/ul>\n\n\n\n<div class=\"hcb_wrap\" data-no-translation=\"\"><pre class=\"prism line-numbers lang-bash\" data-file=\"\u51fa\u529b\u30b5\u30f3\u30d7\u30eb\" data-lang=\"Bash\"><code>2024\/05\/23 09:29:57:[SEVERE]:ErrorHandler :An error has occurred. java.lang.NullPointerException<\/code><\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>About access logs Logs of clients accessing on-premises CAMServer can be recorded [\u2026]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":""},"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/posts\/7537"}],"collection":[{"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/comments?post=7537"}],"version-history":[{"count":10,"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/posts\/7537\/revisions"}],"predecessor-version":[{"id":12179,"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/posts\/7537\/revisions\/12179"}],"wp:attachment":[{"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/media?parent=7537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/categories?post=7537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/tags?post=7537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}