[Concept 4] Retain Values from Individual Data Points

Scenario
You want to create two archive groups, one with a retention period of seven days and one with a retention period of three months. The age of the data is checked daily. By setting a maximum retention period, for example, 7 days, you want to ensure that the oldest data is deleted automatically without being archived. All data points that have not been assigned to a 7 days custom archive group are saved in the Long Term Storage.

Create Custom Archive Groups

  • System Manager is in Engineering mode.
  • System Browser is in Management View.
  • Custom Long Term Storage groups with monthly or yearly time slicing intervals are created in SMC.
    NOTE: If a storage is full before the periods ends, the system automatically creates an additional storage.
  1. Select Project > Management System > Servers > Main Server > History Database > Archive Groups Custom.
  1. Click the Object Configurator tab.
  1. Click New and select New HDB Custom Archive Group.
  1. In the New object dialog box, enter the name and description.
  1. Click OK.
  1. In System Browser, select the newly created custom archive group.
  1. In the Operation tab, select the Archive property.
    a. In the drop-down list, select the desired storage.
    b. Click Set.
  1. Repeat steps 3 to 7 for all required custom archive groups.

Assign Data Points to an Activity and Events Custom Archive Group

  • Custom archive groups for Activity and Event Log data are created and set to Archive.
  1. Perform either of the following:
  • Select Project > Field Networks > [Network] > Hardware > [Device] > [Data point]. The folder path may vary by view or subsystem.
  1. Click the Object Configurator tab.
  1. In the Main expander, select the Archive group field.
    a. In the drop-down list, select the desired archive group.
    b. Click Save .
  1. Repeat steps 1 to 3 for all needed data points.

Assign Data Points to the 7 Days Custom Archive Group

  • The 7 days custom archive groups is created.
  1. Do one of the following:
  • Select Project > Field Networks > [network] > Hardware > [device] > [data point]. The folder path may vary by view or subsystem.
  1. Click the Object Configurator tab.
  1. In the Main expander, select the Archive group field.
    a. In the drop-down list, select the desired archive group.
    b. Click Save .
  1. Repeat steps 1 to 3 for all needed data points.

Set the Retention Time for Custom Archive Group to 7 Days

  • The values of a particular data point are only to be retained for 7 days.
  1. Select Project > Management System > Servers > Main Server > History Database > Archive Groups Custom > [7 days archive group].
  1. Select the Extended Operation tab and set the parameters as in the picture.
  • The deletion schedule is configured and the age of the data is checked every day.

Assign Default Archive Groups to Storage

  1. Select Project > Management System > Servers > Main Server > History Database > Archive Groups.
    a. Select Activity Log and continue with step 2 to 4.
    b. Select Event Log and continue with step 2 to 4.
    c. Select Incident Log and continue with step 2 to 4.
    d. Select Value Log and continue with step 2 to 4.
  1. In the Extended Operation tab, select the Archive property.
  1. In the Archive drop-down list, always select the same storage.
  1. Click Set.