How to log data to InfluxDB
Prepare an InfluxDB server, connect the InfluxDB v2 Historian to it, and check that tag values arrive. The steps use InfluxDB Cloud, the typical cloud setup, and apply to a self-hosted InfluxDB v2 server with the changes noted. The InfluxDB v1 Logger and the InfluxDB v3 Historian use different connection settings, which InfluxDB v1 Logger and InfluxDB historians describe.
Before you start, you need:
- An active profile and the Modify components permission.
- The Historians licensed feature, which the Desktop, Server, and Enterprise editions include.
- An InfluxDB server whose version you know, because InfluxDB V1, V2, and V3 are separate, incompatible products and Profinity has a component for each.
- Network access from the Profinity machine to the InfluxDB server.
- At least one tag collection that holds the tags to log.
Prepare InfluxDB
To use InfluxDB Cloud:
- Sign up for InfluxDB Cloud and create an organisation.
- Create a bucket for your data.
- Generate an API token with read and write access to the bucket. If you turn off Allow retrieval, write access alone is enough.
- Note the organisation name, bucket name, API token, and the InfluxDB URL shown in your account.
To use a self-hosted InfluxDB on Linux, macOS or Windows:
- Install and start InfluxDB on your server.
-
Create a bucket and an API token that can read and write only that bucket. In the following example, replace
my-orgwith your organisation name and<bucket-id>with the ID thatinflux bucket createprints:
Connect the InfluxDB v2 Historian
- Add the InfluxDB v2 Historian under Historians, as described in How to add a component to your profile.
- Enter the Influx server URL.
For InfluxDB Cloud, use the URL shown in your account, such as
https://us-east-1-1.aws.cloud2.influxdata.com. For a self-hosted server, usehttp://<your-server>:8086. - Enter the InfluxDB organisation, InfluxDB bucket, and InfluxDB token.
- For InfluxDB Cloud, set InfluxDB health check to false, because InfluxDB Cloud does not support the health check endpoint. As of November 2026, the InfluxDB documentation states that its health check does not work with InfluxDB Cloud. For a self-hosted server, leave it on, which is the default.
- In Collections, add a row for each tag collection to log and select the collection in that row. The historian starts only when at least one collection is configured.
- Optional: set the Update interval (seconds) and the Logging mode. Logging modes describes what each mode sends.
- Select ADD COMPONENT at the bottom of the dialog.
Replace <your-server> with the host name or address of your InfluxDB server.
The historian starts when the profile loads if Auto connect is on, and Connections and reconnecting lists each component's default.
Check that data is arriving
- Check that the historian's status is not Error. The reason is written to the Logs page under ADMIN, as a line such as
<historian name>: could not connect (<reason>). Retrying every 5 s. - In the InfluxDB web interface, open Data Explorer.
-
Run this query, replacing
my-profinity-datawith your bucket andYour_Profile_Namewith your profile name. The measurement is the profile name with leading and trailing spaces removed. Each character other than a letter or digit becomes an underscore, and letter case is kept:
The query returns points when data is arriving. If it returns nothing, refer to If data does not arrive. For what Profinity writes for each tag and how to query it, refer to What is stored. To send the same collections to another destination, refer to How to configure data logging.
Troubleshooting
| What you see | What to do |
|---|---|
| The health check failed (InfluxDB Cloud has none; switch Health Check off in the settings). | For InfluxDB Cloud, set InfluxDB health check to false. |