{"id":64282,"date":"2024-03-28T10:07:56","date_gmt":"2024-03-28T15:07:56","guid":{"rendered":"https:\/\/connect-community.org\/?p=64282"},"modified":"2024-06-12T22:31:03","modified_gmt":"2024-06-13T03:31:03","slug":"building-a-web-interface-to-a-centralized-view-of-application-logs-with-logwatch","status":"publish","type":"post","link":"https:\/\/connect-community.org\/building-a-web-interface-to-a-centralized-view-of-application-logs-with-logwatch\/","title":{"rendered":"Building a Web Interface to a centralized view of Application Logs with LogWatch"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"64282\" class=\"elementor elementor-64282\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d461ee2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d461ee2\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8abeccc\" data-id=\"8abeccc\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b5fee74 the7-inline-image-yes elementor-widget elementor-widget-image\" data-id=\"b5fee74\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" data-src=\"https:\/\/static.wixstatic.com\/media\/c38e8b_cbabb2cdb4cf4a799e61232a99d16d66~mv2.png\" title=\"\" alt=\"\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" class=\"lazyload\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d074d3b elementor-widget elementor-widget-text-editor\" data-id=\"d074d3b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div data-breakout=\"normal\"><p id=\"viewer-n20yq400\" class=\"KjCpW _2iBaw Jsfyv HbWqo MIiJ6\"><span class=\"dkiuR Jsfyv\">Managing and analyzing log data proved inefficient due to the sheer volume and dispersion of log files across various services and applications. Locating specific entries often necessitated time-consuming manual searches through individual log files.<\/span><\/p><\/div><div data-hook=\"rcv-block3\">\u00a0<\/div><div data-breakout=\"normal\"><p id=\"viewer-38rip555\" class=\"KjCpW _2iBaw Jsfyv HbWqo MIiJ6\"><span class=\"dkiuR Jsfyv\">TIC <a class=\"-uelp I783W\" href=\"https:\/\/www.ticsoftware.com\/logwatch\" target=\"_blank\" rel=\"noopener noreferrer\" data-hook=\"WebLink\">LogWatch<\/a> is a NonStop application log monitoring product that detects anomalies and raises alerts to enable proactive handling of errors. LogWatch is relevant in many different use cases, including monitoring EMS logs, 3rd\u00a0party products like TIC&#8217;s <a class=\"-uelp I783W\" href=\"https:\/\/www.ticsoftware.com\/messaging#telemail\" target=\"_blank\" rel=\"noopener noreferrer\" data-hook=\"WebLink\">TeleMail<\/a>, NuWave product logs, comforte\u2019s Escarps logs, and many others. One of our LogWatch users shares how he has built a useful Web interface to view his application logs easily, including EMS and TIC TeleMail.<\/span><\/p><p id=\"viewer-38rip555\" class=\"KjCpW _2iBaw Jsfyv HbWqo MIiJ6\"><span class=\"dkiuR Jsfyv\">\u00a0<\/span><\/p><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0dcfcc5 elementor-widget elementor-widget-heading\" data-id=\"0dcfcc5\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Overview<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-eb84142 elementor-widget elementor-widget-text-editor\" data-id=\"eb84142\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The idea for this application was to create an easy way for our development team to find\u00a0log\u00a0files quickly and easily all in a single place.\u00a0 The application allows the user to pick a\u00a0log\u00a0file from the list and it would simply display as much data from the\u00a0log\u00a0as could be read in just 10 seconds.\u00a0 The most recent events are always on top.\u00a0 As you scroll down, you can click to see more data.\u00a0 You can even specify a starting date\/time in the text box at the top.\u00a0 This will allow you to quickly jump to the logs several days in the past. Built-in filtering allows the user to see only lines that contain keywords.<\/p><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4ff1bc6 elementor-widget elementor-widget-heading\" data-id=\"4ff1bc6\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Steps<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0339ad1 elementor-widget elementor-widget-text-editor\" data-id=\"0339ad1\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div data-breakout=\"normal\"><h3 id=\"viewer-8fp482156\" class=\"gjIme NrcDx Jsfyv HbWqo MIiJ6\"><span class=\"-MMwf Jsfyv\">LogWatch and Log Data<\/span><\/h3><\/div><div data-breakout=\"normal\"><ul class=\"S5va1 HbWqo\"><li class=\"QK5MW Jsfyv\" dir=\"auto\"><div><p id=\"viewer-a9a5l2531\" class=\"KjCpW _2iBaw Jsfyv HbWqo MIiJ6\"><span class=\"dkiuR Jsfyv\">I use\u00a0LogWatch to pull information from EMS and Telemail logs then write them to a single multi-purpose\u00a0log\u00a0file.\u00a0<\/span><\/p><\/div><\/li><li class=\"QK5MW LRhRI\" dir=\"auto\"><div><p id=\"viewer-dr20m2653\" class=\"KjCpW _2iBaw LRhRI HbWqo MIiJ6\"><span class=\"dkiuR\">The logfile key is an application ID plus the date\/time to the millisecond.\u00a0<\/span><\/p><\/div><\/li><li class=\"QK5MW LRhRI\" dir=\"auto\"><div><p id=\"viewer-9ldgt2656\" class=\"KjCpW _2iBaw LRhRI HbWqo MIiJ6\"><span class=\"dkiuR\">Then the\u00a0LOG\u00a0data can be a long string of text or any number of delimited fields to be displayed.\u00a0<\/span><\/p><\/div><\/li><li class=\"QK5MW LRhRI\" dir=\"auto\"><div><p id=\"viewer-rasyu2661\" class=\"KjCpW _2iBaw LRhRI HbWqo MIiJ6\"><span class=\"dkiuR\">The delimiters allow data to be presented in a web grid with headings.\u00a0<\/span><\/p><\/div><\/li><\/ul><\/div><div data-hook=\"rcv-block11\">\u00a0<\/div><div data-breakout=\"normal\"><h3 id=\"viewer-2rozj4565\" class=\"KjCpW _2iBaw LRhRI MIiJ6\"><strong>Custom COBOL programs<\/strong><\/h3><\/div><div data-breakout=\"normal\"><ul class=\"S5va1 HbWqo\"><li class=\"QK5MW LRhRI\" dir=\"auto\"><div><p id=\"viewer-mi2y55075\" class=\"KjCpW _2iBaw LRhRI HbWqo MIiJ6\"><span class=\"dkiuR\">This\u00a0log\u00a0application has a small config file that identifies the\u00a0log\u00a0ID, Title, Headings, and\u00a0log\u00a0retention period so that the logs will be constantly trimmed according to retention needed.<\/span><\/p><\/div><\/li><li class=\"QK5MW LRhRI\" dir=\"auto\"><div><p id=\"viewer-z7gnz6462\" class=\"KjCpW _2iBaw LRhRI HbWqo MIiJ6\"><span class=\"dkiuR\">An additional\u00a0Log\u00a0service was built to allow all other applications to write to this\u00a0log\u00a0file in a simple way using as few lines of code as possible.<\/span><\/p><\/div><\/li><li class=\"QK5MW LRhRI\" dir=\"auto\"><div><p id=\"viewer-5wigh6589\" class=\"KjCpW _2iBaw LRhRI HbWqo MIiJ6\"><span class=\"dkiuR\">Another service was built to feed data to a web application that displays these logs using a straightforward interface.<br \/><br \/><\/span><\/p><\/div><\/li><\/ul><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4e5765b elementor-widget elementor-widget-heading\" data-id=\"4e5765b\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Result<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3a34d8d elementor-widget elementor-widget-text-editor\" data-id=\"3a34d8d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>A browser-based GUI that allows easy access to application logs, organized in a standard easy-to-understand format. For example, developers can point and click to view EMS logs for the past 90 days or to view TeleMail errors for the past 60 days.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-665ea9d elementor-widget elementor-widget-image\" data-id=\"665ea9d\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" data-src=\"https:\/\/static.wixstatic.com\/media\/c38e8b_d4d0205654804bef97c4fdb7b425f768~mv2.png\" title=\"\" alt=\"\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" class=\"lazyload\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-de9dc5b elementor-widget elementor-widget-heading\" data-id=\"de9dc5b\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\"><br>Point and click to view EMS<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b22aedf elementor-widget elementor-widget-image\" data-id=\"b22aedf\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" data-src=\"https:\/\/static.wixstatic.com\/media\/c38e8b_2a8ecf878a814da988404cc21670a92c~mv2.png\" title=\"\" alt=\"\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" class=\"lazyload\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ae8910a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ae8910a\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5d3e646\" data-id=\"5d3e646\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-be04c2c elementor-widget elementor-widget-heading\" data-id=\"be04c2c\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Point and click to view TeleMail logs <\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6e22e10 elementor-widget elementor-widget-image\" data-id=\"6e22e10\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" data-src=\"https:\/\/static.wixstatic.com\/media\/c38e8b_e0b5045f07cf4bd2865a3567219010f1~mv2.png\" title=\"\" alt=\"\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" class=\"lazyload\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fe2e169 elementor-widget elementor-widget-spacer\" data-id=\"fe2e169\" data-element_type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-568637e elementor-widget elementor-widget-heading\" data-id=\"568637e\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Benefits<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-45cff81 elementor-widget elementor-widget-text-editor\" data-id=\"45cff81\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div data-breakout=\"normal\"><p id=\"viewer-8zvyi21825\" class=\"KjCpW _2iBaw LRhRI HbWqo MIiJ6\"><span class=\"dkiuR\">The centralized log viewer significantly enhanced our log management workflow:<\/span><\/p><\/div><div data-breakout=\"normal\"><ul class=\"S5va1 HbWqo\"><li class=\"QK5MW LRhRI\" dir=\"auto\"><div><p id=\"viewer-0zba423079\" class=\"KjCpW _2iBaw LRhRI HbWqo MIiJ6\"><span class=\"dkiuR\"><strong>Improved Efficiency:<\/strong>\u00a0By consolidating logs, we eliminated the need to search through numerous individual files, streamlining the process of locating relevant information.<\/span><\/p><\/div><\/li><li class=\"QK5MW LRhRI\" dir=\"auto\"><div><p id=\"viewer-ze4z323082\" class=\"KjCpW _2iBaw LRhRI HbWqo MIiJ6\"><span class=\"dkiuR\"><strong>Enhanced Search Capabilities:<\/strong>\u00a0Logwatch&#8217;s filtering mechanisms enabled focused searches based on specific keywords or date ranges, facilitating targeted analysis of log data.<\/span><\/p><\/div><\/li><li class=\"QK5MW LRhRI\" dir=\"auto\"><div><p id=\"viewer-68e6423085\" class=\"KjCpW _2iBaw LRhRI HbWqo MIiJ6\"><span class=\"dkiuR\"><strong>Optimized Log Presentation:\u00a0<\/strong>The customized web interface provided a clear and structured view of log entries, improving the comprehension and analysis of log data.<\/span><\/p><\/div><\/li><\/ul><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1d53a35 elementor-widget elementor-widget-spacer\" data-id=\"1d53a35\" data-element_type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5b6a695 elementor-widget elementor-widget-heading\" data-id=\"5b6a695\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Conclusion<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c7b3d16 elementor-widget elementor-widget-text-editor\" data-id=\"c7b3d16\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div data-breakout=\"normal\"><p id=\"viewer-k0c1w28432\" class=\"KjCpW _2iBaw LRhRI HbWqo MIiJ6\"><span class=\"dkiuR\"><strong>Logwatch serves as a valuable tool for centralizing and managing logs.<\/strong>\u00a0<br \/>Its features significantly improve the efficiency and effectiveness of log analysis, making it a valuable asset for any organization grappling with managing diverse log data. Contact Us today at <a class=\"-uelp I783W\" href=\"mailto:sales-support@ticsoftware.com\" target=\"_blank\" rel=\"noopener\" data-hook=\"WebLink\">sales-support@ticsoftware.com<\/a> for more information.<\/span><\/p><\/div><div data-hook=\"rcv-block36\">Do you find this tutorial blog helpful? Let us know what you think, and how we can improve it. Don\u2019t forget, that you can subscribe to our blogs to get automatic email notifications when a new blog is available.<\/div><div data-hook=\"rcv-block37\">\u00a0<\/div><div data-breakout=\"normal\"><div id=\"viewer-b55tw83161\" class=\"XoPYn\"><div class=\"F5Twd BO8-Y YxOUX\"><div class=\"_7HUcQ\" data-hook=\"divider-single\"><div class=\"cu2iZ\">\u00a0<\/div><\/div><\/div><\/div><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Managing and analyzing log data proved inefficient due to the sheer volume and dispersion of log files across various services and applications. Locating specific entries often necessitated time-consuming manual searches&hellip;<\/p>\n","protected":false},"author":31,"featured_media":64610,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"content-type":"","footnotes":""},"categories":[410],"tags":[1411,435,1412,1410,1415,424,1408,1407,1414,661,1409,1413,804,1416],"coauthors":[1429],"class_list":["post-64282","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","tag-cobol","tag-comforte","tag-development","tag-ems","tag-escarp","tag-hpe-nonstop","tag-log-analysis","tag-logwatch","tag-nonstop-application","tag-nuwave","tag-telemail","tag-tic-logwatch","tag-tic-software","tag-web-interface"],"_links":{"self":[{"href":"https:\/\/connect-community.org\/wp-json\/wp\/v2\/posts\/64282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/connect-community.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/connect-community.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/connect-community.org\/wp-json\/wp\/v2\/users\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/connect-community.org\/wp-json\/wp\/v2\/comments?post=64282"}],"version-history":[{"count":0,"href":"https:\/\/connect-community.org\/wp-json\/wp\/v2\/posts\/64282\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/connect-community.org\/wp-json\/wp\/v2\/media\/64610"}],"wp:attachment":[{"href":"https:\/\/connect-community.org\/wp-json\/wp\/v2\/media?parent=64282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/connect-community.org\/wp-json\/wp\/v2\/categories?post=64282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/connect-community.org\/wp-json\/wp\/v2\/tags?post=64282"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/connect-community.org\/wp-json\/wp\/v2\/coauthors?post=64282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}