{"id":6065,"date":"2019-05-04T21:35:17","date_gmt":"2019-05-04T18:35:17","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=6065"},"modified":"2019-05-04T21:35:17","modified_gmt":"2019-05-04T18:35:17","slug":"wekans-mongodb-log-grows-pretty-large-unlimited","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2019\/05\/04\/wekans-mongodb-log-grows-pretty-large-unlimited\/","title":{"rendered":"Wekan&#8217;s mongodb.log grows pretty large (unlimited?)"},"content":{"rendered":"<p>I noticed my mongodb.log has grown pretty large:<\/p>\n<pre><code>root@battra:~# ls -lh \/var\/snap\/wekan\/common\/mongodb.log\r\n-rw-r--r-- 1 root root 3,1G touko  4 21:14 \/var\/snap\/wekan\/common\/mongodb.log\r\n<\/code><\/pre>\n<p>The first lines in the log are timestamped 2018-03-02T16:39:44.754+0200.<\/p>\n<p>Should the log rotate automatically, but doesn&#8217;t for some reason? Alternatively, should I truncate it manually (and if so, how)? I have no use for the logs apart from the occasional bug reports here, so even losing all of it is fine.<\/p>\n<p>There are no related mongodb settings keys AFAICS. (And sorry if this is unrelated to snap packaging, it was just a guess on my part.)<\/p>\n<p><strong>Server Setup Information<\/strong>:<\/p>\n<ul>\n<li>Wekan version: 2.65<\/li>\n<li>Operating System: Ubuntu 16.04<\/li>\n<li>Deployment Method: snap<\/li>\n<li>Http frontend if any: Apache 2.4<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I noticed my mongodb.log has grown to be 3,1 GB in size. Should the log rotate automatically, or, alternatively, should I truncate it manually?<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[14066,14051,14042],"class_list":["post-6065","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-mongodb","tag-snap","tag-wekan","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6065","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=6065"}],"version-history":[{"count":1,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6065\/revisions"}],"predecessor-version":[{"id":6066,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6065\/revisions\/6066"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=6065"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=6065"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=6065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}