{"id":473,"date":"2012-11-20T11:10:00","date_gmt":"2012-11-20T11:10:00","guid":{"rendered":""},"modified":"2019-09-18T15:58:19","modified_gmt":"2019-09-18T10:28:19","slug":"managing-logs-of-application","status":"publish","type":"post","link":"https:\/\/opstree.com\/blog\/2012\/11\/20\/managing-logs-of-application\/","title":{"rendered":"Managing logs of Application"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align:left;\">A major issue that people face in managing a big system is log files management. In our setup we were primarily facing two issues<\/div>\n<div dir=\"ltr\" style=\"text-align:left;\">\n1.) We had around 10-15 different applications, it was a messy things to track the logs as you have to login to those systems to view the logs<br \/>\n2.) Other issue was cleaning up of log files<\/div>\n<div dir=\"ltr\" style=\"text-align:left;\">\n<div dir=\"ltr\">\nResolution for the second issue was quiet easy, one of the solution can be to write a script that will delete the logs files older then say n days and then add this script in crontab to execute with some frequency say daily. This approach had an issue, with the addition of a new system you have to do this setup every-time. As a one time solution for this problem we have created a job in our CI system(jenkins) which can be configured to run after some frequency &amp; then reads the details of machine, location of log files which needs to be cleaned. The second approach gave us the flexibility to manage cleaning of the log files from a single place.<\/div>\n<p>For first issue obviously we have to look out for some tool &amp; the first google hit \ud83d\ude42 suggested log.io and it seemed meeting all our requirements. So the one line definition goes like this <b>Log IO is a Real time log monitoring tool, through this tool you can monitor multiple log files in a single browser window<\/b>.<\/p>\n<p>I referred the link given below to configure logio<br \/>\n<a href=\"http:\/\/linuxdo.blogspot.in\/2012\/05\/install-logio-on-centos.html\" target=\"_blank\" rel=\"noopener\">http:\/\/linuxdo.blogspot.in\/2012\/05\/install-logio-on-centos.html<\/a><\/p>\n<p>I&#8217;m not going into the details of setting up of log.io or how it works, but if you have any confusion you can leave a comment<\/p>\n<p>For your reference I&#8217;m attaching an image of log.io instance we are using<\/p>\n<div class=\"separator\" style=\"clear:both;text-align:center;\"><a style=\"margin-left:1em;margin-right:1em;\" href=\"https:\/\/opstree.com\/blog\/\/wp-content\/uploads\/2012\/11\/3cd57-screenshotfrom2012-11-20163822.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/opstree.com\/blog\/\/wp-content\/uploads\/2012\/11\/3cd57-screenshotfrom2012-11-20163822.png?w=300\" width=\"320\" height=\"182\" border=\"0\"><\/a><\/div>\n<p>So happy logs tracking \ud83d\ude42<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>A major issue that people face in managing a big system is log files management. In our setup we were primarily facing two issues 1.) We had around 10-15 different applications, it was a messy things to track the logs as you have to login to those systems to view the logs 2.) Other issue &hellip; <a href=\"https:\/\/opstree.com\/blog\/2012\/11\/20\/managing-logs-of-application\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Managing logs of Application&#8221;<\/span><\/a><\/p>\n","protected":false},"author":171775670,"featured_media":29900,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[28070474],"tags":[124412531,90711304,676319259],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/opstree.com\/blog\/wp-content\/uploads\/2025\/11\/DevSecOps-1.jpg","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pfDBOm-7D","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/posts\/473"}],"collection":[{"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/users\/171775670"}],"replies":[{"embeddable":true,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/comments?post=473"}],"version-history":[{"count":4,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/posts\/473\/revisions"}],"predecessor-version":[{"id":1117,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/posts\/473\/revisions\/1117"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/media\/29900"}],"wp:attachment":[{"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/media?parent=473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/categories?post=473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/tags?post=473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}