{"id":14976,"date":"2021-01-22T10:57:26","date_gmt":"2021-01-22T05:27:26","guid":{"rendered":"https:\/\/www.botreetechnologies.com\/blog\/?p=14976"},"modified":"2021-09-09T15:56:27","modified_gmt":"2021-09-09T10:26:27","slug":"rotate-log-files-in-rails-application-with-logrotate-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/","title":{"rendered":"Rotate Log Files in Rails Application with LogRotate in Ubuntu"},"content":{"rendered":"\n<p>We all know that when you hire <a href=\"https:\/\/www.botreetechnologies.com\/ruby-on-rails-development\">Ruby on Rails web development services<\/a> for a web app, the application server is processing the requests, it creates log files. Few weeks ago, one of my application server crashed several times. By looking into server logs, we found that log files consume too much space in the server.<\/p>\n\n\n\n<p>However if the log files keep growing they can outrun the disk space and there might be chances of your application server crashes. Now how to resolve this issue ? Let&#8217;s see the solution I have preferred for Log Rotation.<\/p>\n\n\n\n<p>Linux is providing a standard utility called Logrotate which has all the features you typically need!<\/p>\n\n\n\n<p><strong>Let\u2019s see how to work with <a href=\"https:\/\/linux.die.net\/man\/8\/logrotate\" target=\"_blank\" rel=\"noreferrer noopener\">Logrotate<\/a> library to rotate our Rails application\u2019s log files.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Log Rotation setup is really easy. A bunch of your operating system is already using it, we just need to plug in our configuration and we are set!<ul><li>The first step is to open up the configuration file of your application under <strong>\u2018\/etc\/logrotate.d\u2019 <\/strong>folder by using <strong>vim<\/strong> or <strong>nano<\/strong>.<\/li><li>e.g. =&gt; sudo nano your_application_name<\/li><li>Now add the following content in the file you just created,<\/li><\/ul><\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"419\" height=\"166\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/your_application_name.png\" alt=\"Now add the following content in the file \" class=\"wp-image-14977\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/your_application_name.png 419w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/your_application_name-300x119.png 300w\" sizes=\"auto, (max-width: 419px) 100vw, 419px\" \/><\/figure><\/div>\n\n\n\n<p><strong>Let\u2019s see what each line actually means.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>daily<\/strong> &#8211; Log files are rotated daily.<\/li><li><strong>missingok<\/strong> &#8211; if the log file is missing, go to the next one without issuing an error message.<\/li><li><strong>rotate 7<\/strong> &#8211; log files are rotated 7 times before it will be deleted or mail to the address specified in mail option (you can specify mail option if you want to email the log files)<\/li><li><strong>compress<\/strong> &#8211; this is an important command, for old versions of log files, it will <strong>gzip<\/strong> the log files and saves the disk space.<\/li><li><strong>dateext<\/strong> &#8211; for older versions of log files, it will add date extension like YYYYMMDD instead of simply adding numbers. It will be easy to find every day log files by this command (you can also specify date format by adding <strong>dateformat <\/strong>command).<\/li><li><strong>delaycompress<\/strong> &#8211; this is a cool option used with compress. It delays the compression of rotated log files by one cycle. This is important when an application is not writing new logs immediately and continues writing to the old logs.Delaying compression would ensure the log messages are received in the rotated log file.<\/li><li><strong>copytruncate <\/strong>&#8211; this option is required unless you want to restart the rails application server after log rotation. Otherwise the application continues to log in the old log file. This option truncates the original log file after creating a copy. instead of moving the old log file and optionally creating a new one. It can be used when some program cannot be told to close its log file and thus might continue writing (appending) to the previous log file forever.<\/li><\/ul>\n\n\n\n<p>There are so many&nbsp; other options available in logrotate which <a href=\"https:\/\/www.botreetechnologies.com\/hire-ruby-on-rails-developers\">Ruby on Rails developers<\/a> can use based on their needs. You will find all options <a href=\"https:\/\/linux.die.net\/man\/8\/logrotate\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"150\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/call-now-ruby-on-rails-web-development.png\" alt=\"call now ruby on rails web development\" class=\"wp-image-13325\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/call-now-ruby-on-rails-web-development.png 700w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/call-now-ruby-on-rails-web-development-300x64.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p><strong>Now let\u2019s see how to run log rotation to check that it is working properly.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Run the following commands for checking logrotation. <\/strong><\/li><li>-d (debug mode) :&nbsp; no changes will be made to logs or the logrotate state file.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"515\" height=\"29\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/logrotate-state.png\" alt=\"logrotate state file\" class=\"wp-image-14979\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/logrotate-state.png 515w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/logrotate-state-300x17.png 300w\" sizes=\"auto, (max-width: 515px) 100vw, 515px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>-f (force mode) : it tells the logrotation to force the rotation. Sometimes it is useful after adding new entries to the log rotate configuration file to check it works properly.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"510\" height=\"35\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/og-rotate-configuration-file.png\" alt=\"log rotate configuration file\" class=\"wp-image-14980\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/og-rotate-configuration-file.png 510w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/og-rotate-configuration-file-300x21.png 300w\" sizes=\"auto, (max-width: 510px) 100vw, 510px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>When you forcibly run the logrotate command, you will get the output zip file of your current log file or you can wait until the next day to run it automatically and generate a gzip file of your old log file.<\/li><li>You will find the following output in a few days if your logrotate in rails is working properly.<\/li><li>Note that we have added <strong>*.log <\/strong>in our configuration file, this is why all the logs file inside the log folder will be automatically rotating.<\/li><\/ul>\n\n\n\n<p>As we have mentioned <strong>daily <\/strong>option, the following output is of everyday rotation. You can specify <strong>weekly<\/strong> and <strong>monthly<\/strong> options also.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"28\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/rotation-options.png\" alt=\"rotation options\" class=\"wp-image-14978\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/rotation-options.png 512w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/rotation-options-300x16.png 300w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p><strong>Congratulations, you\u2019re set!&nbsp; Happy log rotating \ud83d\ude42<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We all know that when you hire Ruby on Rails&#8230;<\/p>\n","protected":false},"author":54,"featured_media":14983,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,10],"tags":[],"class_list":["post-14976","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ruby-on-rails","category-technology"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Rotate Log Files in Rails Application with LogRotate in Ubuntu<\/title>\n<meta name=\"description\" content=\"Want to know how to rotate log files in a Rails application? Here\u2019s how to use logrotate installation in Ubuntu for automatically rotating log files in your Rails web app.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Rotate Log Files in Rails Application with LogRotate in Ubuntu\" \/>\n<meta property=\"og:description\" content=\"Want to know how to rotate log files in a Rails application? Here\u2019s how to use logrotate installation in Ubuntu for automatically rotating log files in your Rails web app.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/\" \/>\n<meta property=\"og:site_name\" content=\"BoTree Technologies\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/BoTreeTechnologies\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-22T05:27:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-09T10:26:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/logrotate-in-rails-application.png\" \/>\n\t<meta property=\"og:image:width\" content=\"852\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Harmisha Prajapati\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@BoTreeTech\" \/>\n<meta name=\"twitter:site\" content=\"@BoTreeTech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Harmisha Prajapati\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/\"},\"author\":{\"name\":\"Harmisha Prajapati\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/679b29043917ad5a013fcadd40f0dde7\"},\"headline\":\"Rotate Log Files in Rails Application with LogRotate in Ubuntu\",\"datePublished\":\"2021-01-22T05:27:26+00:00\",\"dateModified\":\"2021-09-09T10:26:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/\"},\"wordCount\":686,\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/logrotate-in-rails-application.png\",\"articleSection\":[\"Ruby on Rails\",\"Technology\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/\",\"name\":\"Rotate Log Files in Rails Application with LogRotate in Ubuntu\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/logrotate-in-rails-application.png\",\"datePublished\":\"2021-01-22T05:27:26+00:00\",\"dateModified\":\"2021-09-09T10:26:27+00:00\",\"author\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/679b29043917ad5a013fcadd40f0dde7\"},\"description\":\"Want to know how to rotate log files in a Rails application? Here\u2019s how to use logrotate installation in Ubuntu for automatically rotating log files in your Rails web app.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/#primaryimage\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/logrotate-in-rails-application.png\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/logrotate-in-rails-application.png\",\"width\":852,\"height\":420,\"caption\":\"Application Log Files Rotation with Logrotate in Ubuntu\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.botreetechnologies.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rotate Log Files in Rails Application with LogRotate in Ubuntu\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#website\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/\",\"name\":\"BoTree Technologies\",\"description\":\"Committed to inspire generation.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.botreetechnologies.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/679b29043917ad5a013fcadd40f0dde7\",\"name\":\"Harmisha Prajapati\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/harmisha-prajapati-150x150.png\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/harmisha-prajapati-150x150.png\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/harmisha-prajapati-150x150.png\",\"caption\":\"Harmisha Prajapati\"},\"description\":\"I am a Ruby on Rails Developer. I like to develop web applications using Ruby and Rails framework. Apart from that in my free time, I like to read novels.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Rotate Log Files in Rails Application with LogRotate in Ubuntu","description":"Want to know how to rotate log files in a Rails application? Here\u2019s how to use logrotate installation in Ubuntu for automatically rotating log files in your Rails web app.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/","og_locale":"en_US","og_type":"article","og_title":"Rotate Log Files in Rails Application with LogRotate in Ubuntu","og_description":"Want to know how to rotate log files in a Rails application? Here\u2019s how to use logrotate installation in Ubuntu for automatically rotating log files in your Rails web app.","og_url":"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/","og_site_name":"BoTree Technologies","article_publisher":"https:\/\/www.facebook.com\/BoTreeTechnologies\/","article_published_time":"2021-01-22T05:27:26+00:00","article_modified_time":"2021-09-09T10:26:27+00:00","og_image":[{"width":852,"height":420,"url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/logrotate-in-rails-application.png","type":"image\/png"}],"author":"Harmisha Prajapati","twitter_card":"summary_large_image","twitter_creator":"@BoTreeTech","twitter_site":"@BoTreeTech","twitter_misc":{"Written by":"Harmisha Prajapati","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/#article","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/"},"author":{"name":"Harmisha Prajapati","@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/679b29043917ad5a013fcadd40f0dde7"},"headline":"Rotate Log Files in Rails Application with LogRotate in Ubuntu","datePublished":"2021-01-22T05:27:26+00:00","dateModified":"2021-09-09T10:26:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/"},"wordCount":686,"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/logrotate-in-rails-application.png","articleSection":["Ruby on Rails","Technology"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/","url":"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/","name":"Rotate Log Files in Rails Application with LogRotate in Ubuntu","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/#primaryimage"},"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/logrotate-in-rails-application.png","datePublished":"2021-01-22T05:27:26+00:00","dateModified":"2021-09-09T10:26:27+00:00","author":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/679b29043917ad5a013fcadd40f0dde7"},"description":"Want to know how to rotate log files in a Rails application? Here\u2019s how to use logrotate installation in Ubuntu for automatically rotating log files in your Rails web app.","breadcrumb":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/#primaryimage","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/logrotate-in-rails-application.png","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2021\/01\/logrotate-in-rails-application.png","width":852,"height":420,"caption":"Application Log Files Rotation with Logrotate in Ubuntu"},{"@type":"BreadcrumbList","@id":"https:\/\/www.botreetechnologies.com\/blog\/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.botreetechnologies.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Rotate Log Files in Rails Application with LogRotate in Ubuntu"}]},{"@type":"WebSite","@id":"https:\/\/www.botreetechnologies.com\/blog\/#website","url":"https:\/\/www.botreetechnologies.com\/blog\/","name":"BoTree Technologies","description":"Committed to inspire generation.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.botreetechnologies.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/679b29043917ad5a013fcadd40f0dde7","name":"Harmisha Prajapati","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/harmisha-prajapati-150x150.png","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/harmisha-prajapati-150x150.png","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/harmisha-prajapati-150x150.png","caption":"Harmisha Prajapati"},"description":"I am a Ruby on Rails Developer. I like to develop web applications using Ruby and Rails framework. Apart from that in my free time, I like to read novels."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/14976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/users\/54"}],"replies":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=14976"}],"version-history":[{"count":4,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/14976\/revisions"}],"predecessor-version":[{"id":16271,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/14976\/revisions\/16271"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media\/14983"}],"wp:attachment":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=14976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=14976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=14976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}