{"id":2249,"date":"2019-01-07T18:43:53","date_gmt":"2019-01-07T18:43:53","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=2249"},"modified":"2019-01-07T18:44:58","modified_gmt":"2019-01-07T18:44:58","slug":"librenms-manually-clean-up-mysql-syslog-database","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/librenms-manually-clean-up-mysql-syslog-database\/","title":{"rendered":"LibreNMS manually clean up MySQL Syslog Database"},"content":{"rendered":"\n<p>Adding the following option to the config.php file is supposed to delete anything over 30 days.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>$config['syslog_purge']                                 = 30;<\/code><\/pre>\n\n\n\n<p>You can also manually delete the entries out of the MySQL database by logging into MySQL, selecting the librenms database, and running the command below. <\/p>\n\n\n\n<p>The command deletes all entries older than 12\/9\/2018 at 08:00. Change the date and time as needed.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">DELETE FROM syslog WHERE timestamp &lt; '2018-12-9 08:00:00';<\/pre>\n\n\n\n<p>The following link has some more clean up options.<br><a href=\"https:\/\/docs.librenms.org\/Support\/Cleanup-options\/\"><a href=\"https:\/\/docs.librenms.org\/Support\/Cleanup-options\/\">https:\/\/docs.librenms.org\/Support\/Cleanup-options\/<\/a><\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Adding the following option to the config.php file is supposed to delete anything over 30 days. $config[&#8216;syslog_purge&#8217;] = 30; You can also manually delete the entries out of the MySQL database by logging into MySQL, selecting the librenms database, and &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/librenms-manually-clean-up-mysql-syslog-database\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[352,3],"tags":[568,567,353,134,389,566,565,283,564],"class_list":["post-2249","post","type-post","status-publish","format-standard","hentry","category-librenms","category-linux","tag-datebase","tag-delete","tag-librenms","tag-monitoring","tag-nms","tag-purge","tag-rsyslog","tag-sql","tag-syslog"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=2249"}],"version-history":[{"count":2,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2249\/revisions"}],"predecessor-version":[{"id":2251,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2249\/revisions\/2251"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=2249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=2249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=2249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}