Log historical data to an external InfluxDB

If you want to store the historical data in an external, centralized InfluxDB, do the following in order:
  • Create a database connection to the external InfluxDB.
  • Configure the database connection within DataLogPro.
To create a database connection to the external InfluxDB
  1. In the FactoryTalk Administration Console or FactoryTalk View Studio
    Explorer
    window, expand the folders
    System
    >
    Connections
    , right-click
    Databases
    , and then click
    Add Database Connection
    .
  2. On the
    Database Connection
    tab, in the
    Database type
    list, select
    InfluxDB
    .
  3. Configure the following:
    • Definition name
      The name for this collection of data.
    • InfluxDB URL
      The URL to access the external InfluxDB. The format is http(s)://<
      hostname
      >:<
      port
      > or http(s)://<
      IPaddress
      >:<
      port
      >.
      hostname
      is the name of the hosting computer,
      IPaddress
      is the IP address of the hosting computer, and
      port
      is the communication port.
      For example, see https://computername:8086 or https://192.0.2.1:8086.
      For more information, see InfluxDB OSS documentation, InfluxDB OSS URLs or refer to your own InfluxDB version's documentation.
    • Token
      The token that identifies the user permissions within the InfluxDB. You can copy the token and paste it here.
      To create tokens, use the InfluxDB UI, the Influx command line interface (CLI), or the InfluxDB API. For more information, see InfluxDB OSS documentation, Create a token or refer to your own InfluxDB version's documentation.
    • Organization name
      The organization name for the InfluxDB. This is optional. You can click the dropdown list to show the existing organizations.
      The organization name is not applicable to InfluxDB 3 Enterprise. Leave the organization name blank for it.
      IMPORTANT: Data in the memory-based object store (RAM) of InfluxDB 3 Enterprise is not supported.
    • Test Connection
      Verifies the connection to the InfluxDB.
      Only after entering an organization can you verify the connection to the InfluxDB using the
      Test Connection
      button.
  4. Click
    OK
    .
To configure the database connection within DataLogPro
  1. In the FactoryTalk View Studio
    Explorer
    window, open the
    Data Log
    folder, and then open the
    DataLogPro
    editor.
  2. On the menu bar, click
    Setting
    .
  3. In
    Configuration
    , click
    Remote database
    , select the database definition name you created earlier, and then configure the optional storage duration.
    Storage duration defines how long the data logging records are stored. When the number of days, weeks, or months has elapsed, the older logs are deleted.
    By default, all data will be stored without being deleted. To avoid consuming disk space, set a proper time span for data storage.
  4. Click
    Apply
    .
    If the HMI server loses connection to the external InfluxDB, it starts logging data to the built-in InfluxDB. The built-in InfluxDB uses the same storage duration as the external InfluxDB. Once the connection to the external InfluxDB is restored, all the data logged to the built-in InfluxDB will be synchronized to the external InfluxDB
    .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal