Hi All,
Our LibreNMS install is configured to receive syslog from many devices. Disk usage under the database has continued to grow. The culprit is the syslog table. I’m attempting to find a purge interval that prevents the table from growing.
Initially we were running $config[‘syslog_purge’] = 90. Then we tried 30. Now I’m at 7 and I continue to lose space. “show table status like ‘syslog’” does not indicate an increase in “data_free”, which, I would guess, indicates we aren’t purging records within the table.
I’m not expecting the table to shrink, that’s not how MariaDB works, but I would expect new syslog to occupy previously emptied rows within the existing DB footprint.
Is there a way to confirm daily.sh is actually purging the syslog table of older entries? It’s running successfully from cron. I have also run it manually just to see the logging. I see other tables have entries cleared but there’s no mention of the syslog table. Below is the output from this morning’s cron run of daily.sh. Anybody have any ideas?
Caching PeeringDB data
Peering DB integration disabled
Returned: 0
Updating to latest release
HEAD is now at 00baac5... Bump version to 1.57
Returned: 0
Updating Composer packages
> LibreNMS\ComposerHelper::preInstall
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Discovered Package: fideloper/proxy
Discovered Package: laravel/laravel
Discovered Package: laravel/tinker
Discovered Package: martinlindhe/laravel-vue-i18n-generator
Discovered Package: nesbot/carbon
Discovered Package: oriceon/toastr-5-laravel
Discovered Package: spatie/laravel-cors
Discovered Package: tightenco/ziggy
Package manifest generated successfully.
> LibreNMS\ComposerHelper::postInstall
> Illuminate\Foundation\ComposerScripts::postInstall
> @php artisan vue-i18n:generate
Returned: 0
Updating SQL-Schema
Nothing to migrate.
Returned: 0
Updating submodules
Returned: 0
Cleaning up DB
Refreshing alert rules queries
Clearing OS cache
Refreshing device group table relationships
Eventlog cleared for entries over 30 days
Perf times cleared for entries over 30 days
Device perf cleared for entries over 7 days
Ports fdb cleared for entries over 10 days
All deleted ports now purged
Returned: 0
Fetching notifications
[ Fri, 15 Nov 2019 02:13:39 -0500 ] http://www.librenms.org/notifications.rss (44)
[ Fri, 15 Nov 2019 02:13:40 -0500 ] misc/notifications.rss (55)
[ Fri, 15 Nov 2019 02:13:40 -0500 ] Updating DB Done
Returned: 0
Caching PeeringDB data
Peering DB integration disabled
Returned: 0