Features and scope
taosX is the data integration component of TDengine TSDB Enterprise. It transfers data between external systems, TDengine clusters, and files, and performs parsing, transformation, and target table mapping as needed during ingestion. taosd stores and queries the data. taosX handles only data transfer, not database storage.
Whether to use taosX depends on the task. Its main uses are collection, ingestion, import, migration, publishing, and logical backup and restore. It does not control devices, manage database replicas, or support full cluster backups. After confirming that it fits the task, choose an execution method based on whether the task needs centralized management and continuous operation.
Where to operate: manage continuously running service tasks in taosExplorer; run independent, one-time tasks with taosx run; execute SQL commands in the taosExplorer Data Browser or taos CLI.
1. Supported tasks
| Task | Typical source or target | Results to check |
|---|---|---|
| Collect industrial data | OPC UA, OPC DA, PI, and others | The time, value, and quality of selected points are stored according to the model. Verify current-value collection and historical backfill separately. |
| Ingest messages and database data | Kafka, Pulsar, MQTT, MySQL, Oracle, PostgreSQL, InfluxDB, and others | Selected topics, query windows, or time series reach the target tables with the correct device identities and time semantics. |
| Import files | CSV, ORC, Parquet | File data is written as expected. Completing a parsing preview or reading a file does not mean the data has been ingested. |
| Migrate and continuously synchronize | TDengine queries or TMQ subscriptions | Check the historical range, incremental data, and time windows around interruptions. Verify cross-version compatibility separately. |
| Publish and export | Supported targets such as MQTT, Kafka, MySQL, PostgreSQL, SQL Server, Parquet, and CSV | Data must actually reach external subscribers, relational target tables, or output files. Checking task status only on the TDengine side is not enough. |
| Back up and restore | TDengine and local backup files | The backup point and required backup chain are complete, and restored schemas and data ranges match expectations. |
Sources and targets cannot be combined arbitrarily. See the corresponding guide for supported combinations, operating interfaces, and dependencies.
2. Service tasks or the command line
For continuous ingestion tasks that need centralized management, use taosExplorer to select a data source, configure connections and models, view previews, start and stop tasks, and inspect operation. The tasks actually run on taosX registered as an Xnode. The browser is only the management interface.
taosx run executes on the host where the command is run. It requires a source DSN and target DSN and suits operations with a defined scope, such as migration and file processing. A DSN is a connection string describing a data source or target. Even if other Xnodes exist, an independent CLI process does not automatically receive scheduling or takeover support. Before closing the terminal, stopping the process, or taking its host offline, confirm whether the task must keep running and how to recover it.
3. When not to use taosX
- An application already has structured data to write directly to TDengine: prefer existing language connectors, drivers, or write interfaces. There is no need to route it through messaging middleware and taosX.
- Device control, alarm acknowledgement, or source system management is required: the data collection described here does not replace the source system's control and authorization processes. Some protocol operations may send commands to the source; check the connector instructions.
- A full cluster backup is required: this is a physical backup feature of the TSDB engine, initiated through SQL and written to a specified path on a specified dnode. taosX provides logical backups of databases and tables, not physical backups. Follow the full cluster backup procedure.
- Database replica management is required: taosX transfers data only and does not manage replicas.
- All business semantics of a source database must be copied: ingesting data does not also copy indexes, user permissions, or queries from the original application.
4. Getting started
For a first task, start with Write your first record from Kafka, Collect your first OPC UA point, or Backfill a historical range from PI. To find a guide by source, use the Connector selection matrix. If the transfer method is not yet clear, use Choose a data transfer method. For transferring existing TDengine data across clusters, see Migration and synchronization. To send it to external systems or files, see Publishing and export.
Before production use, define at least the source retention period, target data model, actual execution host, runtime identity, recovery procedure after downtime, and verification criteria. Verify data at the target, not just whether the task is running.