How to truncate db records

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
robjohn
Posts: 4
Joined: Fri Jan 22, 2016 9:23 am

How to truncate db records

Post by robjohn »

We have a recent install, and discovered we have insufficient storage at this time to collect Windows Event logs, which are consuming 80% of our storage. We've decided to postpone collecting Windows Event Logs. Is there a way to delete records older than X days or by type of record? We've already consumed 90% of our planned storage.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: How to truncate db records

Post by hsmith »

Log in to NLS as an administrator and go to Administration > Backup & Maintenance > Maintenance Settings.

From here you'll be able to adjust the thresholds of how long logs are kept for.
Former Nagios Employee.
me.
robjohn
Posts: 4
Joined: Fri Jan 22, 2016 9:23 am

Re: How to truncate db records

Post by robjohn »

Thank you and please excuse my newness to NLS.

Our current settings are:

Optimize Indexes older than 2 days
Close indexes older than 0 days
Delete indexes older than 0 days
backups are enabled but not configured.

I'd like to temporarily delete everything older than 1 day.

What would you recommend the settings be? I suspect "delete indexes older than 0 days" should be changed to 1 day for a while.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: How to truncate db records

Post by hsmith »

If your information isn't something you need to archive, that's fine. How much disk space are you working with?
Former Nagios Employee.
me.
Locked