Call us! 512-349-0334 or (877) INDUSOFT

Saving Alarm History and Event Logs to an External Database

By default, your InduSoft Web Studio project’s alarm history and event log are saved to proprietary-format text files in your project’s Alarms folder. However, you can change your project settings to save them to an external SQL database instead.

Note: If your project was created with InduSoft Web Studio v7.1+SP1 or earlier and then upgraded to the current version, you should consider starting over with new database tables.

Beginning with InduSoft Web Studio v7.1+SP2, new database tables are automatically indexed by event time in order to improve runtime performance. Existing database tables cannot be indexed in this way, so if you can afford to discard that data, you should change your database configuration to create new tables.

If you do this, you must also manually edit your project file (projectname.APP) to add the following setting:



The setting exists for backward compatibility, and it defaults to 0 for projects that were upgraded from earlier versions.

  1. On the Project tab of the ribbon, in the Settings group, click Options. The Project Settings dialog is displayed.
  2. In the Alarm History and Events area, in the History Life Time box, type the number of days of history that you want to save. As the history exceeds the specified number of days, it will be automatically deleted in a first-in, first-out manner. If no number is specified — that is, if it is left blank or set to 0 — then history will never be deleted. There is no limit to how much history you can save, but the more you save, the more disk space it will take.
  3. From the History Format list, select Database.
  4. To configure a single, default database to be used for both the alarm history and the event log (as well as all other runtime tasks), in the Default Database area, click Configure. The Default Database Configuration dialog is displayed. Use the dialog to configure the database connection.
  5. To configure a separate database for either your event log or your alarm history, click Event Database or Alarm Database, respectively. In either case, a Database Configuration dialog is displayed. Use the dialog to configure the database connection.


Comments are closed.