{"id":8506,"date":"2022-08-16T21:21:13","date_gmt":"2022-08-16T21:21:13","guid":{"rendered":"https:\/\/www.use-snip.com\/kb\/?post_type=ht_kb&#038;p=8506"},"modified":"2022-08-16T21:24:27","modified_gmt":"2022-08-16T21:24:27","slug":"web-api-console-logs","status":"publish","type":"ht_kb","link":"https:\/\/www.use-snip.com\/kb\/knowledge-base\/web-api-console-logs\/","title":{"rendered":"Web API, Console Logs"},"content":{"rendered":"<p>From <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> Rev <strong>3.06<\/strong> onward, the <a href=\"https:\/\/www.use-snip.com\/kb\/knowledge-base\/web-api-top-page\/\" target=\"_blank\" rel=\"noopener\">Web API<\/a> now supports retrieving recent console logs over the web interface.\u00a0\u00a0 The console log details are the same the administrator \/ operator would see if viewing the application from the desktop.\u00a0 An active <a href=\"https:\/\/www.use-snip.com\/downloads\/snip_web\/\" target=\"_blank\" rel=\"noopener\">Web API Plug-In<\/a> is required to use this functionality.\u00a0\u00a0 The new controls are displayed as part of the <a href=\"https:\/\/www.use-snip.com\/kb\/knowledge-base\/web-api-top-page\/\" target=\"_blank\" rel=\"noopener\">Web Top Page<\/a> and are shown below.\u00a0 These controls are only shown to <strong>Admin<\/strong> uses accounts who are logged on with <em>read-write<\/em> permissions<\/p>\n<p><a href=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/08\/Web_ConsoleWidgets.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8509 size-full\" src=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/08\/Web_ConsoleWidgets.png?_t=1660683281\" alt=\"\" width=\"730\" height=\"170\" srcset=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/08\/Web_ConsoleWidgets.png 730w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/08\/Web_ConsoleWidgets-300x70.png 300w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/08\/Web_ConsoleWidgets-50x12.png 50w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/08\/Web_ConsoleWidgets-600x140.png 600w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/08\/Web_ConsoleWidgets-320x75.png 320w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/a><\/p>\n<h3>Usage<\/h3>\n<p>This control provides three present buttons to extract the &#8220;tail&#8221; of the log, and the Filter\/Search control can be used to return only those console entries which match the provided string.<\/p>\n<h4>Last 50 Button<\/h4>\n<p>Pressing this button returns the last <strong>fifty<\/strong> console log entries in a web page lay out.<\/p>\n<p>Like all returned logs, the format used presents the\u00a0 Day of Week, full date,and time (in the time zone used by the Caster) before the actual entry.\u00a0 [<span style=\"color: #008000;\"><strong>Hint<\/strong><\/span>: You can control the style shown on the console log itself by toggling the menu item <strong>Types<\/strong> \u21d2 <strong>Toggle the Label Style used<\/strong>\u00a0 (which is located in the middle of the main screen). A wide number of style are supported.]<\/p>\n<p>Two entries for a typical example log returned in this style are shown below<\/p>\n<pre style=\"padding-left: 40px;\">[<span style=\"color: #008000;\"><strong>Aug 16 Tue 20:58:11]:[C15001<\/strong><\/span>]: \u00a0\u00a0No matching mount point, requested: [<span style=\"color: #ff0000;\"><strong>Mike<\/strong><\/span>], sending Caster Table and disconnecting.\r\n[<span style=\"color: #008000;\"><strong>Aug 16 Tue 20:58:11]:[C15001<\/strong><\/span>]: \u00a0\u00a0Client '<span style=\"color: #0000ff;\"><strong>mike' #C5001 [85.xx.234.xx<\/strong><\/span>:61205] Disconnect (tried to mount Mike, was Never in table),139 Bytes in, 76.53 KB out, \r\n\u00a0\u00a0\u00a0 <span style=\"color: #ff0000;\"><strong>CAUTION<\/strong><\/span>: The Bad Connections in a Row counter has risen to 219 for this IP, ban\/block trips past 500 \/ 500<\/pre>\n<h4>Last 250 Button<\/h4>\n<p>Pressing this button returns the last <strong>two hundred and fifty<\/strong> console log entries in a web page lay out.<\/p>\n<h4>Last 500 Button<\/h4>\n<p>Pressing this button returns the last <strong>five hundred <\/strong>console log entries in a web page lay out.<\/p>\n<h4>Search Button<\/h4>\n<p>The Search button allows entering a text string to filter the entries on.\u00a0 Any log entry which matches (in a case insensitive way) is then returned.\u00a0 This is an excellent way to reduced the returned log to only the entries that matter.<\/p>\n<p>The most typical usage is to enter a fragment of the name of a Base Station or User account who is having problems and examine the results.<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>Keep in mind that the console log is finite.\u00a0 Only the last ~15,000 entries are kept at any time.\u00a0 For a very busy NTRIP Caster this may provide recent logs spanning back for a few hours.\u00a0 For a less busy NTRIP Caster, this may cover a period of several weeks.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From SNIP Rev 3.06 onward, the Web API now supports retrieving recent console logs over the web interface.\u00a0\u00a0 The console log details are the same the administrator \/ operator would see if viewing the application from the desktop.\u00a0 An active Web API Plug-In is required to use this functionality.\u00a0\u00a0 The [&hellip;]<\/p>\n","protected":false},"author":13,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"ht-kb-category":[418],"ht-kb-tag":[326,201,518],"class_list":["post-8506","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-reports","ht_kb_tag-console","ht_kb_tag-reports","ht_kb_tag-web-api"],"_links":{"self":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb\/8506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/comments?post=8506"}],"version-history":[{"count":5,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb\/8506\/revisions"}],"predecessor-version":[{"id":8513,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb\/8506\/revisions\/8513"}],"wp:attachment":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/media?parent=8506"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=8506"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=8506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}