Indigo 5 Folder Huge [and growing]

Posted on
Thu Jul 04, 2013 4:36 pm
CraigM offline
Posts: 591
Joined: Oct 28, 2007

Indigo 5 Folder Huge [and growing]

Just backed up my Indigo 5 folder and it took a while to copy... it's 909 mb!

The culprit is the indigo.history.sqlite file it's 840 mb.

Is this normal? Should I revisit my config settings?

My prefs are set to keep last 360 days of log events. The files average 50-100k each.

My SQL Logger config is:
SQL_logger.gif
SQL_logger.gif (45.32 KiB) Viewed 1461 times


What do you folks have as settings, and why? I don't have an issue with a large file, just want to know if the settings are justified and what the setting mean.

Posted on
Fri Jul 05, 2013 8:56 am
jay (support) offline
Site Admin
User avatar
Posts: 18248
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Indigo 5 Folder Huge [and growing]

You are keeping quite a bit of data there, particularly if you've turned on debug logging periodically for the various plugins. I personally don't keep more than a couple of weeks event log history.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Jul 05, 2013 10:29 am
CraigM offline
Posts: 591
Joined: Oct 28, 2007

Re: Indigo 5 Folder Huge [and growing]

So the event log history auto prune is the only item causing excessive growth?

Are all the other settings OK?

Is there a wiki that explains what each setting does and how the info is used?



--Follow up
Changed the event log history auto prune to 2 weeks, and now when I attempt to configure the plugin I get:
Code: Select all
  Error (client)                  timeout waiting for plugin response from com.perceptiveautomation.indigoplugin.sql-logger for request CallPluginFunc


I have restarted the Server/Client/Plugin with no change

Posted on
Fri Jul 05, 2013 3:07 pm
matt (support) offline
Site Admin
User avatar
Posts: 21426
Joined: Jan 27, 2003
Location: Texas

Re: Indigo 5 Folder Huge [and growing]

CraigM wrote:
So the event log history auto prune is the only item causing excessive growth?

Hard to say. Each device state change will cause a new row in the database, as will each variable value change. You definitely don't need to keep a year of event log data in the history database (just keep the raw log files if you want to keep a year or more worth of data). I would keep just a day or two, and even then if you don't have any plugins or scripts that are querying the event log table then you don't need it at all.

Because the database has gotten so large it might be having a hard time pruning the old entries after you changed the history popup. From your Event Log snippet, it looks like Indigo timed out waiting on the plugin to respond. If it doesn't work (prune and result in a smaller file), then I'd suggest just renaming the SQLite database file (append "- backup" or something on it) so the plugin can start with a fresh history database. You'll still have the old data if you need to reference it in the future.

Image

Posted on
Fri Jul 05, 2013 3:59 pm
CraigM offline
Posts: 591
Joined: Oct 28, 2007

Re: Indigo 5 Folder Huge [and growing]

Thanks :)

Posted on
Fri Jul 05, 2013 5:07 pm
jay (support) offline
Site Admin
User avatar
Posts: 18248
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Indigo 5 Folder Huge [and growing]

CraigM wrote:
Is there a wiki that explains what each setting does and how the info is used?


Select the Plugins->SQL Logger->About SQL Logger menu item and it'll open the SQL Logger documentation which talks about the plugin in detail.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Jul 05, 2013 5:28 pm
CraigM offline
Posts: 591
Joined: Oct 28, 2007

Re: Indigo 5 Folder Huge [and growing]

Thanks :)

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 7 guests