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
- In the FactoryTalk Administration Console or FactoryTalk View StudioExplorerwindow, expand the foldersSystem>Connections, right-clickDatabases, and then clickAdd Database Connection.
- On theDatabase Connectiontab, in theDatabase typelist, selectInfluxDB.
- Configure the following:
- Definition nameThe name for this collection of data.
- InfluxDB URLThe URL to access the external InfluxDB. The format is http(s)://<hostname>:<port> or http(s)://<IPaddress>:<port>.hostnameis the name of the hosting computer,IPaddressis the IP address of the hosting computer, andportis 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.
- TokenThe 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 nameThe 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 ConnectionVerifies the connection to the InfluxDB.Only after entering an organization can you verify the connection to the InfluxDB using theTest Connectionbutton.
- ClickOK.
To configure the database connection within DataLogPro
- In the FactoryTalk View StudioExplorerwindow, open theData Logfolder, and then open theDataLogProeditor.
- On the menu bar, clickSetting.
- InConfiguration, clickRemote 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.
- ClickApply.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