{"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\/vi\/thu-cong\/camserver\/nhat-ky-truy-cap","title":{"rendered":"Ghi nh\u1eadt k\u00fd truy c\u1eadp"},"content":{"rendered":"<p><style type=\"text\/css\"><!--\ntable, th, td {\n    border: none !important;\n}\n--><\/style><\/p>\n<h2>Gi\u1edbi thi\u1ec7u v\u1ec1 nh\u1eadt k\u00fd truy c\u1eadp<\/h2>\n<p>B\u1ea1n c\u00f3 th\u1ec3 ghi l\u1ea1i nh\u1eadt k\u00fd c\u1ee7a kh\u00e1ch h\u00e0ng truy c\u1eadp CAMServer t\u1ea1i ch\u1ed7.<br \/>C\u00f3 hai c\u00e1ch \u0111\u1ec3 xem nh\u1eadt k\u00fd truy c\u1eadp: m\u1ed9t l\u00e0 xem ch\u00fang t\u1eeb m\u00e0n h\u00ecnh qu\u1ea3n l\u00fd v\u00e0 hai l\u00e0 ghi l\u1ea1i ch\u00fang \u1edf \u0111\u1ecbnh d\u1ea1ng v\u0103n b\u1ea3n.<\/p>\n<h2>Nh\u1eadt k\u00fd truy c\u1eadp m\u00e0n h\u00ecnh qu\u1ea3n l\u00fd<\/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>B\u1ea1n c\u00f3 th\u1ec3 xem nh\u1eadt k\u00fd truy c\u1eadp c\u1ee7a t\u1eebng ng\u01b0\u1eddi d\u00f9ng tr\u00ean m\u00e0n h\u00ecnh qu\u1ea3n l\u00fd.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"point\">\n<ul>\n<li>Nh\u1eadt k\u00fd truy c\u1eadp tr\u00ean m\u00e0n h\u00ecnh qu\u1ea3n l\u00fd c\u00f3 s\u1eb5n cho \u0111\u00e1m m\u00e2y Enterprise v\u00e0 Ultimate t\u1ea1i ch\u1ed7.<\/li>\n<li>C\u00f3 th\u1ec3 xem tr\u1ea1ng th\u00e1i v\u1eadn h\u00e0nh c\u1ee7a m\u00e1y t\u00ednh khi b\u1eadt t\u00ednh n\u0103ng qu\u1ea3n l\u00fd \u0111i\u1ec3m danh.<\/li>\n<\/ul>\n<\/div>\n<h2>Nh\u1eadt k\u00fd truy c\u1eadp v\u0103n b\u1ea3n<\/h2>\n<h3>Ph\u01b0\u01a1ng ph\u00e1p ghi<\/h3>\n<ol>\n<li>CAMM\u00e1y ch\u1ee7 \u0111\u00e3 d\u1eebng<\/li>\n<li><code>CAMServer\/boot.ini<\/code> Th\u00eam ph\u1ea7n sau v\u00e0o t\u1eadp tin\n<pre class=\"sample_src\"># Ghi nh\u1eadt k\u00fd t\u1eebng truy c\u1eadp HTTP cam.enableServerAccessLog=true # T\u00f9y ch\u1ecdn. Th\u00eam email \u0111\u1ec3 x\u00e1c th\u1ef1c \u0111\u0103ng nh\u1eadp v\u00e0o nh\u1eadt k\u00fd tr\u00ean (m\u1ed9t ph\u1ea7n email s\u1ebd b\u1ecb che v\u00e0 ghi l\u1ea1i) cam.enableServerAccessLogEmail=true\n<\/pre>\n<\/li>\n<li>Kh\u1edfi \u0111\u1ed9ng m\u00e1y ch\u1ee7 CAM<\/li>\n<\/ol>\n<h3>V\u1ecb tr\u00ed l\u01b0u tr\u1eef nh\u1eadt k\u00fd<\/h3>\n<p>Sau khi ho\u00e0n t\u1ea5t c\u00e1c c\u00e0i \u0111\u1eb7t tr\u00ean <code>CAMServer\/sys\/logs\/YYYYMM_application0.log<\/code> Nh\u1eadt k\u00fd truy c\u1eadp \u0111\u01b0\u1ee3c ghi l\u1ea1i trong t\u1eadp tin.<\/p>\n<p>*YYYYMM l\u00e0 n\u0103m v\u00e0 th\u00e1ng kh\u1edfi \u0111\u1ed9ng CAMServer.<\/p>\n<p>*T\u1ec7p nh\u1eadt k\u00fd \u0111\u01b0\u1ee3c xoay theo \u0111\u01a1n v\u1ecb 50 MB v\u00e0 t\u1ec7p nh\u1eadt k\u00fd th\u1ee9 0 c\u1ee7a YYYYMM_application0.log l\u00e0 t\u1ec7p nh\u1eadt k\u00fd hi\u1ec7n \u0111ang \u0111\u01b0\u1ee3c xu\u1ea5t ra. T\u1ec7p nh\u1eadt k\u00fd c\u00f3 s\u1ed1 s\u00ea-ri th\u1ea5p nh\u1ea5t l\u00e0 t\u1ec7p nh\u1eadt k\u00fd m\u1edbi c\u1ee7a th\u00e1ng hi\u1ec7n t\u1ea1i.<\/p>\n<h3>Nh\u1eefng g\u00ec \u0111\u01b0\u1ee3c ghi l\u1ea1i<\/h3>\n<p>Nh\u1eadt k\u00fd truy c\u1eadp \u0111\u01b0\u1ee3c ghi l\u1ea1i theo \u0111\u1ecbnh d\u1ea1ng sau.<\/p>\n<p><small><i>Ng\u00e0y v\u00e0 gi\u1edd:[INFO]:CAMServlet :Y\u00eau c\u1ea7u \/\u0111i\u1ec3m cu\u1ed1iCAMServer\/API IP c\u1ee7a kh\u00e1ch h\u00e0ng Email b\u1ecb che gi\u1ea5u M\u1ed9t ph\u1ea7n c\u1ee7a ID ng\u01b0\u1eddi d\u00f9ng M\u1ed9t ph\u1ea7n c\u1ee7a ID phi\u00ean M\u00e3 \u0111\u1ecbnh danh thi\u1ebft b\u1ecb \u0111\u1ea7u cu\u1ed1i c\u1ee7a kh\u00e1ch h\u00e0ng (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 2022\/09\/10 13 :57:09:[INFO]:CAMServlet :Request \/CAMServer\/getack 192.168.1.XX tes*ou*an*be*te*t*co* 1gh7pgnovpss 856C9E2 web 2022\/09\/10 13:57:09:[ INFO]:CAMServlet :Request \/CAMServer\/serverInfo 192.168.1.XX tes*ou*an*be*te*t*co* 1gh7pgnovpss 856C9E2 web 2022\/09\/10 13:57:09:[INFO]:CAMServlet :Request \/CAMServer\/signIn 192.168.1.XX tes*ou*an*be*te*t*co* 1gh7pgnovpss 856C9E2 web 2022\/09\/10 13:57:10:[INFO]:CAMServlet :Request \/CAMServer\/getTalkList 192.168. 1.XX tes*ou*an*be*te*t*co* 1gh7pgnovpss 856C9E2 web 2022\/09\/10 13:57:10:[INFO]:CAMServlet :Request \/CAMServer\/getUserPref 192.168.1.XX tes*ou *an*be*te*t*co* 1gh7pgnovpss 856C9E2 web 2022\/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>Gi\u00e1m s\u00e1t nh\u1eadt k\u00fd<\/h2>\n\n\n\n<p>\u0110\u1ec3 ph\u00e1t hi\u1ec7n l\u1ed7i x\u1ea3y ra trong CAMServer t\u1eeb nh\u1eadt k\u00fd, h\u00e3y ki\u1ec3m tra \u0111\u1ea7u ra t\u1ec7p nh\u1eadt k\u00fd b\u1eb1ng CAMServer (<code>CAMServer\/sys\/logs\/YYYYMM_application0.log<\/code>) n\u00ean \u0111\u01b0\u1ee3c theo d\u00f5i b\u1eb1ng c\u00f4ng c\u1ee5 gi\u00e1m s\u00e1t nh\u1eadt k\u00fd.<\/p>\n\n\n\n<p>Trong h\u1ea7u h\u1ebft c\u00e1c tr\u01b0\u1eddng h\u1ee3p<code> [NGHI\u00caM TR\u1eccNG] <\/code>H\u00e3y theo d\u00f5i b\u1eb1ng c\u00e1c c\u00f4ng c\u1ee5 gi\u00e1m s\u00e1t.<\/p>\n\n\n\n<h3>m\u1ee9c \u0111\u1ed9 C\u1ea2NH B\u00c1O<\/h3>\n\n\n\n<ul><li>N\u1ed9i dung: \u0110\u1ea7u ra trong tr\u01b0\u1eddng h\u1ee3p c\u00f3 l\u1ed7i x\u00e1c th\u1ef1c, l\u1ed7i truy c\u1eadp API ho\u1eb7c l\u1ed7i kh\u00f4ng mong mu\u1ed1n \u1edf ph\u00eda m\u00e1y kh\u00e1ch<\/li><li>T\u00e1c \u0111\u1ed9ng: v\u00f4 h\u1ea1i trong h\u1ea7u h\u1ebft c\u00e1c tr\u01b0\u1eddng h\u1ee3p<\/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>m\u1ee9c \u0111\u1ed9 NGHI\u00caM TR\u1eccNG<\/h3>\n\n\n\n<ul><li>N\u1ed9i dung: L\u1ed7i \u1ed5 \u0111\u0129a, thi\u1ebfu \u1ed5 \u0111\u0129a, thi\u1ebfu b\u1ed9 nh\u1edb, l\u1ed7i s\u1ea3n ph\u1ea9m, v.v.<\/li><li>M\u1ee9c \u0111\u1ed9 t\u00e1c \u0111\u1ed9ng: C\u00f3 t\u00e1c \u0111\u1ed9ng n\u00ean c\u1ea7n ph\u1ea3i h\u00e0nh \u0111\u1ed9ng. Tuy nhi\u00ean, m\u1eb7c d\u00f9 v\u00f4 h\u1ea1i nh\u01b0ng n\u00f3 c\u0169ng c\u00f3 th\u1ec3 x\u1ea3y ra do b\u1ea3n th\u00e2n s\u1ea3n ph\u1ea9m thi\u1ebfu s\u1ef1 c\u00e2n nh\u1eafc, do \u0111\u00f3 c\u1ea7n thi\u1ebft l\u1eadp c\u00e1c lo\u1ea1i tr\u1eeb trong c\u00f4ng c\u1ee5 gi\u00e1m s\u00e1t \u0111\u1ed1i v\u1edbi c\u00e1c nh\u1eadt k\u00fd x\u1ea3y ra th\u01b0\u1eddng xuy\u00ean.<\/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>Gi\u1edbi thi\u1ec7u v\u1ec1 nh\u1eadt k\u00fd truy c\u1eadp B\u1ea1n c\u00f3 th\u1ec3 ghi l\u1ea1i nh\u1eadt k\u00fd c\u1ee7a kh\u00e1ch h\u00e0ng truy c\u1eadp CAMServer t\u1ea1i ch\u1ed7 [\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\/vi\/wp-json\/wp\/v2\/posts\/7537"}],"collection":[{"href":"https:\/\/chat-messenger.com\/vi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chat-messenger.com\/vi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chat-messenger.com\/vi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chat-messenger.com\/vi\/wp-json\/wp\/v2\/comments?post=7537"}],"version-history":[{"count":10,"href":"https:\/\/chat-messenger.com\/vi\/wp-json\/wp\/v2\/posts\/7537\/revisions"}],"predecessor-version":[{"id":12179,"href":"https:\/\/chat-messenger.com\/vi\/wp-json\/wp\/v2\/posts\/7537\/revisions\/12179"}],"wp:attachment":[{"href":"https:\/\/chat-messenger.com\/vi\/wp-json\/wp\/v2\/media?parent=7537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chat-messenger.com\/vi\/wp-json\/wp\/v2\/categories?post=7537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chat-messenger.com\/vi\/wp-json\/wp\/v2\/tags?post=7537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}