Skip to main content

DSN and Connector Parameters

DSN structures and parameters are organized by connector and direction. Source reads, target writes, query migration, and file reads/writes use different entry points. A parameter placed in the wrong direction is harder to detect than an incorrect value.

Where to operate: taosExplorer task configuration; taosx run --from and --to; each connector's actual configuration entry point.

info

A DSN is a data source name describing the protocol, connection address, objects, and options for that direction. Sources and targets may use identical keys with different meanings. For example, source object selection and target table renaming are not interchangeable. This page documents verified configuration locations and distinguishes entry points. Do not treat a partial parameter list as a complete reference for all connectors.

1. DSN Structure​

driver[+protocol]://USER:PASSWORD@host:port/database?key=value&other=value
local:/absolute/path?watch=false

The structure depends on the connector. Do not infer that every driver has a database, username, or all parameters. taos+ws:// connects through taosAdapter over WebSocket; taos+wss:// uses its TLS endpoint. Native connections with taos:// require the corresponding client environment. local: is a file directory on the execution host.

LayerExamplesConfiguration location
taosx CLI options--from, --to, --configCommand arguments; see CLI
Source DSN query keysKafka topics, group; query migration start, endInside --from; there is no general taosx --topics
Target DSN query keysWrite or file options supported by that targetInside --to; consult the target direction
Process configurationdata_dir, monitor.fqdn, resource.maxMemoryMBProcess TOML, explicitly mapped environment variables, and CLI options; not in every source DSN
UI fieldsTopics, authentication, starting position, parsing, mapping, and othersTask forms; may become DSNs or separate task definitions. Do not assume an English label is a DSN key

Quote the entire DSN in PowerShell or Bash so the shell does not interpret &. Encode reserved characters in passwords, paths, and SQL according to DSN/URL rules. Shell quoting protects only shell parsing; it neither replaces URL encoding nor encrypts credentials.

1.1 Passwords with Reserved Characters​

Suppose a test account's original password is p@ss:word/1?. The characters @, :, /, and ? have structural meanings in a DSN, so do not insert the original password directly into the user information section. Encode them as %40, %3A, %2F, and %3F respectively:

taos+ws://USER:p%40ss%3Aword%2F1%3F@target-host:6041/demo

In Bash or PowerShell, also enclose the entire DSN in single quotes. Quotes only prevent the shell from interpreting characters such as &; they do not automatically convert the original password into the form above. Encode % in the original password as %25 and spaces as %20. Do not use + for spaces in the user information section.

The DSN above is already encoded. Do not encode it again, or %40 becomes %2540 and the password passed to the service changes. When using a separate password field in the UI, enter the original password, not the encoded string from the DSN. If a connection fails, first check encoding count and the actual entry point rather than repeatedly changing the password. Treat real DSNs, command history, and diagnostic screenshots as sensitive information.

2. Find Parameters by Connector and Direction​

CategoryRead-direction guidesOther directions
Message queuesKafka, Pulsar, MQTT, Sparkplug BPublish to Kafka, Publish to MQTT; do not reuse the read parameter tables
DatabasesMySQL, Oracle, PostgreSQL, SQL Server, MongoDB, InfluxDB, OpenTSDBPublish to MySQL, PostgreSQL, and SQL Server use separate target parameters; other read sources do not thereby support output. Dameng DM8 retains its support limits
Industrial sourcesOPC UA, OPC UA Alarms and Events, OPC DA, PI, AVEVA Historian, KingHistorian, pSpaceConsult the respective entry points for point files, security settings, and plugin definitions; do not generalize them into universal DSN keys
FilesCSV, ORC CLI Import, Parquet CLI ImportExport CSV, Export Parquet; reading and writing follow different rules
TDengineTDengine Query Migration, Continuous TMQ Synchronization, Object Selection and RenamingBackup and Restore and Disaster Recovery and Dual-Active have their own conditions. Ordinary TMQ parameters are not a complete dual-active configuration

Industrial gateways are not an additional unified taosX driver. For the link boundaries of Kepware and Neuron, see Industrial Gateways.

3. Rules for Interpreting Important Parameters​

  1. Determine required fields by direction, authentication method, and entry point. Do not mark every conditional UI field as required.
  2. “Unset” does not mean zero. Times may be strings with units; byte counts and batch counts are not interchangeable. Do not arbitrarily describe an unconfigured underlying client value as a fixed taosX default.
  3. Kafka's DSN fallback_offset and existing consumer group offsets jointly determine the starting position. An example explicitly using Earliest does not mean the UI and direct DSN defaults match.
  4. For Kafka GSSAPI, check sasl_kerberos_service_name, sasl_kerberos_principal, sasl_kerberos_kinit_cmd, and sasl_kerberos_keytab individually. Specifying only “GSSAPI” does not complete configuration. See the Kafka guide for usage and file locations.
  5. @文件 works only in fields that explicitly support it. Check path resolution per field; it is not global secret-file interpolation syntax.
  6. An accepted key does not necessarily apply to the current runtime path or affect behavior. Verify logs, tasks, and business results after changing parameters.

4. Parameter Reference Coverage​

The backup and restore reference is grouped into incremental backup, incremental restore, and query-based backup. Retry, object-selection, and S3 parameters with the same names have different effects. Query-based backups also accept settings that do not perform automatic retries or uploads. Parameter acceptance is not a restore guarantee. First verify as described in Data Backup and Restoration in the operations guide. For definitions, see Backup and restore reference.

note

Minimum configurations in connector guides are not full parameter tables. This index does not mean all underlying client extension keys are formally supported either. If a parameter's type, default, or conditions cannot be found, do not infer them from a same-named option in another connector. First confirm the version, direction, and entry point.

This page lists named connection, authentication, consumption, and verified read batching parameters for Kafka, Pulsar, and Tuya, plus connection, subscription, decoding, queue, and retention parameters for MQTT reads. It also includes OpenTSDB read scope, naming, and recovery-state keys and aliases; InfluxDB connection authentication, read scope, naming, and recovery-state keys; MongoDB connection, TLS, collection query, and window parameters; and CSV parsing, read batch, file watching, and retention parameters and aliases. All are distinguished by direction, but this page is not a complete dictionary for every connector. To use advanced or extension parameters absent from the guides, provide support with the version, connector, direction, runtime mode, and expected effect, and confirm the parameter definition for that entry point before configuring it. Do not add parameters based on similar names.

MQTT publishing parameters have a separate reference covering publishing routes, sessions, connection counts, and certificate fields that can be parsed but cannot be used to enable publishing TLS. A parsing entry point does not mean a feature is available. Consult target MQTT parameters, source TMQ options, and MQTT collection parameters separately.

Sparkplug B has 10 named read-direction keys. Six connection parameters reuse the MQTT definitions, while four subscription/control parameters are described separately. Use this entry point to determine fixed clean-session behavior, QoS, node/device topics, and REBIRTH behavior. Do not apply ordinary MQTT topic, session, or retention settings; server sampling may also send control messages.

MySQL, Oracle, PostgreSQL, and SQL Server list 16, 13, 14, and 13 named query keys respectively. Seven common query keys share one maintained definition. Consult source-specific connection, TLS, SQL, scheduling, and real-time options separately. Types and behavior of shared advanced fields are referenced below and are not included in those source-specific counts. UI initial values do not replace direct DSN defaults. Oracle and SQL Server do not have the configurable minimum real-time window query key available in the other two sources. Oracle single-round window mode does not mean a trigger schedule is configured, and its connection pool “connection timeout” is not an SQL timeout. Bare integers for query durations mean seconds, not the milliseconds used in other directions.

Target parameters for relational database publishing are maintained in the MySQL, PostgreSQL, and SQL Server guides. Source query holds the subscription SQL; target table, primary_key, batch, and retry parameters apply to writing. Do not reuse relational database read parameters.

Kafka publishing separately lists target routing, batch, and automatic topic creation parameters and reuses the single Kafka connection authentication definition. Check read offsets, consumption batches, environment variables, and Producer extension entry points separately; do not copy between them. batch_timeout has different types and defaults for reading and publishing. Confirm the direction first.

ORC reading, Parquet reading, and Parquet export list parameters separately. The two read directions use different numeric numbering for projection. Export row_group_size is not read batch_size. Choose the format and direction before setting parameters.

pSpace lists 31 names, including enumeration, collection, mapping, eight shared advanced keys, and download control. Acceptance of shared keys does not mean all of them control source queries. Batch size is used for plugin output, while concurrency, batch delay, and retention days each have different limits. Do not directly apply same-named parameters from other sources. Also check CSV type mappings, source types obtained by the plugin, and actual target values separately.

OPC UA and OPC DA connection references cover 11 and 8 names respectively, including backup endpoint settings with different conditions for the two sources. Another 34 names cover shared collection, filtering, reporting, caching, retention, and event configuration, distinguishing protocols and entry points individually. This is not a complete list of point table templates, discovery, or advanced parameters. User identity, source node batches, reconnection, and DA timeout fields are explained separately; do not mix defaults. Older versions displayed DA timeout fields without sending them; newer versions apply them. Before upgrading, review timeout settings in existing tasks against the connection reference below.

A point table CSV is not another set of DSN query parameters. For source identifiers, target columns, time transformations, and tag headers, see OPC UA point table columns. For DA tag_name, quality_mode, value_map, and PI continuation conditions, see OPC DA point table columns. Complete definitions and examples are on the corresponding procedure pages.

PI lists 26 connection/runtime names and 19 model, filter, and file names, including only the aliases and prefixes actually listed; do not infer additional combinations. Pipe instance counts, batch loops, restart compensation, explicit backfill times, maintenance, and persistence are explained separately. Check model scan defaults, empty-filter behavior, and file aliases used in production collection. Parseable automatic boundary flags are not resume guarantees, and template filter results are not fixed element lists. Complete discovery and environment settings remain outside these two groups.

TDengine query migration lists continuous-window and connection-pool names in two separate groups, distinguishing startup backfill, continuous advancement, and source connection-pool entry points that have no effect. These are not external relational database query or TMQ parameters, nor all query migration source, target, and client parameters.

Source and target task parameters list 24 and 17 names respectively, including one source-side alias. They describe object lists, schema phases, windows, scheduling, target writes, failure files, and field mapping. The five continuous-window names remain in a separate parameter group and are not counted again among those 24 names. Check client extensions, TMQ, and backup/restore separately; these two groups do not cover every migration parameter.

TMQ writes to TDengine separately list 25 names explicitly checked by topic preparation and synchronization entry points, including two aliases. Default idle waiting, concurrency and commits, delete requests, and their effective limits follow this entry point. Complete defaults and accepted sets for client pass-through options such as client.id are outside this page's scope; do not infer all TMQ, publishing, or backup parameters from it.

4.1 Select Query Migration Parameters by Scenario​

Append the following source and target parameter fragments after ? in the source and target database DSNs respectively. For complete connections, follow DSN structure. Run first against a separate target with a small window, then compare source and target using the same objects, time, and time zone.

  1. Migrate a fixed historical window from a list. For many objects, write table names one per line to /data/migration/tables.txt on the execution host. Use on the source:

    tables=@/data/migration/tables.txt&mode=history&start=2026-01-01T00:00:00Z&end=2026-01-02T00:00:00Z&unit=1h

    Each file line is an object name, with no header or comments. unit=1h splits the explicit historical window into one-hour read units; the window still includes the lower bound and excludes the upper bound. An empty file may fall back to enumerating the entire database, not “migrate nothing this time.” Before startup, verify that the file is nonempty and check the actual object list and boundaries.

  2. Synchronize only the schema of selected supertables. Use on the source:

    stables=meters&schema=only

    The task returns after synchronizing schema without entering the data-reading phase. It does not migrate data even if historical or real-time mode is also configured. After completion, verify the target with DESCRIBE and the actual child table list. A same-named schema=only in the target DSN cannot replace this source setting.

  3. Read low-frequency child tables sparsely by supertable. When explicitly restricting the scope to meters, use on the source:

    stables=meters&sparse=true&mode=history&start=2026-01-01T00:00:00Z&end=2026-01-02T00:00:00Z

    Sparse mode reads multiple low-frequency child tables by supertable and time window. It is not a speed switch for all migrations. Do not also provide an effective tables list or leave stables empty and assume the scope is empty. First compare the child table set and row counts in the source window with the target results.

  4. Reduce regular write frequency and synchronize tag differences for existing child tables. Append on the target:

    interval=500ms&update-tags=true&fails-to=/data/migration/errors.log

    interval is a wait after the corresponding write or schema operation, not a strict task-wide rate limit. update-tags handles only tags on child tables actually synchronized; it does not change historical data values. Create the parent directory for fails-to in advance and allow the execution account to write to it. After the task, inspect the error file, target tags, and data individually. “Errors recorded” does not mean “data gaps filled.”

These fragments show parameter combinations only. For complete types, defaults, and direction limits, see Query source parameters, Query source compatibility parameters, and Query target parameters. For procedures, see TDengine Query Migration. Although keys such as write-concurrency and fails-to can be placed in --from, they still affect target writes or target error recording, not source reads.

5. TMQ Continuous Synchronization Parameters​

These are source DSN query keys explicitly checked by topic preparation and synchronization when taosx run reads TMQ and writes to TDengine. They are neither complete client parameters nor standalone CLI options. Put parameters in --from and the target connection in --to. These keys do not apply to TMQ backup, Kafka/MQTT publishing, or query migration. This table does not determine GUI initial values or post-submission mappings.

First complete the isolated exercise in TMQ Continuous Synchronization. For continuous operation with its default write method, explicitly set timeout=never and confirm there is no separate finite max.polling.timeout. If interlace is selected instead, its own idle-exit rule is not overridden by infinite timeouts; see prefer below. Successful writes and position commits are different steps. Verify progress and cumulative counts against target data.

Deletion options are not a target deletion-prevention security boundary. To prohibit table or data deletion propagation, first confirm official support and verification results for the relevant versions and write methods with technical support. Do not enable replication on business targets merely after setting false. See Deletion Propagation Limitations.

Parameter and aliasesType and defaultUnits and conditionsBehavior and limitations
group.idConsumer-group string
If omitted in ordinary production tasks, generated from source/target connections; replica in replication mode
None; source topic subscriptionExplicitly set and record it. Ordinary automatic names derive from source/target connections; connection changes may change group identity. Temporary connectivity-check groups are not production consumer groups. Retain the actual group when recovering the original link; do not reset progress by changing groups or unintentionally share a group across targets.
auto.offset.resetExact lowercase earliest or latest
earliest
None; source consumer connectionOther values are rejected during preparation. Starting policy does not reset existing committed positions. Explicitly use earliest in the first historical/continuous exercise, verifying with snapshots and source retention. Changing groups during troubleshooting is not completed backfill.
experimental.snapshot.enableConsumer-connection switch text; explicit true or false recommended
true injected if omitted
None; historical snapshots on initial subscriptionThis layer only supplies a default; it does not validate all accepted explicit spellings. Do not copy 0 or empty-string conventions from other switches. Snapshots cannot recover absent source data. Check existing positions, source history, and WAL ranges individually.
timeoutDuration with units, or never, 0, -1
Production preparation injects 5s if omitted
Explicit units, such as 5s; source consumer connection and compatibility fallback for maximum idle waitAfter trimming, never, 0, -1, and zero durations mean infinite waiting. Invalid durations fail configuration. Explicitly use timeout=never for continuous exercises. A separate finite max.polling.timeout is not overridden by this infinite value. Not an SQL, write, or total-task timeout.
max.polling.timeoutDuration with units, or never, 0, -1
This key wins, then timeout, then TMQ_MAX_POLLING_TIMEOUT; normal omission effectively uses 5s
Explicit duration units; concurrent polling without transformationsPreparation already supplies timeout, so the environment and final 60s fallback are normally not reached. Exit consumption when idle time without new messages strictly exceeds this value; not a historical-sync deadline. never, 0, -1, and zero durations mean infinite waiting. Receive wait is the smaller of this value and 5s, converted to integer milliseconds. Positive values below 1ms are discouraged. Serial and interlace paths do not use this as the same exit threshold.
with.meta.deleteExact lowercase true or false
true if omitted or invalid
None; request control of source data-deletion propagationOnly false requests disabling. Empty, 0, False, and similar values fall back to true. v3.4.4.2 fixes the issue where task splitting changed an explicit false for this key or with.meta.drop back to true. For older versions, confirm whether the exact delivered version includes this fix. Composite-metadata filtering limitations and raw-message filter bypass remain independent issues. false is not a target deletion-prevention guarantee. For production prohibition of deletion propagation, confirm delivery support and isolated verification first. Do not test deletions on business objects.
with.meta.dropExact lowercase true or false
true if omitted or invalid
None; request control of source table-deletion propagationOnly false requests disabling. Empty, 0, False, and similar values fall back to true. Disabling is not deletion protection; limitations match with.meta.delete. Configure independently, without assuming every message form is reliably filtered. Confirm exact versions, write method, and delivery conclusions before production.
read_concurrency, num.of.consumersPlatform-range nonnegative integer
0, automatic
Consumers per topic; preparation of each topic's consumersMain name precedes alias. In direct CLI execution, an empty or invalid preferred value falls back to 0 without trying the alias. Managed-task splitting rejects nonempty invalid values. Omitted or 0 divides the source database's vGroup count by 4, rounds up, and uses at least 1 consumer. Explicit positive values are capped at the source database's vGroup count. This is not a task-wide consumer cap and does not guarantee actual partition assignment to every consumer. For newly planned tasks versus resumed saved XNode jobs, see Concurrency and upgrades.
write_concurrency, num.of.writersPlatform-range nonnegative integer; effective minimum 1
Main name, alias, then the service process's TMQ_WRITE_CONCURRENCY; 1 if parsing fails or all unset
Write work units per consumer; only interlace, or enable.concurrent.polling enabled without transformation actionsAn existing invalid preferred value falls back to 1, not lower-priority values. 0 means 1 rather than a CPU-based calculation. A new taosExplorer form starts at 1; saving the field blank omits the parameter. Other paths write serially per consumer. Not a global connection hard cap. Existing tasks saved with 0 use 1 on their next start; explicitly set a positive integer for multiple writers.
preferWrite-strategy text
TMQ_MESSAGE_WRITE_STRATEGY if omitted; auto if unset
None; production write-path selectionExact lowercase raw, stmt, sql, interlace, and block are recognized; all other text means auto. Invalid explicit text does not fall back to the environment. interlace has a separate path: without returned messages and after the internal 5-second threshold since the latest commit, it can exit normally. timeout=never and max.polling.timeout=never do not override this rule. Do not substitute it in the continuous exercise. block requests data-block writes; stmt/sql do not guarantee corresponding syntax. raw has deletion-filter bypass limitations; certain cross-version combinations force block. Without isolated verification and support conclusions, do not switch strategies to avoid deletion risk.
commit.chunk.sizePlatform-range nonnegative integer
TMQ_COMMIT_CHUNK_SIZE if DSN omitted; 512 if parsing fails or all unset
Messages, not business rows; concurrent-polling pathControls buffered-message write acknowledgment and position-commit barriers. Metadata, message-type changes, and exit branches can commit early; not exactly every N messages. 0 does not restore defaults; it enters per-message write-acknowledgment-and-commit handling. Serial and interlace do not use it for commit batching.
commit.interval.msu64 nonnegative integer
TMQ_COMMIT_INTERVAL_MS if DSN omitted; 5000 if parsing fails or all unset
Milliseconds; concurrent polling returns no message with messages still bufferedCompares idle time since the latest completed message processing. At the threshold, wait for buffered writes before attempting commit. Not a fixed period since the previous commit or a write-delay cap. Continuous messages do not guarantee commits at this interval. 0 triggers at the next qualifying idle return; it does not disable commits.
refresh.progress.intervalu64 integer; configure above 0
REFRESH_PROGRESS_INTERVAL if DSN omitted; 7 if parsing fails or all unset
Seconds; source subscription-progress queries per topicControls only progress query frequency, not throughput or commits. 0 does not disable refresh and causes timer creation failure. Connection, query, or parsing failure may leave progress stale. During periodic checks, if a topic previously had WAL progress but a later successful parsed query finds no online consumer, Consumer all dead ends this execution and aborts its other consumption. Service retry depends on task scheduling. Missing progress does not mean zero backlog; query actual source subscriptions and check target data.
enable.concurrent.pollingSpecific text Boolean switch
TMQ_CONCURRENT_POLLING if DSN omitted; true if invalid or all unset
None; interlace not selected and no transformation actionsEmpty, true, TRUE, T, 1 mean true; false, FALSE, F, 0 mean false. Other values warn and mean true. Whitespace is not trimmed. Even if true, transformation actions select the serial path; interlace has priority for its own path. Disabling concurrency does not establish that deletion-filter issues are avoided.
use.topic.nameOptional topic-name string
Unset
None; DSN path is one source database nameSpecifies the database-level WITH META topic name to prepare. Rejected for multiple objects. Production execution can create missing topics and validates existing definitions; corresponding permissions are required. Connectivity checks do not create topics. Replacing failed input with a database name is not a general fix.
use.table.nameOptional table-name string
Unset
None; object paths retaining this key and query-topic writes onlyNot universal target-table renaming. The single-existing-topic branch does not retain it; database-level WITH META topics do not uniformly rename tables through it. For renaming, check object resolution and transformations first, then verify on an isolated target.
enable.auto.commitConsumer-connection switch text; this layer separately tests a specific true-value set
No switch default set here; auto-commit interval rewritten if not judged true
None; source consumer preparationTrue values here: true, empty, 1, yes, on, enable, enabled, T, plus TRUE, YES, ON, ENABLE, ENABLED. Whitespace is not trimmed. Other values or omission overwrite auto.commit.interval.ms with 2147483647. This does not directly force the switch false or establish identical low-level acceptance of all text. A very long interval is not complete disabling of auto-commit.
auto.commit.interval.msConsumer-connection interval; this layer only conditionally injects integer text
Forced to 2147483647 unless enable.auto.commit is judged true; otherwise explicit value or client default retained
Milliseconds; source consumer auto-commit configurationThis layer overwrites user values, so original DSN text alone does not establish the actual interval. Distinct from commit.interval.ms idle-after-write commit rules. This layer does not establish the complete underlying type, invalid-value behavior, or other defaults. Retain explicit production configuration and verify actual positions and recovery results.
minimalSpecific text Boolean switch
false
None; source version at least 3.3.0 and target below 3.3.0 version checkEmpty, true, TRUE, 1, yes, YES mean true; false, FALSE, 0, no, NO mean false. Other values warn and mean false. Whitespace is not trimmed. true only bypasses this version rejection and forces the corresponding combination to block. Not a compatibility guarantee for arbitrary versions, schema, or higher-version data, or a uniform metadata-minimization option.
msg.consume.rawdataConsumer-connection pass-through; no Boolean parsing here
Not set proactively here
None; version filtering when final prefer is raw and key existsRemoved from the source DSN if either source or target is below 3.3.6; otherwise retained for the consumer. This check tests key presence, not true/false. Not an alias for prefer=raw or evidence of identical filtering on auto paths. Confirm actual client semantics and defaults against delivered dependencies.
replicaPresence-based replication-mode marker
Absent does not trigger this branch
None; dedicated replication mode; omit in ordinary subscription exercisesEmpty, false, and 0 all trigger source/target database, precision, and WAL prechecks if the key exists. Shared preparation also injects msg.consume.excluded=1 and group.id=replica if no group exists. Not an ordinary Boolean. Do not add it to existing-topic DSNs for troubleshooting. This key alone does not create complete safe dual-active replication.
msg.consume.excludedOnly empty or 1 after trimming
Not set proactively here; replica presence can inject 1
None; source consumer replication-message exclusion modeOther values are rejected during preparation. Presence enters shared replication-marker handling, using replica if no group exists. Unlike replica, it does not trigger the production entry point's additional source/target database checks; they are not whole-link aliases. Verify underlying exclusion scope by client and version. Do not append it to ordinary tasks for loop prevention.
enable.wal.markerConsumer pass-through; this layer only removes it for version compatibility
Not set proactively here
None; source version compatibilityRemoved if the source is below 3.3.6.32 or in [3.3.7.0, 3.3.8.6). Retention does not mean this layer interprets the switch or complete client defaults. Not a recovery, deduplication, or loop-prevention guarantee.

5.1 Checks After Parameter Changes​

First retain actual topics, consumer groups, every vgroup position, source/target versions, and original configuration. Change one item at a time, then check task logs, source subscription positions, and target schema, values, and tags. Use separate consumer groups for multiple targets. Changing groups, deleting topics, or clearing positions is not failure recovery. Before changing generated topic names, transformations, or write methods, verify schema and data on an isolated target. Do not test deletions on business objects.

6. Backup and Restore Parameters​

The following lists some DSN parameters for TMQ incremental backups, corresponding incremental restores, and query-based backups, not complete client parameters. For backup, put the database connection in --from and local: in --to; reverse them for restoration. Query-based table backups and their one-pass restore use a different path. Do not apply the scope, watching, retry, or post-processing actions here to that path.

First read Backup and Restore and Data Backup and Restoration in the operations guide. Preserve the complete chain and originals, and verify on an approved isolated target. Parameter acceptance, file existence, or task exit does not prove a complete restore. This page does not provide unapproved commands for deleting or moving original backups.

The shared parsing rules below apply only to entries explicitly referencing them: empty strings are usually treated as unset; aliases are checked in the listed order and the first nonempty value is used. An invalid value causes an error without trying later aliases. Use lowercase true and false for booleans. Explicit duration units such as 5s and 1h are recommended. Use RFC3339 timestamps with a time zone or now, not dates without a time zone. Protect complete DSNs with shell quotes and separately encode special parameter characters according to URL rules.

6.1 Incremental Backup Source Parameters​

Parameter and aliasesType and defaultUnit and conditionsBehavior and limits
self.repeatBoolean
false
None; direct incremental backup entry pointWhether this run repeats backups internally; not taosExplorer backup plan scheduling.
upcomingDate/time
Unset
RFC3339 with a time zone or now; incremental backupStart time to wait for. A valid value selects offset-based backup advancement; otherwise, backup ends on consumption timeout. Filenames use the actual start time of the round, not necessarily the scheduled time.
intervalDuration
Unset; 10m for internal repeated runs
For example 5s, 10m; incremental backupAffects repetition interval, idle file rotation, and the execution deadline in offset-based mode, not just scheduling. 0 does not mean disabled and may end the round early. Normal completion alone does not prove data has caught up.
max_retry, error.max.retryu32
10
Attempts; accepted by backup configurationDo not rely on this value to guarantee automatic retry after backup failure. Distinguish it from the UI initial value and the same-named restore target field.
retry_intervalDuration
5s
Duration; accepted by backup configurationDoes not guarantee a retry wait after backup failure and is not this entry point's TMQ consumption timeout.
stableString
Entire database
Supertable name; incremental backup sourceOmitted, empty, or exactly * means the entire database. Other values must name an existing source supertable. Leading/trailing whitespace is not trimmed. The database must still be specified in the source DSN path and exist.
use.topic.nameString
Automatically generated topic identity
Topic name; incremental backup sourceUses the specified topic identity directly. An empty string is not treated as omitted for this entry. Do not casually change an existing chain's subscription identity; first confirm permissions, the original chain, and offsets.

6.2 Incremental Backup Local Target​

Parameter and aliasesType and defaultUnit and conditionsBehavior and limits
move.toDirectory path
No move
Existing directory on the execution host; when incremental backup files closeMoves closed .z and .mz files without an additional copy. S3 still scans the original backup directory, so upload of moved files is not guaranteed. Cross-volume moves on Windows are not guaranteed either.
max_size, backup_max_size, max.file.sizeCapacity text with units
1073741824 bytes
B, KB, MB, GB; each step uses 1024; single-file rotationCounts uncompressed serialized data and checks after processing a message. Not a hard limit on compressed disk files. 0 B does not mean unlimited and may cause frequent rotation; not recommended.
compression.level, compression_levelCompression level
fastest
None; incremental backup filesUses Zstd. Supports fastest, best, default, balanced, or a parseable integer; words are case-insensitive. Numeric 0 does not disable compression. Confirm the numeric range against the actual compression library and package.
s3_enableBoolean
false
None; incremental backup local targetS3 connection settings and both retention policies are read only when true. Enabling it or connecting successfully does not mean all files are offloaded or the remote copy is complete and restorable. Read incremental backup S3 limits first.
backup_retention_periodOptional duration
Unset
For example 1d; s3_enable=trueFirst selects .z files whose filename backup-point time is earlier than “current time minus this value.” Corresponding local files are deleted after successful upload. Not based on file modification time or remote lifecycle; 0s is not equivalent to omission.
backup_retention_sizeu64
Unset; 0 also means unset
Number of .z files; s3_enable=trueAfter duration-based selection, selects older files exceeding this count from the remaining .z files. Not bytes or backup point count. No files are selected for upload if both policies are unset; 0 cannot request uploading everything.
layoutEnum
Resolved by context and marker
task_dir or legacy_job_dir; task-level backup directoryRejected if the explicit layout conflicts with the marker. Cannot be specified for an actual job directory. Does not create task identity for direct CLI use or bypass directory conflict checks.

6.3 Incremental Restore Local Source​

Parameter and aliasesType and defaultUnit and conditionsBehavior and limits
fromOptional date/time
No lower bound
RFC3339 with a time zone or now; incremental .z file selectionIncludes the backup-point time in the filename, not business row time. If no applicable schema snapshot exists, this lower bound may be ignored and earlier files replayed. Preserve the complete chain for drills; do not use this to skip the initial point.
toOptional date/time
No upper bound
RFC3339 with a time zone or now; incremental .z file selectionIncludes the backup-point time in the filename, not a per-row cutoff. Schema snapshot selection is not uniformly constrained by this bound, so it does not guarantee all schema and data stop exactly at the specified time. Table restores do not use it for filtering.
watchOptional boolean
Unspecified
None; incremental directory watchingfalse stops waiting after the initial scan is processed. Omission continues watching, but deadlines and other conditions may still end it. Does not continuously watch S3. Does not accept 0 or 1.
checkpointBoolean
false
None; local incremental .z data-file restoretrue stores progress in local-restore-v1/ under the persistent taosX data directory. After interruption, retain originals and state and resume with the original backup directory, restore range, target database, and same persistent data directory. Completed files can be skipped and unfinished files resumed from the last usable checkpoint. Disabled means replay from the beginning of files still in range. Standalone .mz snapshots, query-based backups, and S3-downloaded files do not use these checkpoints. See Enable checkpoint recovery for the complete procedure.
post_actionAction string
Leaves input files untouched
None; after confirming an individual .z file has been completely restoredCase-insensitive: delete/del/remove/rm deletes; move/mv moves and requires move_to. Empty and unknown values cause errors. When files are damaged or write outcomes cannot be confirmed, taosX retains originals and reports an error. Keep .taosx-restore-v1-* directories created during handling for restart checks. Single-file completion is not verification of the entire backup point; retain originals during drills. Does not process .mz, layout markers, or remote S3 objects.
move_toPath format string
None
Execution-host directory; required and nonempty for post_action move or mvFormats the directory using the filename's UTC backup-point time, then appends the original filename. The directory must exist; cross-filesystem or cross-volume moves report errors. Moves do not overwrite existing files, and directories are synchronized. Network filesystems must support file identity checks, non-overwriting atomic moves, and directory synchronization. Not an alias for backup target move.to.
s3_enableBoolean
false
None; incremental restore local sourceUses the shared S3 configuration below when enabled and downloads files under the prefix once at startup, not continuously. The initial local path must still exist and be accessible. Downloading no remote files does not prove a restorable chain already exists.
layoutEnum
Marker and legacy detection
task_dir or legacy_job_dir; task-level restore directoryRejected if it conflicts with the marker. Cannot be specified separately for an actual job directory. Prepare a complete copy using the off-site restoration steps; do not delete markers to force startup.
task_idOptional i64
Unset
Task ID; locates a task directory under the rootLocates a task directory beneath the root. Preserve this identity configuration according to actual materials; do not invent it. Unlike ordinary string entries, this integer parser trims leading/trailing whitespace.
job_idOptional i64
Unset
Job ID; used with task_idOmitted or -1 means a task-level directory. Nonnegative values locate actual job directories; other negatives are rejected. Not a time parameter for selecting a backup point inside a directory.
topicOptional string
Unset
Topic identity; restore object configurationAccepted by configuration, but the restore watcher does not use it to filter .z files. Cannot isolate backup chains mixed in one directory.
db_nameOptional string
Unset
Source database name; restore object configurationSource database identity used to correct cross-database virtual table references; does not replace an explicit target database in --to.
db_sqlOptional string
Unset
SQL text; accepted by restore object configurationThe current incremental restore flow has not been observed using it to create databases automatically. Still precreate an approved empty target database following the off-site restore steps. Manual addition is not recommended.
stable_nameOptional string
Unset
Supertable name; restore object configurationUsed for target table name handling in some data blocks and correction of virtual table references; not an independent input file filter.
stable_sqlOptional string
Unset
SQL text; accepted by restore object configurationThe current incremental restore flow has not been observed using this value. It does not guarantee supertable creation; manual addition is not recommended.

6.4 Incremental Restore Database Target​

Parameter and aliasesType and defaultUnit and conditionsBehavior and limits
error.max.retry, error_retry_maxu32
10
Attempts; some incremental file-open and write retry pathsNot a uniform whole-task rerun count. Finite write retries apply only when safe; 0 disables those extra attempts. File opening follows another path. When files are damaged or write outcomes cannot be confirmed, taosX retains originals and reports an error. Managed tasks also retry automatically only when the affected writes can be safely replayed. Table restores do not use this retry count.
retry_intervalDuration
5s
Duration; the incremental retry paths aboveWait before specific retries; 0 does not disable retries. Does not guarantee every error is retried or failed data is automatically archived. Table restores do not use this interval.

6.5 Query-Based Backup Source Parameters​

Parameter and aliasesType and defaultUnit and conditionsBehavior and limits
upcomingOptional date/time
No scheduled wait
RFC3339 with a time zone or now; query-based backup sourceAfter connecting and checking objects, waits until this time to back up. Not a repeating schedule interval. Preliminary select checks execute SQL before waiting, so it does not guarantee no prior query load. Cancellation before the wait completes may return normally without a completed backup.
schema_onlyBoolean
false
None; query-based backup sourcetrue saves only schema and skips subsequent data export. select still executes SQL during object checks before the scheduled wait. In a separate clean directory, this mode generates schema.meta and can be recognized and restore schema without .z files, but contains no business data. Mixed .z files with a missing final schema file do not prove recognition or completeness; do not fabricate files.
stablesComma-separated names
No supertable restriction
Source supertable names; highest object-selection priorityTakes precedence over tables and select. Lower-priority entries are ignored, not intersected. Names are trimmed; @file is unsupported. This mode also reads source regular tables, so it does not guarantee scope strictly limited to the specified supertables.
tablesComma-separated names and @file
No child/regular table restriction
Plain table names; when stables is not specifiedSelects only child and regular tables. Includes selected child tables' parent supertable schema, not sibling child tables. Inline entries are trimmed and empty ones ignored. @files are read line by line as UTF-8; nonempty lines are not trimmed and # is not a comment. Whitespace-only lines are removed and original names deduplicated. Relative paths use the CLI working directory. An unreadable list fails configuration before object-priority selection.
startOptional date/time
No lower bound
RFC3339 with a time zone or now; generated queries in database, supertable, or table modesUses an inclusive lower-bound comparison on the fixed column name ts; does not detect other primary timestamp columns. With end, users must confirm start precedes end. No filter is appended in select mode.
endOptional date/time
No upper bound
RFC3339 with a time zone or now; generated queries in database, supertable, or table modesUses an exclusive upper-bound comparison on the fixed column name ts. Not the file time referenced by incremental restore to. In select mode, specify limits in SQL; this entry is not appended.
max_retryNonnegative usize integer
10
Attempts; accepted by query-based backup configurationDoes not guarantee automatic retry after query backup failure or automatic rerun/completion of failed table queries. Use success/failure table summaries and logs; do not apply the meaning of a same-named incremental restore target field.
retry_intervalDuration
5s
For example 5s; accepted by query-based backup configurationDoes not guarantee retry waiting after query backup failures or an automatic retry interval; not a query timeout.
concurrency, workersNonnegative usize integer
Smaller of available logical CPUs and 8; 1 if detection fails
Concurrent workers; query-based backup data readsUses the first nonempty alias. Explicit positive values are not capped by the default limit of 8. Do not set 0; it means neither automatic nor unlimited. File writing still has shared bottlenecks. More concurrency does not guarantee higher throughput; check RSS, query duration, and disk under the same load.
selectSQL string
No custom query
One query; when neither stables nor tables is specifiedRuns the SQL directly without appending start/end. Encode spaces and special characters according to DSN rules. Schema retrieval may still read schema for every table in the source database. Query result columns are not a schema inventory for the entire backup. Verify schema and replay capability within the approved scope first.
select_nameString
result
Result table name; select modeNames the query result. Not an SQL alias or input object filter; does not automatically provide target schema matching arbitrary query projections. Confirm result fields match the restore table separately. Do not use it as a first complete-backup example.

6.6 Query-Based Backup Local Target​

Parameter and aliasesType and defaultUnit and conditionsBehavior and limits
max_size, backup_max_size, max.file.sizeShared definitionQuery-based backup targetReuses shared type, units, and default. This mode checks rotation only after an entire table or query-result data segment ends; a single large result may substantially exceed the threshold. This does not apply incremental scheduling, retention, or offloading policies to query-based backups.
compression.level, compression_levelShared definitionQuery-based backup targetReuses the same Zstd level definitions. Successful compression and file size do not replace data and schema verification.
prettyString switch
false
None; query-based backup schema JSON formattingEmpty, 1, true, TRUE, yes, YES mean true; 0, false, FALSE, no, NO mean false. Other values warn and use false. Only improves schema file readability; does not change data compression or backup scope. Ordinary boolean parsing rules do not apply.
s3_enableBoolean
false
None; accepted by query-based backup configurationtrue requires mandatory entries among the seven shared S3 connection fields, but query-based backup does not upload automatically or check S3 connectivity during configuration parsing. Accepted parameters do not mean data is saved remotely. Preserve and verify the complete directory using an approved file-copy procedure.
layoutShared definitionQuery-based backup targetDirectory resolution reuses the same definition. Direct CLI use has no task identity; do not force task-level incremental markers with it.

6.7 S3 Connections for Backup and Restore​

The connection, permission, and object-prefix behavior below applies to incremental backup or restore. Query-based backup only parses these connection fields. It does not perform the connections, uploads, or downloads described here; do not use this group to determine an actual upload location for it.

Parameter and aliasesType and defaultUnit and conditionsBehavior and limits
s3_endpointNonempty string
Required when enabled
S3 service endpoint; target DSN for backup, source DSN for restoreEnter separately from the bucket name. For virtual-host style, do not include the bucket in the endpoint again. Accepts invalid server certificates, so successful HTTPS does not prove trusted identity verification. Confirm the security design before production use.
s3_access_key_idNonempty string
Required when enabled
Access key ID; s3_enable=trueUse an identity approved for the specified bucket and prefix. Check connection, upload, list, and download permissions and restore verification separately.
s3_secret_access_keyNonempty string
Required when enabled
Secret access key; s3_enable=trueInject through a controlled mechanism and encode according to DSN rules. Not a browser password. Do not put it in screenshots, public examples, or ordinary diagnostic packages.
s3_bucketNonempty string
Required when enabled
Bucket name; s3_enable=trueUse an approved backup bucket. Lifecycle rules must not prematurely remove objects needed by retained chains.
s3_regionOptional string
No uniform default at this layer
Region identifier; s3_enable=trueConfigure as required by the storage service. Behavior inferred by dependencies is not a universal default for all services.
s3_uri_styleEnum
path
Exactly path or virtualhost; s3_enable=trueConfigure as required by the service. Other spellings cause errors. Successful address resolution and connectivity do not prove certificate identity verification or complete chain upload.
s3_object_prefixOptional string
Uses / when unset
Prefix in the bucket; s3_enable=trueThe implementation appends a trailing / to nonempty prefixes. Does not automatically isolate tasks or consistently trim whitespace. Use an approved explicit scope for each chain. Some remote .z files do not prove .mz and layout materials are included.

Query-based backup s3_enable triggers parsing of the seven S3 connection fields, but does not guarantee automatic upload. This path does not perform automatic offloading. For shared connection definitions, see the table above. Do not apply incremental offloading retention policies to query-based backups.

7. Query Migration Source and Target Parameters​

The following optional DSN query keys apply when using taosx run directly for TDengine query migration. They are neither standalone CLI options nor complete client parameters. Put read parameters in --from and target parameters in --to. Since taosX 1.6.0, some advanced target-side options can also be written in --from; this page lists them separately in 7.2 rather than mixing them with source read parameters. Same-named keys do not imply identical effects or precedence. This table does not establish GUI initial values or submission-time conversions, and cannot be applied to TMQ, backup, file export, or other sources.

Section 7.1 lists only source reading, schema, and scope parameters. Section 7.2 lists keys parsed from --from that affect target writes, target schema, or migration compatibility. Section 7.3 lists the target DSN's own keys. A key's DSN location alone does not determine whether it affects source reading.

First complete the small-window exercise in TDengine Query Migration. Continuous-query retro, interval, excursion, and connection-pool entry-point restrictions are covered separately in Windows and Connection Pools and are not repeated here. Explicit time units are recommended. Encode spaces, SQL, paths, and credentials according to DSN rules, then protect the full DSN with shell quotes.

7.1 Source Reading, Schema, and Scope​

Parameter and aliasesType and defaultUnits and conditionsBehavior and limitations
schemaEnum string
always
None; query-migration schema phase for a direct --from source DSNAfter trimming, empty, always, and true mean synchronize schema before reading data; none and false skip the explicit schema-sync phase; only synchronizes schema and returns without data reading or continuous monitoring. Values are case-sensitive; others cause errors. none requires matching precreated target structures, but is not a security switch prohibiting all DDL: certain missing-column errors during data reading can still cause attempts to add target columns. On resuming an original service task, a recorded completed initial schema phase may also be skipped; this does not establish current schema consistency. This definition does not apply to target DSNs or backup-file restoration.
limitInteger, 0..4294967295
0, no LIMIT appended
Rows per actual query; direct --from source DSN; SQL generation for each read windowEmpty strings, whitespace, negatives, and out-of-range integers fail parsing. Both 0 and 4294967295 mean no LIMIT; 0 cannot mean migrate no data. Other positive values append LIMIT. It repeats per table and split query window, or per supertable window on sparse paths, not as a total-task row cap. A finite LIMIT actively discards remaining records in that window while progress can advance. Complete migration must not use it instead of batching or rate limiting; it does not guarantee paginated completion.
offsetInteger, 0..4294967295
Omitted, no OFFSET appended
Rows skipped per actual query; direct --from source DSN; SQL generation for each read windowEmpty strings, whitespace, negatives, and out-of-range integers fail parsing. Explicit 0 still appends OFFSET 0 and is not omission. Records are skipped repeatedly per table and window, not as a global task offset, timestamp, or checkpoint. It does not automatically increase offsets and loop through all data, and provides no stable sorting guarantee. Do not use nonzero offsets for complete migration. For sampling, verify actual SQL and results with an isolated target and finite LIMIT; do not rely on OFFSET-only behavior.
workersNonnegative integer within platform range
Initially 0; production uses available process parallelism, or 20 if lookup fails
Read work units; direct --from source DSN; query-migration scheduler constructionEmpty strings, whitespace, negatives, and out-of-range integers fail parsing. Omitted and 0 mean automatic selection, not zero work units or unlimited concurrency. Positive values set read work units; schema sync, historical tasks, and continuous data tasks share this scheduler. Not a total cap for connections, threads, memory, or target write concurrency. Internal scheduler counts are narrower than integers parseable on some platforms; a large parseable value is not necessarily usable. Validate gradually from modest small values and assess with 7.2 write-concurrency.
startDate/time with time zone, preferably RFC3339
Omitted; historical reads attempt to use the selected table's first primary timestamp
Absolute time; direct --from source DSN; historical reads and new objects handled by original historical rulesUse an explicit time zone, such as 2026-11-20T00:00:00Z. Empty or invalid dates fail parsing and are not interpreted as unitless integer timestamps. Historical windows include start and exclude end. Explicitly set start<end; completion of reversed or equal windows does not establish data migration. Omission attempts a first-timestamp query; query failure does not guarantee automatic boundary completion. A valid original service checkpoint can advance the actual start. Standalone CLI does not automatically inherit service checkpoints. Real-time phases advance windows separately; this does not constrain their entire read scope.
endDate/time with time zone, preferably RFC3339
Omitted; historical reads attempt to use the selected table's last primary timestamp plus 1 second as the upper bound
Absolute time; direct --from source DSN; historical reads and new objects handled by original historical rulesEmpty or invalid dates fail parsing. Specify a time zone and pair with start. Historical conditions are strictly less than end, excluding the endpoint. Omission means neither command-start time nor infinite future. If upper-bound queries fail, a finite upper bound is not guaranteed. Continuous phases of realtime/all use separate advancing windows and do not stop automatically because of this option. Check actual scope for new objects too.
unitNonnegative duration
Initially 0; ordinary window splitting uses 1d
Duration such as 1h, 10m, 1s; bare numbers are seconds; direct --from source DSN; time-window splitting for historical and ordinary per-table data tasksInvalid or negative durations cause errors. Use explicit units and manageable small windows. 0 falls back to one day, not no splitting. Complete start/end boundaries are needed for continuous splitting by this value; without them, smaller windows are not guaranteed. Each window independently applies limit, offset, and where. unit is not total migration duration, polling period, or a uniform memory cap. A specific path backfilling history before resuming real-time uses fixed 10-minute windows; not all supplemental queries follow this setting.
smooth-initNonnegative duration
0
Duration such as 100ms, 1s; bare numbers are seconds; direct --from source DSN; after each read work unit initializes both connections, before receiving tasksInvalid or negative durations cause errors; 0 adds no wait. Positive values provide a delay base to stagger work-unit startup. Actual waiting grows in logarithmic steps by work-unit index, not a uniform wait for all units or a per-row/window delay. Connections and connectivity checks occur before waiting; this cannot guarantee connection-establishment throttling, global write rate limits, or fixed end-to-end delay.
whereSQL condition string
Omitted, no extra condition
None; direct --from source DSN; data-query condition generationEnter a condition expression, not a complete SELECT or repeated WHERE. Encode reserved characters by DSN rules. The condition is joined verbatim with time conditions using AND, without automatic parentheses. Enclose expressions containing OR yourself, or they may exceed intended time/object conditions. Empty strings are not a safe way to disable filtering and may generate invalid SQL; omit if unused. Deciding whether to append query conditions checks only final start/end boundaries and effective pagination, not where itself. If no boundaries or effective pagination are obtained, a standalone where may be skipped by SQL construction; it may be appended after successful first/last-time queries. Explicit bounded start/end and positive/negative samples are recommended to check actual SQL and target scope. Accepted configuration does not prove executed filtering or replace source permissions.
modeCase-sensitive enum string
history
None; query-migration mode for a direct --from source DSNEmpty, history, asis, and as-is read currently queryable history and exit; realtime queries continuously; all reads history then enters continuous queries. Leading/trailing whitespace is not trimmed. both is not accepted; unknown values cause errors. Historical reads may still poll new objects, so the entire object set and data snapshot are not guaranteed frozen at startup. Continuous phases do not exit at historical end; forever does not change mode. schema=only returns after schema completion without this mode's data phase.
tablesComma-separated object list, with @file references
Omitted; enumerate database objects if no valid stables or tables list exists
Table names or execution-host list paths; direct --from source DSN; select specific objects when there is no nonempty stables listInline entries are trimmed and empty entries skipped. Table names and @ files can be mixed. Files are read on the execution host and appended line by line, not parsed as CSV. File lines are not automatically trimmed or recognized as comments. File-open failure causes an error; individual line-read failures are skipped. Empty inline strings, whitespace-only strings, commas only, or genuinely empty files can leave filtering unset and expand to the entire database; they are not empty object sets. Nonempty stables takes precedence; the lists are not intersected. Regular or child tables can use plain names. Special supertable.child_table syntax specifies the owning supertable, not a cross-database database.table name. This specific-table branch cannot combine with sparse=true and does not discover new tables outside the list.
select-from-stableText switch, disabled only by exact false
false
None; direct --from source DSN; ordinary per-table reads of child tables with identified owning supertablesIf present, only exact lowercase false disables it. Empty, 0, False, whitespace, and other values enable it without strict Boolean validation. It selects non-tag data columns from the owning supertable and restricts the child table with tbname. It does not select all children, automatically enable sparse mode, or change object lists. Regular tables without identified supertables are still queried directly. Sparse reads have a separate path; the switch alone does not establish supertable-based reads for every object.
shuffleText switch, disabled only by exact false
false
None; direct --from source DSN; whole-database enumeration without valid stables/tablesIf present, only exact lowercase false disables it; empty, 0, or other spellings enable it. Only the whole-database branch shuffles its temporary table list. Explicit stables/tables branches do not use it, and subsequent task sets and parallel scheduling do not guarantee preservation of this order. It cannot guarantee cross-vgroup balance, random-sample quality, read ordering, or deterministic migration order.
sparseText switch, disabled only by exact false
false
None; direct --from source DSN; explicit stables selection or whole-database enumeration without valid listsIf present, only exact lowercase false disables it; empty, 0, False, and similar values enable it. Reads multiple low-frequency child tables by supertable and time window; not a general acceleration switch for ordinary per-table reads. Only tables, or both valid stables and tables lists, causes an error. With neither list set, it does not reject execution: it enumerates every supertable and handles regular tables separately, risking scope expansion. Explicitly set stables initially and verify objects and windows. Virtual objects use schema paths only; sparse does not guarantee replication of their query results.
schema-polling-intervalPositive duration; 0 parses but is not a valid scheduling interval
10m
Duration such as 10m, 30s; bare numbers are seconds; direct --from source DSN; historical or continuous queries with schema not onlyInvalid or negative durations cause errors. 0 does not disable polling; it causes polling scheduling failure. The first check can occur immediately after polling starts, followed by this interval. Historical mode also polls but stops at the end of the run, not permanently continuing. It mainly discovers new objects within scope, not guaranteed continuous replication of all existing-schema differences, deletions, tag updates, or all DDL. The tables branch does not expand its fixed list. schema=none can still discover and read new objects, skipping only their explicit schema synchronization.
schema-polling-wait-before-endNonnegative duration
Omitted, no extra wait
Duration such as 5s, 1m; bare numbers are seconds; direct --from source DSN; after normal data phase, before object monitoring closesInvalid or negative durations cause errors; 0 adds no wait. Positive values add waiting before monitoring closes, not between polls, total-task duration, a source quiet period, or connection timeout. Objects may still be discovered and processed during the wait. It does not guarantee capture of all new objects or completion of all in-flight data. Check inventory and targets afterward. schema=only returns early; continuous runs and external cancellation are not guaranteed to reach this wait.
stablesComma-separated supertable list, with @file references
Omitted; enumerate database objects if no valid stables or tables list exists
Supertable names or execution-host list paths; direct --from source DSN; preferentially selects supertables and their childrenInline entries are trimmed and empty entries skipped. @ files are read and appended line by line on the execution host, not parsed as CSV. Lines are not automatically trimmed or recognized as comments, and line-read errors are skipped. Empty inline strings, whitespace, commas only, or genuinely empty files are not explicit empty scope and may fall back to tables or whole-database enumeration. Nonempty stables precedes tables, not an intersection; both valid lists cause errors in sparse mode. By default, listed supertables expand to children, and polling can find their new children. New supertables outside the list are not automatically selected. Virtual objects synchronize schema only, not virtual query results.

7.2 Target-Side and Compatibility Keys Written in the Source DSN​

These keys are parsed from --from DSNs but are not source read or scope parameters. Converted write-concurrency overrides target write concurrency. fails-to and check-table-exists provide compatibility fallbacks for target failure recording and target child-table checks if the target DSN omits them. minimal affects target database-creation options and version compatibility checks. Source assert and forever are parsed only and do not control actual database creation or continuous operation. Source comments state that some advanced target options were added to source DSNs in taosX 1.6.0, which is why these keys appear in --from. The target DSN's own fails-to, check-table-exists, minimal, and assert still follow their respective precedence. A key being written in --from does not make it a source-read capability.

Parameter and aliasesType and defaultUnits and conditionsBehavior and limitations
assertStrict Boolean string
false; source value does not control actual database creation
None; parsed from direct --from source DSN; not used by production query migrationParsed only on the source, with no control over actual database creation; not a source-read parameter. Accepts only empty, true, or false; empty and true enable it. Other spellings, case, or whitespace cause errors. This source value is not passed to actual automatic database creation, so source assert=true cannot create the target database. Target automatic creation is separately controlled by target DSN assert. For first migration, have an administrator precreate and check a separate target database. Same-named parameters do not override each other across sides.
foreverStrict Boolean string
false; parsed only
None; parsed from direct --from source DSN; unused for production continuous-operation decisionsParsed only on the source and does not control continuous operation; not a source-read parameter. Accepts only empty, true, or false; empty and true enable it. Other spellings, case, or whitespace cause errors. Actual continuous operation is determined by mode, not this key. forever=true does not turn history into continuous sync; forever=false does not make realtime/all exit automatically at a deadline. Not a stop, daemon, or recovery guarantee.
write-concurrencyNonnegative integer within platform range
Omitted; target write-concurrency configuration per read work unit defaults to 1
Count converted to per-work-unit write concurrency; direct --from source DSN; combined with actual workers for target write concurrencyTarget write concurrency, not source read concurrency. Empty, whitespace, negatives, and out-of-range integers cause errors. Positive values are divided by workers and rounded up to set write concurrency per read work unit, overriding target concurrent-limit. 0 becomes 1 per work unit, not stopped writes or infinity. With a minimum of 1 and upward rounding, the total can exceed the entered value. For example, workers=8 and write-concurrency=1 still allow concurrency 1 per unit, not a strict global write budget. Control workers first, then tune individually by actual write path, memory, and pressure at both sides.
fails-toExecution-host file-path string
Omitted, no failure file created
File path; direct --from source DSN; used if target DSN omits fails-toA target failure-record file, not a source-read error record. Target DSN fails-to precedes this same-named source compatibility key. An explicit empty target value does not fall back to the source. Use a controlled path writable by the execution account with a preexisting parent directory. Opened for append or creation; open failure fails execution. Whitespace is not trimmed. Records schema, table, or data-window errors; not an exception Parquet archive, restore input, or directly replayable backup. Some schema errors are logged and tolerated when enabled, so task completion does not establish complete schema. Unrecoverable data errors can still fail work units and tasks; it does not skip every error. Inspect failed objects, logs, and target results before deciding backfill.
minimalText switch; empty, true, 1, yes enable
false
None; direct --from source DSN; automatic database creation and schema compatibility branchesMigration-compatibility switch, not a source-read parameter. Only exact empty, true, 1, yes enable it. All other values, including other case or whitespace, disable without errors. Enabled at source, automatic creation retains only source precision when no explicit target database-options are provided, and bypasses one newer-source-to-older-target version check. Supertables use minimal schema creation, omitting some compression and annotation information. The target same-named switch can enable minimal supertable creation, but does not change source-controlled database creation/version checks. No guarantee of compatibility for arbitrary versions, types, virtual objects, or all schema properties. Verify a small scope on an isolated target first. It neither disables schema sync nor automatically migrates user permissions.
check-table-exists, check_table_existsText switch; empty, true, 1, yes enable
Unspecified if source omitted; final default true
None; direct --from source DSN; child-table schema synchronization for supertables unless overridden by target check-table-existsControls target child-table existence checks, not source reading. Only exact empty, true, 1, yes enable it; all other values, including different case or whitespace, disable without errors. If both source spellings exist, check-table-exists wins even if empty or disabled, with no fallback to the underscore alias. Use one spelling at a time. Target check-table-exists takes precedence, then source value, then true. Enabled, it queries existing target children and preferentially creates only missing ones. Disabled skips this precheck but still submits idempotent creation; it does not prohibit table creation. Target tag updates still query existing children if enabled. Not a guarantee of full schema consistency, primary-key deduplication, overwrite protection, or transactional rollback.

7.3 Target Writes and Schema​

Parameter and aliasesType and defaultUnits and conditionsBehavior and limitations
schemaSchema-mode enum
always, target parsing default only; does not control this entry point's schema migration
None; TDengine query migration with direct target DSN only; parsed but unused for runtime control, not GUI behaviorAfter trimming, accepts empty/always/true, none/false, or only; other values fail configuration. Source DSN schema actually determines initial schema migration and polled schema synchronization. Target schema does not override it; target schema=only cannot stop data migration. Source schema=none does not prohibit all target table creation/alteration either. Certain missing-table or missing-column errors during writes can still trigger schema repair.
assertBoolean switch accepting only empty, true, false
false
None; direct target DSN query migration only, when the target database cannot yet be selected; not GUI behaviorEmpty or true enables; false disables; other values fail configuration. Enabling requires a target database name. After selection fails, attempts create-if-not-exists database creation, requiring permissions and still subject to permission or other failures. Omission does not proactively create a database. Same-named source compatibility keys do not replace this setting. It does not control table-schema migration or clear/overwrite existing databases.
database-optionsDatabase-creation options string
Unset; converted from source options when automatic creation is needed
TDengine database-creation option text; direct target DSN query migration only, with target assert enabled and creation needed; not GUI behaviorAn explicit value supplies the option portion of the target creation statement, without merging source options. If the target database can already be selected, existing configuration is unchanged. An explicit empty string is supplied and prevents fallback to source options. Check valid options against target version and required precision, and DSN-encode reserved characters. Not an arbitrary SQL execution entry point.
batch-sizePlatform-range nonnegative integer; use positive values
Unset; no extra source-block splitting by this option
Rows; direct target DSN query migration with parameter-binding writes only; not GUI behaviorLimits rows per split write only for target 2.x or when target force-stmt selects parameter binding. Target 3.x default block writes do not use it. Splits only when the value is below the current block's rows; does not combine small blocks to this size. 0 is neither default nor infinity and causes division by zero for nonempty blocks; use positive values. Invalid/out-of-range integers fail configuration. Not a task memory cap or database network-fetch batch.
concurrent-limitPlatform-range positive integer
1; overridden by conversion of --from write-concurrency when provided
Block or sparse write concurrency per read work unit; direct target DSN query migration, block/sparse write paths only; not GUI behavior0 or invalid integers fail configuration even if a compatibility key later overrides it. If source workers is omitted or 0, use available logical processors or 20 if unavailable before calculating write concurrency. If --from write-concurrency exists, it overrides the target value: divide it by actual workers and round up; 0 gives 1 per unit. Total rounded capacity can exceed the entered value, so write-concurrency is not a strict whole-task write-concurrency cap. Parameter-binding writes do not parallelize through this option. Not a cap on all database connections or schema operations.
blocks-chunk-sizePlatform-range positive integer
1
Source blocks; direct target DSN query migration, target 3.x block writes without force-stmt only; not GUI behavior1 writes block by block. Higher values combine adjacent blocks before writing; the last group can be smaller. Not rows, bytes, or concurrency. Combining can increase per-write memory/load and does not guarantee a fixed row count. 0 or invalid integers fail configuration. Parameter-binding and sparse writes do not use it for combining blocks.
intervalNonnegative duration string
Unset, no additional wait
Duration, preferably explicit 500ms/1s; bare integers are seconds; direct target DSN query migration, after ordinary block/parameter-binding writes and some schema operations; not GUI behaviorWait after corresponding write or schema processing, not same-named source real-time query scheduling or retry intervals. 0 adds no wait; invalid durations fail configuration. Work units may wait independently, and some schema statements/sparse writes do not uniformly wait by this setting. Not strict whole-task throttling, every-SQL spacing, or end-to-end delay guarantees.
max-sql-lengthPlatform-range nonnegative integer; use a sufficiently large positive value
1000000
UTF-8 SQL bytes; direct target DSN query migration, batch child-table creation and sparse-write SQL construction; not GUI behaviorBatching threshold for corresponding constructed statements, not a uniform cap for all SQL, blocks, or parameter-binding writes. 0 parses but neither disables limits nor selects defaults; it can fail empty statements or statements too small for one item. Very small positive values are likewise unreliable. A single table definition or row must still fit legal SQL; arbitrary input is not guaranteed safely split. Invalid/out-of-range integers fail configuration.
force-stmtPresence-based switch
false if absent
None; direct target DSN query migration, ordinary table data writes only; not GUI behaviorAny presence enables parameter-binding writes; empty, false, 0, and other text do not disable it. To disable, remove the entire key rather than set force-stmt=false. Target 3.x defaults to block writes without it; target 2.x already uses parameter binding. Once enabled, do not assume block-path concurrency, combining, and retry parameters still apply. It does not switch sparse writes.
fails-toExecution-host file-path string
If target omitted, use the same-named source compatibility key; if both omitted, no error file
File path; direct target DSN query migration only, opened during parsing with errors appended; not GUI behaviorTarget value precedes source. Explicit empty does not fall back and normally fails file opening. Append-open or create does not create parent directories. Prepare writable paths under the actual account and DSN-encode them. The file contains errors, objects, and possible time ranges, not directly replayable data archives. Some schema errors are treated as logged and execution continues, but not all data errors continue: unrecoverable errors may stop work. Check failure lists, schema, and data. Task completion or file existence does not establish migration completeness.
timeout-per-tableNonnegative duration string
Unset
Duration, preferably explicit 30s/5m; bare integers are seconds; direct target DSN query migration only; parsed but unused for runtime control, not GUI behaviorDoes not apply per-table migration timeouts, skip slow tables, or terminate SQL. 0 likewise has no actual enabling/disabling effect. Invalid durations still fail configuration. Confirm another supported entry point for query/task deadlines. This option cannot guarantee task exit within a specified time.
update-tagsText switch disabled only by exact false
false
None; direct target DSN query migration, child-table schema synchronization for supertables only; not GUI behaviorPresence with any value other than exact false enables it, including empty, 0, False, and other text. Queries existing target child-table tags and attempts to update values differing from source. Required target checks still run with check-table-exists=false. Not an independent switch monitoring all tag changes continuously, and does not change historical data values. Failed tag updates may only log and continue; verify every target tag after completion.
retry-limitPlatform-range nonnegative integer
600; invalid, empty, or out-of-range values also fall back to 600
Extra-attempt budget in the main block-write loop; direct target DSN query migration, qualifying ordinary block-write retries only; not GUI behaviorThe main loop exits after failures exceed the value. Budget N normally allows the first attempt plus up to N additional attempts: default means at most 601 main-loop write calls, not 600 total. 0 exits on the first failure without that loop's schema-repair retries. Nonretryable errors or failed repairs can exit earlier. Parameter binding, sparse writes, and outer connection recovery have separate handling; some errors also receive an extra converted write. Not a uniform cap on all task attempts or total duration.
retry-sleepNonnegative duration string
2s; invalid values warn and still fall back to 2s
Duration, preferably explicit 2s/500ms; bare integers are seconds; direct target DSN query migration, certain ordinary block-write sync-error retries only; not GUI behaviorWaits only before retries for corresponding 0x0900..0x09FF errors, not uniformly for every write error, schema repair, or connection recovery. 0 adds no wait, not no retries. Although the invalid-value warning says default 1s, actual fallback remains 2s; do not infer actual waiting from that warning. Configure separately from target interval's post-success wait and source interval's query schedule.
remapField-renaming list string combining inline rules and headerless CSV references
Unset, no field-renaming mapping
Triples of source table identifier, original field, target field; direct target DSN query migration, schema conversion/block/sparse write paths only; not GUI behaviorInline format: meters::old_field::new_field, comma-separated. File references use @ paths; headerless CSV first three columns are table identifier, original field, and target field. References must start with @ without preceding whitespace; execution-host paths must be DSN-encoded. Match child-table field mappings by source supertable name and regular tables by source regular-table name, not renamed target names. File rules precede inline rules. Rules for one table must be consecutive in merged order, or later sections may replace the entire earlier group. Within a consecutive group, later duplicate-field entries win. Invalid inline syntax, CSV rows with fewer than three columns, or bad records can be skipped; extra columns are ignored and headers treated as rules. Successful configuration does not detect missing entries. File-open failure fails configuration. Not table renaming or a guarantee that parameter-binding writes reorder values by field name. Check target schema and data individually.
minimalBoolean text switch: empty, true, 1, yes are true, others false
false; source or target true enables corresponding minimal-schema handling
None; direct target DSN query migration, minimal supertable-schema reconstruction only; not GUI behaviorSource and target combine with logical OR. If source is true, target false cannot disable it. The target option mainly affects supertable reconstruction, not uniform simplification of all metadata. Keeping only precision on automatic database creation and the newer-source-to-older-target version precheck still depend separately on source DSN minimal. Target-only configuration does not establish those conditions. Minimization retains fewer schema options and does not guarantee arbitrary downgrade compatibility. First check columns, tags, precision, and required properties on an isolated target.
check-table-existsBoolean text switch: empty, true, 1, yes are true, others false
If target omitted, inherit source compatibility key; true if both omitted
None; direct target DSN query migration, child-table schema synchronization for supertables only; not GUI behaviorExplicit target values precede source, including false. true queries existing target children and identifies creation candidates. false skips this precheck but still submits create-if-not-exists statements, not deletion, overwrite, or skipped schema sync. update-tags still queries the target when enabled. Source DSNs support alias check_table_exists, but this target entry point accepts only check-table-exists. Source aliases are not target aliases. Not a uniform existence check for all regular tables, supertables, and data writes.

7.4 Checks After Changes​

Retain source/target versions, original configuration, and written ranges. Adjust one option at a time. Check source results, target schema, values, and tags for the same objects, time zones, and start/end boundaries. Schema options, field mappings, and retries do not replace recovery drills. Task exit or absence of errors does not prove complete migration. Error-record files reside on the execution host, do not prove automatic backfill, and must not be interpreted with taosx archive.

8. Shared Advanced Parameter Parsing and Scope​

The eight optional names below describe only parsing and runtime limits when a source DSN is passed directly through taosx run --from. They are not standalone CLI options and cover only the four entry-point groups below, not every connector, UI, or process configuration. Check initial values, whether values are passed, and conversions for same-named form controls separately. This table does not prove a control is effective or ineffective. When omitted, all shared parsed results are empty; no uniform runtime defaults are provided. Consult each group for actual defaults, zero-value handling, and conditions. Invalid values may fail configuration parsing even if the field does not participate in runtime control.

8.1 Shared Names and Types​

NameTypeParsing rules
log_levelOptional enumShared parsing accepts only lowercase error, warn, info, debug, trace without trimming whitespace. Whether it controls source logging depends on the groups and source-specific descriptions below, not the field name.
read_concurrencyOptional nonnegative integerParsed within the execution platform's unsigned integer range. Empty strings, whitespace, negatives, or out-of-range values fail. 0 parses, but handling differs by group; no uniform zero behavior or default is provided.
write_concurrencyOptional nonnegative integerParsed within the execution platform's unsigned integer range. Empty strings, whitespace, negatives, or out-of-range values fail. Parseability does not mean it controls target write concurrency. None of the four groups below can use it to adjust actual write concurrency.
batch_sizeOptional nonnegative integerParsed within the execution platform's unsigned integer range. Empty strings, whitespace, negatives, or out-of-range values fail. Units, defaults, and zero handling depend on the group; not a uniform memory, network fetch, or target batch limit for all sources.
batch_timeoutOptional nonnegative integerParsed within the execution platform's unsigned integer range; declared unit is milliseconds. Empty strings, whitespace, negatives, or out-of-range values fail. None of the four groups below use it to control actual batch waits or timeouts.
keep_raw_dataOptional booleanAccepts only exact true or false. Empty strings, whitespace, 0, 1, and other letter cases are not equivalent. Used only by groups with retention writing integrated; successful parsing does not prove files were generated.
keep_raw_data_daysOptional nonnegative integerParsed within the execution platform's unsigned integer range. Empty strings, whitespace, negatives, or out-of-range values fail. The word days does not mean actual retention in days; the Historian reader listed here uses it as a rotated-file count.
keep_raw_data_dirOptional stringPreserves the directory string without trimming whitespace. An explicit empty string is not omission. The directory belongs to the host running the actual collection process, not the browser host.

8.2 MySQL, PostgreSQL, Oracle, SQL Server, and MongoDB Query Sources​

Read concurrency limits jobs expanded from filter combinations, using the same rules for historical and continuous queries. Increasing the value does not automatically add jobs when no combinations can be split. Batch size is not a uniform memory limit: SQL Server first collects an entire query window's results, then splits batches, so query windows still need limits. Batches are not an SQL total-row limit, a database network fetch batch, or a guarantee of final target row counts.

Effective nameGroup defaultUnits and conditionsRuntime limits
read_concurrency1Concurrent jobs; read tasks expanded by child table or filter combination in historical and continuous queries0 is treated as 1; positive values limit concurrency of expanded read tasks. Without splittable combinations, the original single query remains; increasing this value does not split the same window automatically. Not total source connections, target write concurrency, or a concurrency limit for every operation.
batch_size10000Records per batch after row or document conversion; when query results become output batchesOmission and 0 both use 10000; positive values split batches as configured. Not SQL LIMIT, network fetch count, or a uniform memory limit. SQL Server collects an entire window before batching. Other sources also require separate window and memory controls; reducing this value alone does not prevent memory growth.
Other nameGroup limits
log_levelProduction query read paths in this group do not use this shared item to control logs. Process logging configuration is separate; DSN acceptance does not prove a changed log level.
write_concurrencyProduction query read paths in this group do not use this item for target write concurrency; not a target write tuning switch.
batch_timeoutOutput batch paths in this group do not use it for batch waiting, source SQL timeout, or target write timeout.
keep_raw_dataThis group has no raw-data file retention path integrated with this shared switch. true does not guarantee retention files.
keep_raw_data_daysThis group does not use this shared item to manage file retention; no day or file-count guarantee.
keep_raw_data_dirThis group does not use this shared directory to create raw-data retention files. Does not change the process data directory or target path.

8.3 AVEVA Historian​

Effective nameGroup defaultUnits and conditionsRuntime limits
read_concurrency1Historical read tasks; historical migration and the historical backfill phase of synchronization mode0 is treated as 1; positive values control historical task concurrency. Does not control real-time new-value query concurrency or provide a total connection limit shared by all modes.
batch_size10000Rows; historical migration and the historical backfill phase of synchronization modeOnly omission uses 10000. 0 does not fall back and may accumulate a whole window's results before forming a batch at the end; do not use it. Configure a positive value. Historical queries collect batches for the window before sending, so this does not guarantee total memory stays below the value. The real-time new-value path does not use it for batching.
keep_raw_datafalseBoolean; file-retention path for production collectiontrue enables collected-data file writing; false does not generate these retention files. Content comes from converted collected batches, not complete raw source protocol records, and does not prove successful target writing. Check actual directories, permissions, and file contents.
keep_raw_data_days30Number of rotated files, not days; keep_raw_data=truePositive values specify rotated-file count. 0 uses the process logging global rotation count, not unlimited retention. For an exact count, use 1..65535; larger integers are truncated and do not guarantee the original count. Compression, rotation size, and reserved disk space remain subject to global log settings.
keep_raw_data_dirExecution context data directory when omittedExecution-host directory; written when keep_raw_data=trueCreates a retention location under this directory by tasks/task ID/job ID. Explicit empty or whitespace-only strings do not fall back to the default; do not use them. Relative paths use the execution process working directory. Check the actual task, job, and execution host; do not apply browser paths, other sources' directories, or previous task locations.
Other nameGroup limits
log_levelThis source does not use this shared item to change log level; do not confuse it with process logging configuration.
write_concurrencyThis source's production collection path does not use it to adjust target write concurrency.
batch_timeoutThis source's production collection path does not use it to control batch waiting, query timeouts, or write timeouts.

8.4 InfluxDB​

Effective nameGroup defaultUnits and conditionsRuntime limits
read_concurrency50Read scheduling threads; production collection read schedulingOmission uses 50. 0 does not fall back and invalidates the read thread pool configuration. Use a positive value no greater than 2147483647 and start far below that limit. Not a limit on total database connections, target write concurrency, or total threads.
batch_size5000Cached records; when taking data from the collection cache for outputOmission uses 5000. Positive values limit data taken from cache at once, not total source query rows, network fetch batches, or task-wide memory. 0 does not fall back and may prevent cached data retrieval; do not use it. Configure a positive value no greater than 2147483647 and check actual batches with scoped collection.
Other nameGroup limits
log_levelConfigure separately using the InfluxDB source-specific description. Not redefined here; a shared field unused for performance control does not mean logging configuration is ineffective.
write_concurrencyForwarded into intermediate performance configuration, but the collection plugin does not load the corresponding item. Forwarding or configuration logs do not prove actual write concurrency changed.
batch_timeoutForwarded into intermediate performance configuration, but the collection plugin does not load the corresponding item. Cannot adjust actual batch waiting or query timeouts.
keep_raw_dataThis source has not integrated this shared file-retention switch. true does not guarantee retention files.
keep_raw_data_daysThis source has not integrated this shared retention count or time control; no retention-day guarantee.
keep_raw_data_dirThis source has not integrated this shared retention directory setting. Does not change the collection plugin cache directory.

8.5 OpenTSDB​

Effective nameGroup defaultUnits and conditionsRuntime limits
read_concurrency50Read scheduling threads; production collection read schedulingOmission uses 50. 0 does not fall back and invalidates the read thread pool configuration. Use a positive value no greater than 2147483647 and start far below that limit. Not a limit on total database connections, target write concurrency, or total threads.
Other nameGroup limits
log_levelConfigure separately using the OpenTSDB source-specific description. Not redefined here; a shared field unused for performance control does not mean logging configuration is ineffective.
write_concurrencyForwarded into intermediate performance configuration, but the collection plugin does not load the corresponding item. Forwarding does not prove actual write concurrency changed.
batch_sizeForwarded into intermediate performance configuration, but the collection plugin does not load the corresponding item. Actual output uses the plugin's own batch settings. Neither a shared forwarded value of 5000 nor a custom DSN value is the actual output batch size.
batch_timeoutForwarded into intermediate performance configuration, but the collection plugin does not load the corresponding item. Cannot control actual batch waiting or query timeouts.
keep_raw_dataThis source has not integrated this shared file-retention switch. true does not guarantee retention files.
keep_raw_data_daysThis source has not integrated this shared retention count or time control; no retention-day guarantee.
keep_raw_data_dirThis source has not integrated this shared retention directory setting. Does not change other collection plugin data directories.

After configuration, check actual source reads, output batches, and target results in an approved small window. For retention, also check execution-host paths, permissions, and files. Configuration acceptance, a successful connection check, or configuration logs do not replace verification that the parameter actually takes effect.

9. Query Migration Window and Connection Pool Parameters​

These are two TDengine query-migration parameter groups inside taosx run --from, not standalone CLI options or a complete query-migration parameter table. They do not apply to TMQ, external relational database queries, or file export. All names are optional; the connection pool group additionally has limitations preventing it from taking effect. Direct DSN behavior does not replace initial graphical UI values. For full operations, time zones, and verification, see TDengine Query Migration.

Choose one spelling per group; do not set multiple aliases together. Specify units for time parameters, for example interval=1s&excursion=500ms&retro=5m. This is only a parameter-format example, not a task creation command or a guarantee of late-data completeness.

9.1 Real-Time Windows​

Parameter and aliasesType and defaultUnits and effective boundaries
retro, restro, retrospectNonnegative duration; explicit units recommended
Initially 0; if still 0 before continuous queries begin, compensated using actual duration of the preceding phase
Units: for example 5m or 30s. A startup lookback window at entry to continuous querying, not a rolling lookback on every round. Its end is real-time start minus excursion, and it reads retro backward from there. If multiple aliases exist, the first present value in retro, restro, retrospect order is used; empty values are not skipped. Use one spelling per group. This does not guarantee discovery of all data written back to old times during operation.
intervalPositive duration; explicit units recommended
1s
Units: for example 1s or 500ms. Source DSN continuous-query scheduling interval, not the duration of a query round, total migration time, or an end-to-end latency guarantee. Although zero passes duration parsing, it is not a valid continuous scheduling interval. Do not use 0 to mean fastest or no waiting. The same-named target DSN parameter controls a different write wait; this table does not apply to it.
excursionNonnegative duration; explicit units recommended
500ms
Units: for example 500ms or 2s. Continuous queries subtract this from current time to define the read-window upper bound, allowing margin for clock differences or short arrival delays. It does not reread that amount of history each round. After a successful round, the next starts from the completed upper bound. It cannot compensate for arbitrarily old late arrivals or rewrites. 0 removes this margin, not continuous queries.

9.2 Connection Pool Limitations​

Parameter and aliasesType and defaultUnits and effective boundaries
pool_timeout, pool-timeout, poolTimeoutParser defines a nonnegative integer; source DSN is not an effective tuning entry point
Parser fallback 600; the production entry point does not use these source DSN values
Units: seconds. Defined as the pool connection-creation timeout, not an idle-connection acquisition queue timeout, SQL timeout, or single-table migration timeout. However, query migration removes these keys before creating the source pool. Do not add them to tune connections. If invoking the parser, aliases use the first present value in listed order; blank or invalid integers fall back to default. This does not establish that actual configuration took effect.
pool_size, pool-size, poolSizeParser defines a nonnegative integer; source DSN is not an effective tuning entry point
Parser fallback 5000; the production entry point does not use these source DSN values
Units: connection-limit setting. Separate from read workers, overall write concurrency, and target concurrency per work unit. Does not mean 5000 connections are established at startup. The production source entry point removes these keys first; they cannot limit database connections. If invoking the parser, aliases use the first present value in listed order; blank or invalid integers fall back to default. 0 is not a recommendation for unlimited connections.
pool_queue_mode, pool-queue-mode, poolQueueModeParser accepts FIFO, fifo, 0, or LIFO, lifo, 1; source DSN is not an effective tuning entry point
Parser fallback FIFO; the production entry point does not use these source DSN values
Units: none. Pool connection retrieval order, not a guarantee of source data, task, file, or written-row order. The production source entry point removes these keys first. If invoking the parser, aliases use the first present value in listed order and unknown values fall back to FIFO. This definition does not prove the current task runs with the entered value.

9.3 Checks After Configuration​

Retain the original task, source retention window, and target verification location first, and adjust one option at a time within an approved small scope. After real-time mode starts, check query-window logs, source records at the same instant, and target data. A continuously running process does not prove old-time data is complete. Although connection pool names have parser definitions, the production query-migration entry point removes these source DSN keys first; they cannot adjust pool size or timeout. Parser defaults are not evidence of settings adopted by the current task. For connection tuning, supply actual source and target versions, protocols, task details, and errors, and ask technical support to confirm the approved entry point.

10. Kafka read parameters​

The following parameters belong to the Kafka source DSN in taosx run --from. Consumption and read-specific parameters do not apply to --to publishing; connection authentication definitions are also reused for Kafka publishing. None of these query keys are standalone CLI options with the same names.

This table lists 28 named parameters covering connection authentication, consumption, and read-batching settings confirmed to take effect. Shared parsing, mapping, target write settings, and dynamic client extensions are outside its scope. Defaults describe behavior when a direct DSN omits the setting and extension configuration does not override it, not taosExplorer form initial values. For procedures and UI descriptions, see Kafka.

Specify host:port for each address in the DSN, separating multiple Brokers with commas. Use source-administrator-provided addresses and ports; do not assume an omitted port becomes 9092. The actual collection process must also be able to access advertised Broker addresses. Required conditions below refer to normal collection and the selected authentication method. Parser acceptance of an empty value does not make the configuration usable.

10.1 Consumption and positions​

Parameter and typeWhen unset and unitRequired and conditionsUsage
topics
String list
None; configure nonempty topic names
Unit: none
Yes; Kafka readsSeparate topics with commas. The actual collection identity needs read permission for every topic. This is not a target supertable name.
group
String
Empty string, unsuitable for normal collection
Unit: none
Must be explicit for normal collection; Kafka consumer groupEnter a dedicated group name. Consumers in one group share partition assignments. Copying tasks with the same group does not give each a complete read. This is not Client ID.
fallback_offset
Enum string
Largest
Unit: none
No; explicit configuration recommended; used when the group has no usable offset or the original position is outside retentionCase-sensitive: Smallest, Earliest, and Beginning start at the earliest available position; Largest, Latest, and End start at the latest; Error returns an error. Other values also fall back to Largest; do not rely on misspellings. Existing valid offsets are not reset.
seek_to_end
Boolean
false
Unit: none
No; explicit true selects the seek-to-end read pathNot an alias for fallback_offset. It may skip pending messages. Use only with approval when historical backlog is explicitly unnecessary. Do not enable it for continuous-collection examples.
timeout
Duration string
0ms, continuous waiting
Unit: explicit, such as 30s
No; timeout while collection waits for new messagesUse 0ms or never to wait continuously. A finite value ends waiting when no messages arrive. This is not a source connection or target write timeout and does not prove all historical data has been processed.
client_id
String
Not explicitly set; left to the Kafka client
Unit: none
No; sets the client identifier when nonemptyUsed for source logs and connection identification. Does not change consumer-group isolation or partition-assignment rules. Empty strings and omission both leave it unset.
enable_group_instance_id
Boolean
false
Unit: none
No; true sets instance identifiers for created consumersThe collector generates the identifiers; they are not user-defined fixed names. The same identifier is not guaranteed across process restarts, nor is rebalancing avoidance. Invalid boolean values also fall back to false; use only true or false.
char_encoding
Enum string
No character transcoding
Unit: none
No; before message-body parsingCase-sensitive UTF_8, GBK, GB18030, or BIG5. UTF_8 and omission perform no transcoding; other encodings convert to UTF-8. Still verify subsequent parsing with real messages.

10.2 Reading and commits​

Parameter and typeWhen unset and unitRequired and conditionsUsage
read_concurrency
Nonnegative integer
Determined from the total partition count of subscribed topics; 0 behaves the same
Unit: reading instances
No; after the Kafka read task starts and obtains source partitionsA positive integer limits reading instances, without exceeding subscribed topics' total partitions. Other group consumers still participate in assignment. This is not target write concurrency and does not guarantee each instance receives a partition.
batch_size
Integer; use positive integers normally
1000
Unit: Kafka messages
No; when building batches from read messagesControls sending time together with batch delay, not unique target rows or underlying Broker fetch bytes. Compare latency, memory, and target load before increasing. Parser acceptance of 0 does not define it as disabling batching.
batch_timeout
Nonnegative integer
1000; a valid environment value can override the DSN
Unit: milliseconds, without a unit suffix
No; after the first message of the batch arrivesSends on expiry even if not full. Not a no-message exit timeout or an end-to-end latency guarantee. 0 stops waiting to fill a batch; it is not infinite waiting. A valid nonnegative integer in TAOSX_KAFKA_BATCH_TIMEOUT_MS in the actual collection process environment takes precedence. Invalid environment values fall back to the DSN, then the default. Check actual Agent and service process environments separately.
commit_interval
Duration string
5s
Unit: explicit, such as 5s
No; automatic consumer-position commit intervalCorresponds to the initial 5000 ms commit interval. Shortening it does not provide exactly-once target writes. Still check source positions and target data during failure recovery.
fetch_max_wait_time
Duration string
500ms
Unit: explicit, such as 100ms
No; Broker wait to accumulate fetch-response dataAffects read waiting and throughput together with fetch_min_bytes. Not a no-message exit timeout. Increasing it may add latency at low traffic.
fetch_min_bytes
Integer
1
Unit: bytes
No; Kafka fetch requestsExpected minimum response data from the Broker, not a message count. Tune together with wait time; do not enter batch row counts as bytes.
fetch_max_bytes_per_partition
Integer
1048576
Unit: bytes per partition
No; initial Kafka fetch size per partitionDefaults to 1 MiB. Configures reads per topic partition, not the entire taosX process memory limit, and is not guaranteed to be an absolute message-size limit.
fetch_crc_validation
Boolean
Not explicitly set; left to the Kafka client
Unit: none
No; controls CRC validation of consumed messages when explicitUse true or false. Do not describe omission as always disabled. This check does not replace comparison of source and target business records.
connection_idle_timeout
Duration string
Not explicitly set; left to the Kafka client
Unit: explicit, such as 5m
No; Broker idle-connection closureControls idle connections, not task idle exit. Coordinate with source connection policies; this value cannot fix authentication or advertised-address errors.

10.3 Connection and authentication​

Parameter and typeWhen unset and unitRequired and conditionsUsage
ca
PEM text or @file path
None; omission or empty values do not enable TLS
Unit: none
Configure for TLS; a nonempty value enables TLS at this Kafka connection entry pointThe file is read on the host actually running taosX. Prefer @ followed by an absolute path. Setting only cert or use_ssl=true cannot replace this enabling condition. See this section for TLS identity-verification limitations.
ca_password
Sensitive string
None
Unit: none
Configure when the private key is encrypted and authentication requires it; TLS enabledDespite the name ca_password, this is the Kafka client's private-key passphrase, not a database password or generic CA-file decryption passphrase. This field does not support @file substitution. Do not save real passphrases in command history.
cert
PEM text or @file path
None
Unit: none
Configure when the Broker requires a client certificate; TLS and client-certificate authentication enabledClient certificate paired with cert_key. @file reads text content. Uploading a browser-host path does not make it directly accessible to a remote process.
cert_key
PEM text or @file path
None
Unit: none
Configure for client certificates; TLS and client-certificate authentication enabledClient private key paired with cert. Restrict file access; do not substitute a server private key or mismatched client key.
sasl_mechanism
String
None; omission or empty values do not enable SASL
Unit: none
Configure for SASL; a nonempty value enables SASLSelect PLAIN, SCRAM-SHA-256, SCRAM-SHA-512, or GSSAPI according to the Broker. GSSAPI must use this case. SASL alone does not encrypt the connection; ca still controls TLS.
sasl_username
String
None
Unit: none
Configure when required by the selected non-GSSAPI mechanism; SASL enabled and mechanism is not GSSAPIKafka authentication username, not a TDengine user or Kerberos Principal. Enter it in this query key, not the address's user segment. The Kafka administrator grants permissions for reads or publishing. Authentication success does not imply topic, consumer-group, or administrative permissions.
sasl_password
Sensitive string
None
Unit: none
Configure when required by the selected non-GSSAPI mechanism; SASL enabled and mechanism is not GSSAPIKafka authentication password. Does not support @file substitution. Keep real values out of screenshots, command history, script repositories, and diagnostic materials.
sasl_kerberos_service_name
String
Empty string; not a guarantee of valid configuration
Unit: none
Administrator confirmation required for GSSAPI; sasl_mechanism=GSSAPIEnter the Kerberos service name supplied by the Kafka administrator. Do not treat kafka as a fixed default for every deployment.
sasl_kerberos_principal
String
Empty string; not a guarantee of valid configuration
Unit: none
Configure for GSSAPI; sasl_mechanism=GSSAPIEnter the principal matching the keytab, usually including the Realm. It is substituted into initialization commands, so a trusted administrator must supply it. Do not insert untrusted text directly.
sasl_kerberos_kinit_cmd
Trusted command template
The kinit template below
Unit: none
No; default template available; sasl_mechanism=GSSAPI, executed before Kafka client creationRuns through bash -c available to the actual execution process. Requires bash, kinit, realm configuration, and credential permissions. Keytab and principal placeholders can be substituted. Editing it changes the executed command; it is not an ordinary comment field.
sasl_kerberos_keytab
Keytab file path
Empty string; not a guarantee of valid configuration
Unit: none
Configure when using the default GSSAPI initialization template; sasl_mechanism=GSSAPIPrefer an absolute path readable on the host actually running taosX. @relative-path means a path relative to taosX data_dir, not file-text reading. Do not apply ca's @file-content semantics.

These connection authentication fields apply to both Kafka ingestion and Kafka publishing and are maintained here together. Consumption positions, read batches, and extension entry points remain direction-specific; do not copy the entire configuration into publishing settings.

10.4 Authentication and extension considerations​

TLS boundary: Kafka's default connection configuration disables TLS endpoint hostname verification. Configuring a CA and enabling TLS does not mean Broker hostnames are strictly verified. If security policies require this identity check, confirm a compliant delivery solution with the security administrator and technical support first. Connectivity success does not constitute successful security verification.

For ca, cert, and cert_key, the actual collection process reads the text specified by @文件. Prefer absolute paths and restrict access. A Kerberos keytab's @相对路径 instead resolves relative to data_dir; these meanings are not interchangeable. When using an Agent, confirm actual file locations according to Agent deployment and file delivery. Opening a file in the browser does not prove the collection process has permission.

If no explicit GSSAPI initialization command is configured, this template is used. This describes a command template, not a standalone example to paste directly into PowerShell or Bash:

kinit -R -t "%{sasl.kerberos.keytab}" -k %{sasl.kerberos.principal} || kinit -t "%{sasl.kerberos.keytab}" -k %{sasl.kerberos.principal}

The keytab and principal are substituted at runtime, then executed through bash -c. Before configuring, check the actual collection process's operating system, bash/kinit, clock, realm configuration, keytab permissions, and source authorization. A command working in WSL does not mean the Windows collection process has these dependencies.

For advanced troubleshooting, the Kafka source also reads client extension keys containing a period and no uppercase letters from the DSN. Environment variable KAFKA_CONSUMER_EXTRAS can supply extensions as key=value,key=value, overriding DSN extensions with the same names. These extensions are applied last and may override table parameters and collector settings. They are not a fully verified support list; do not arbitrarily change automatic offset storage, commits, or authentication based on them. Extension values may be logged, so do not pass passwords, keys, or other sensitive materials this way. Confirm client versions, values, and recovery effects with technical support before use.

For example, if logs and the Kerberos administrator confirm that automatic relogin is too frequent, rather than initial authentication failing, and technical support confirms current librdkafka support, set this for the actual collection process:

KAFKA_CONSUMER_EXTRAS=sasl.kerberos.min.time.before.relogin=8640000

8640000 is in milliseconds and controls the minimum automatic relogin interval, not a connection timeout or ticket lifetime. It cannot fix principal, keytab, or authorization errors, or replace DNS, clock, and KDC availability checks. Have the administrator persist the environment variable according to the actual taosX or taosX-Agent deployment and restart the corresponding process, then observe relogin frequency, ticket renewal, and consumption continuity. A single export in a personal shell does not configure the service. Do not arbitrarily increase the value merely to suppress errors.

11. Pulsar read parameters​

These parameters belong to the Apache Pulsar or Tuya Pulsar source DSN in taosx run --from. There are 21 named query parameters; select them by authentication method and source. Defaults refer to direct DSNs, not taosExplorer form initial values. For UI operations, message parsing, error handling, and verification, see Pulsar.

Apache Pulsar uses pulsar://host:port?...; Tuya uses case-sensitive pulsarTuya://host:port?.... Obtain addresses and ports from the source administrator rather than copying old screenshots. For example, pulsar://broker.example.com:6650?topics=persistent://public/default/taosx_test&consumer_name=taosx_demo_reader&subscription=taosx_demo_sub&initial_position=Earliest&timeout=0ms&char_encoding=UTF_8 illustrates only an unauthenticated DSN format, not a production security configuration or complete write command.

11.1 Connection and authentication​

Parameter and typeWhen unset and unitRequired and conditionsUsage
ba_username
String
No Basic Auth identity
Unit: none
Required for Basic Auth; Apache Pulsar, together with ba_passwordSource username, not the TDengine target username. One field alone does not form a Basic Auth identity. Do not also configure JWT, certificate, or custom authentication.
ba_password
String
No Basic Auth password
Unit: none
Required for Basic Auth; Apache Pulsar, together with ba_usernameSource password. Encode reserved characters according to DSN rules. This field has no generic @file interpolation. Keep real passwords out of shared scripts and diagnostic materials.
jwt_token
String
No JWT identity
Unit: none
Required for JWT; Apache Pulsar JWT authentication, without other authentication groupsComplete Token. Check expiration and topic/subscription permissions. No automatic renewal or generic @file reading convention is provided. After rotation, verify source authorization and collection results.
cert
PEM string or @file path
No client certificate
Unit: none
Required for mTLS; Apache Pulsar mTLS; a nonempty value uses TLS for the Broker connectionClient certificate paired with cert_key, not a separate server CA field. The actual collection process reads the file. Do not also supply Basic Auth or JWT and risk selecting an inconsistent identity branch.
cert_key
PEM string or @file path
No client private key
Unit: none
Required for mTLS; Apache Pulsar, must match certClient private key. Setting it alone does not enable certificate authentication. Check service-account read permission for the absolute path. Keep private keys out of ordinary diagnostic packages.
custom_auth_name
String
No custom authentication method
Unit: none
Required for custom authentication; Apache Pulsar, together with custom_auth_data and no other authentication groupsBroker-defined authentication method name, not an arbitrary name. Enter it separately from authentication data. custom_is_ssl controls TLS use.
custom_auth_data
String
No custom authentication data
Unit: none
Required for custom authentication; Apache Pulsar, together with custom_auth_nameUse the format specified by the source authentication mechanism. Not every mechanism requires JSON. No generic @file interpolation is provided. Encode reserved characters according to DSN rules.
custom_is_ssl
Boolean true / false
false
Unit: none
Set as required by the custom authentication endpoint; the port must match the actual TLS or plain Broker serviceTLS switch for custom authentication. true uses TLS. Changing only the port or using only a pulsar+ssl prefix cannot replace this setting. It does not mean a client-certificate identity is configured.

11.2 Tuya identity​

Parameter and typeWhen unset and unitRequired and conditionsUsage
tuya_access_id
String
None
Unit: none
Required for Tuya; pulsarTuya driver, not used by Apache PulsarPlatform Access Id. Consumer is automatically taosx-{Access Id}; subscription is {Access Id}-sub. Different tasks sharing an identity may share a subscription. Tuya server sampling also uses this subscription and acknowledges messages; this is not an independent, impact-free preview.
tuya_access_key
String
None
Unit: none
Required for Tuya; pulsarTuya driver, matching the Access Id and projectPlatform Access Key for platform authentication and message decryption, not a TDengine password. After rotation, verify authentication and real device-event decryption separately. Do not expose it in screenshots or support tickets.
tuya_env
Case-sensitive string prod / test
No direct-DSN default; must be specified
Unit: none
Required for Tuya; pulsarTuya driverprod generates {Access Id}/out/event; test generates {Access Id}/out/event-test. These topics are not interchangeable. Confirm that event subscriptions are enabled for the corresponding platform environment.

11.3 Subscriptions and reading​

Parameter and typeWhen unset and unitRequired and conditionsUsage
topics
Comma-separated topic list
No Apache Pulsar default
Unit: none
Required for Apache Pulsar, at least one topic; Tuya topics are generated automatically, not overridden hereEnter fully qualified Topics, such as persistent://public/default/taosx_test. Valid entries must remain after whitespace removal. All topics and actual Broker addresses must be reachable and authorized.
consumer_name
Nonempty string
No Apache Pulsar default
Unit: none
Required for Apache Pulsar; generated from the Tuya identityConsumer instance name. Direct DSNs use it unchanged without automatically adding the UI prefix. Subscription state associates consumption recovery; consumer_name cannot replace subscription.
subscription
Nonempty string
No Apache Pulsar default
Unit: none
Required for Apache Pulsar; generated from the Tuya identityAssociates source consumption state. Collection uses Failover subscriptions. Multiple consumers sharing a topic and subscription do not each get complete reads. Preserve the original subscription across stops and recovery; do not delete it to troubleshoot.
initial_position
Case-insensitive string Earliest / Latest
Earliest
Unit: none
No; set explicitly for the first exercise; Apache Pulsar and TuyaRequested starting position for a new subscription: earliest for Earliest, latest for Latest. It does not force-reset existing subscription progress or replace source message-retention policies.
seek_to_end
Boolean true / false
No seek-to-end operation
Unit: none
No; leave unset for normal collection and recovery; Apache Pulsar; Tuya does not support resetting subscriptions this waytrue unsubscribes the original subscription and creates a new Latest consumer, potentially affecting workloads sharing it and skipping unconsumed messages. Explicit source-administrator approval is required. Not for routine no-data troubleshooting. false does not restore positions already skipped.
timeout
Duration string, such as 5s or 1m; 0ms or never waits continuously
0ms, no no-message wait limit
Unit: time with a unit; UI input defaults to milliseconds
No; Apache Pulsar and Tuya no-message readsWith a positive value, expiry without new messages can end this collection run. Not a target write timeout or a forced total migration time limit. Continuous collection can use 0ms, but this does not guarantee indefinite operation after network or source errors.
char_encoding
Case-sensitive string UTF_8 / GBK / GB18030 / BIG5
No extra transcoding in direct DSNs; UI initially selects UTF_8
Unit: none
Match producer encoding; Apache Pulsar and Tuya message-body processingDecodes using the actual encoding, without automatic detection. Check real samples containing Chinese text and business fields. Tuya still requires platform message decryption; encoding cannot fix a mismatched Access Key.

11.4 Read batching​

Parameter and typeWhen unset and unitRequired and conditionsUsage
read_concurrency
Nonnegative integer
Unset or 0 uses the expanded topic partition count
Unit: consumers
No; Apache Pulsar and Tuya reads, not a process-wide thread limitWith a positive value, actual consumers equal the greater of this value and the expanded partition count. A value below the partition count cannot cap consumers at that value. Additional Failover consumers may stand by; higher concurrency does not guarantee higher throughput.
batch_size
Nonnegative integer; normally use a positive value
1000
Unit: message-count threshold
No; Apache Pulsar and Tuya read batchingSends a read batch when the threshold is reached. A fetched message block may push the batch above this count; it is not a hard target-row limit. Payload splitting, filtering, and same-primary-key overwrites change target row counts.
batch_timeout
Nonnegative integer; normally use a positive value
1000
Unit: milliseconds
No; Apache Pulsar and Tuya read batching, direct-DSN parameterWait threshold for sending an incomplete batch, checked by read polling. Does not guarantee end-to-end latency and is not no-message timeout. Do not copy MQTT's 500-millisecond default.

11.5 Authentication and recovery boundaries​

Configure only the authentication group actually used. Basic Auth, JWT, mTLS, and custom authentication are not independent switches that can be combined arbitrarily. Certificates and private keys must match. @文件 applies only to cert and cert_key and is read by the actual collection process. Use absolute paths and check service-account permissions. Changing only the direct-DSN prefix to pulsar+ssl:// cannot replace TLS conditions. Ordinary connections enable TLS through certificate configuration, custom authentication uses custom_is_ssl, and Tuya uses TLS.

Tuya connections do not strictly verify server certificates and hostnames. If production policies require strict verification, confirm a compliant delivery solution with technical support first. Correct Access credentials and encrypted connections cannot replace server-identity verification.

seek_to_end=true changes the original subscription's reading position. The Apache Pulsar path also unsubscribes and recreates the subscription. Do not use it to troubleshoot shared business subscriptions or merely to receive new messages immediately. Preserve the original subscription, target model, and source retention conditions during recovery, then verify business samples before and after the interruption, not just acknowledgment counts.

This table excludes shared transformations, target writes, and client extensions not individually verified. Do not copy Kafka's dotted extension keys or client parameters directly to Pulsar, or assume a field takes effect merely because it can be parsed.

12. MQTT read parameters​

These 22 named query parameters belong to the MQTT source DSN in taosx run --from. They exclude MQTT publishing, Sparkplug B, shared message mapping, and target write settings. Defaults describe omission from direct DSNs, not taosExplorer new-form initial values. For full UI operations, samples, and verification, see MQTT.

The address must include the actual Broker's host:port. Authentication uses the DSN username and password segments, not username or password query keys. For example, mqtt://broker.example.com:1883?version=3.1.1&client_id=taosx_demo_reader&topics=taosx/test/temperature::0 illustrates an unauthenticated configuration format, not production security advice. Files, certificates, and network access are relative to the host running the actual collection process.

12.1 Connection and authentication​

Parameter and typeWhen unset and unitRequired and conditionsUsage
version
String enum
None; must be explicit
Unit: none
Yes; source connection establishmentUse 3.1.1 or 5.0. The parser also accepts 3.1 and 3.x, both selecting the 3.1.1 client, and 5. The value 3.1 does not indicate support for legacy MQTT 3.1. Match the protocols allowed by the Broker.
client_id
Nonempty string
None; must be explicit
Unit: none
Yes; source connection establishmentCollection client identifier. Must not be empty after trimming leading/trailing whitespace. Avoid duplicates with other collectors or test clients on the same Broker. Preserve the ID for session recovery and check the actual Broker session.
keep_alive
Integer, 5–65535
5
Unit: seconds
No; source connection establishmentConnection keepalive interval. Direct DSNs default to 5 seconds; the new UI form uses 60 seconds. UI or static hints permitting smaller values do not prove the client accepts them. Not a sampling interval, reconnect interval, or history-retention duration.
clean_session
Boolean true/false
true
Unit: none
No; source connection establishmentUses Clean Session for 3.1.1 and Clean Start for 5.0. With false in 5.0, the client requests a 60-second session expiry. Check whether the Broker accepts it and retains messages. Do not promise recovery for arbitrary downtime.
ca
PEM text or @file path
None
Unit: none
Needed for production TLS identity verification; a nonempty CA enables TLS with server-certificate verificationProvide an administrator-approved CA. If omitted, TCP is tried first, then TLS without certificate verification. Even if the operating system has CAs, do not assume this unconfigured path verifies identity. cert/cert_key alone cannot replace a CA.
cert
PEM text or @file path
None
Unit: none
Required for mutual TLS; client-certificate authentication is configured when ca, cert, and cert_key are all nonemptyClient certificate chain paired with the private key. A certificate or key alone does not form mutual authentication. Confirm server trust in the client identity and its subscription authorization.
cert_key
PEM private-key text or @file path
None
Unit: none
Required for mutual TLS; used with ca and certPrivate key matching the client certificate. SEC1, PKCS#1, and PKCS#8 PEM private keys can be read; use materials available in the delivered environment. Restrict file access. Keep private keys out of command history, screenshots, and support tickets.

12.2 Subscriptions and decoding​

Parameter and typeWhen unset and unitRequired and conditionsUsage
topics
Nonempty string
None; must be explicit
Unit: QoS set per topic
Yes; subscription establishmentFormat topic::qos, comma-separated, such as plant/+/temperature::0,plant/+/pressure::1. QoS is 0, 1, or 2. Shared subscriptions require Broker support and authorization. Subscription QoS is not an end-to-end write guarantee.
connect_user_properties
Comma-separated key=value list
None
Unit: none
No; MQTT 5.0 CONNECT packetsConnection user properties, such as environment=test,site=plant1. Keys and values must be nonempty. The Broker defines business meanings; these are not ingested columns. The 3.1.1 path does not send these properties. They cannot configure a generic historical starting position.
subscribe_user_properties
Comma-separated key=value list
None
Unit: none
No; MQTT 5.0 subscription initiationSubscription user properties. Keys and values must be nonempty. Confirm Broker-specific initial-position semantics in its documentation. Restoring an existing session may reuse the original subscription. After changing properties, check the actual subscription, not only saved values.
topic_pattern
String with /-separated levels
No topic-field extraction
Unit: none
No; sample retrieval and production message processingUse field names per level; _ ignores a level. For example, /device/ extracts device=d001 from plant/d001/temperature. Match actual topic depth. Do not use +, #, or consecutive //. Avoid conflicts with existing field names.
compression
String enum
No decompression
Unit: none
No; message-payload processingnone, gzip, snappy, lz4, or zstd, matching the producer's actual format. snappy uses framed format. Decompression precedes char_encoding transcoding. Incorrect settings cause decoding failures. This is not target database compression.
char_encoding
String enum
No transcoding; payload must be valid UTF-8
Unit: none
No; message-text processing after decompressionUTF_8, GBK, GB18030, or BIG5, using this case. Actual messages must still match the selected JSON, Regex, or other parsing rules. Binary Sparkplug B cannot be treated directly as JSON.

JSON depth is a parser setting, not an MQTT source DSN query key. For recursive object flattening, retained object-field arrays, skipped top-level null elements, and scalar-element errors, see JSON depth and array boundaries.

12.3 Batching and queues​

Parameter and typeWhen unset and unitRequired and conditionsUsage
batch_size
Positive integer
1000
Unit: messages
No; grouping received messages into read batchesControls read batches together with batch_timeout. Not a target-row-count guarantee or MQTT QoS. Keep it positive; 0 is not unlimited capacity.
batch_timeout
Positive integer
500
Unit: milliseconds
No; grouping received messages into read batchesBatch wait time. In a direct DSN, 500 means 500 milliseconds. Do not copy seconds from a UI or another connector directly. Not a Broker connection timeout or backfill window.
unprocessed_messages_buffer_size
Positive integer
50000
Unit: messages
No; received messages waiting for batchingIn-memory waiting-queue capacity. Without real-time caching, a full queue drops new messages. With caching enabled, it waits for queue availability; this does not mean unlimited caching or loss-free QoS 0. 0 is not unlimited capacity.
maximum_processing_batch
Positive integer
100
Unit: batches
No; limits processing batches awaiting acknowledgment and batch queuesLimits batches waiting in the processing pipeline, not message count in batch_size. Compare memory, backlog, receive rate, and write rate before increasing. This is not the MQTT connection count.

12.4 Caching and raw retention​

Parameter and typeWhen unset and unitRequired and conditionsUsage
persist_data_enable
Boolean true/false
false
Unit: none
No; service tasks with task identifiers, configuring real-time disk cache according to the actual execution pathCaches real-time data when enabled. Adding this switch alone to a taosx run DSN without task context does not provide the same disk-recovery capability. Does not protect data not received, removed at the source, or beyond capacity. Verify target results after recovery.
persist_data_dir
Directory path
Service tasks use data_dir/tasks/任务ID/子任务ID/persist_queue
Unit: none
No; persist_data_enable=true and service-task context existsActual cache directory. Prefer an explicit absolute path accessible from the collection host, and check service-account permissions, space, and state-file retention policies. A directory alone does not enable caching. Do not mix it with the raw-retention directory.
keep_raw_data
Boolean true/false
false
Unit: none
No; receiving and retaining raw MQTT messagesRetains receipt time, topic, QoS, and payload for review, not as an automatic backfill queue. Retention writes or waiting queues may also fail. This is not a complete Broker or database backup.
keep_raw_data_dir
Directory path
Service tasks use data_dir/tasks/任务ID/子任务ID/rawdata
Unit: none
Required when raw retention is enabled without a service-task identifier; keep_raw_data=trueDirectory on the collection host. For standalone CLI retention, explicitly set an absolute path; do not rely on service-task directory fallback. Relative paths must already exist. Retained content includes business payloads; manage it according to permissions and retention requirements.
keep_raw_data_days
Positive integer
1
Unit: days
No; keep_raw_data=true, cleanup by file time at initialization and rotationMQTT raw-retention duration, evaluated using the collection-process host's clock. 0 does not mean permanent retention. Keep it positive and check actual file dates and disk space. This differs from error-archive retention.

12.5 Post-configuration checks​

Check the actual connected Broker, Client ID, subscribed topics, and subscription-success logs first. Then send an approved test message and query target timestamps, values, and tags in taosExplorer's Data Browser or the taos CLI. Connectivity checks use a separate client identifier and do not prove the production collection session is retained.

TLS: when a direct DSN has no ca, it first tries plaintext TCP, then TLS without server-certificate verification if TCP fails. Explicitly provide an administrator-approved CA for production connections. Mutual authentication additionally requires a matching client certificate and private key together. Connection success or TLS encryption does not mean server identity has been verified. @文件 applies only to certificate parameters explicitly listed in the table. Relative paths are relative to the collection process's working directory. Prefer absolute paths and check service-account permissions.

persist_data_enable differs from caching in target write-error policies. Real-time disk caching depends on service-task context. Adding the switch to a standalone taosx run DSN without a task identifier does not provide the same disk-recovery capability. Raw retention, real-time caching, Agent store-and-forward, and source sessions cannot replace one another. For directories and retention files, see Raw data retention. For recovery conditions, see Restart, checkpoints, and store-and-forward.

13. Sparkplug B read parameters​

In taosx run --from, these 10 named keys belong to the sparkplugb:// source DSN. Six connection parameters reuse MQTT definitions, and four subscription parameters appear below. They are not standalone CLI options and do not include all shared advanced, message-mapping, or target write parameters. For the full procedure, see Sparkplug B.

Connection parameter types, defaults, certificates, and file-reading syntax are maintained in one place: ca, cert, cert_key, client_id, keep_alive, and version. Only these six keys are reused; this does not mean other ordinary MQTT options take effect too.

The address format is sparkplugb://USER:PASSWORD@broker.example.com:1883. Authentication requires both username and password; either one alone does not form an authentication pair. Multiple Brokers establish parallel connections, not a failover list. Every valid address needs a host and port. Incomplete addresses are skipped, and having no valid addresses causes an error. If the same business stream is forwarded through multiple Brokers, check for duplicate ingestion and actual source identifiers first.

13.1 Subscriptions and protocol​

Parameter and typeWhen unset and unitRequired and conditionsUsage
group_id
Case-sensitive nonempty string
No default
Unit: none
Yes; generates subscription topics under spBv1.0Source Sparkplug group identifier, not Client ID or a Kafka consumer group. Leading/trailing whitespace is trimmed from the entire value. Empty values are treated as missing and cause an error. Compare with source topics character by character. Start with a specific authorized group; expanding wildcards cannot replace permission and object checks.
node_device_list
Comma-separated node or node/device list
Unset or entirely whitespace subscribes to the group's # scope for selected message types
Unit: node or device identifiers
Explicit restriction recommended initially; generates specific subscription topics by message typeFor example, node1,node1/device1. Node types use node1; device types use node1/device1; STATE uses the node. Entering only node1 with DDATA selected generates no device subscription. A nonempty value containing only commas or no valid entries yields an empty list and no subscriptions, unlike an unset value. The entire value is trimmed; do not add spaces to internal entries. Also exclude duplicate business streams across Brokers.
message_types
Comma-separated NBIRTH, NDEATH, DBIRTH, DDEATH, NDATA, DDATA, NCMD, DCMD, STATE
No default
Unit: message types
Yes; subscription and decodingMust be uppercase; each entry is trimmed. Missing, entirely whitespace, or unknown types cause errors. Only commas produce an empty list and no subscriptions. Explicitly select business types. Include the corresponding Birth when alias names need resolution. NCMD/DCMD subscription permission does not authorize active device control.
rebirth_cmd
Boolean string true or false
false; unset or whitespace does not enable it
Unit: none
No; source-control authorization required to enable; REBIRTH requests during production collection and server samplingAccepts only lowercase true/false; other nonempty strings cause errors. When enabled, sends initial requests to specified nodes and may request again when alias names cannot be resolved later. Sampling may send requests too and is not side-effect-free retrieval. Publishing authorization is needed for spBv1.0/分组/NCMD/节点. Do not repeatedly control production nodes to compensate for missing Birth.

13.2 Fixed sessions and verification​

This entry point fixes Clean Session / Clean Start and subscription QoS 1. Do not copy ordinary MQTT's topics, clean_session, caching, or raw-retention query keys. A fixed Client ID does not mean session retention, and MQTT reconnection does not guarantee backfill of historical changes during disconnection.

Sample retrieval establishes a real subscription with a separate Client ID. With rebirth_cmd enabled, sampling may send control messages to the source; it is not a side-effect-free preview. Source ACLs must separately cover client identifiers for collection, connectivity checks, and sampling. For configuration, log, and authorization troubleshooting, see the guide.

Retrieve Birth and new values within an approved small scope first. At the target, check Group, node, device, metric names and types, timestamps, and values. If there is no data, check actual subscription topics and empty lists before Birth/alias. Do not replace troubleshooting with broader wildcards or repeated REBIRTH. For logs and metrics, see Logs and performance. Reverify mappings and new values after restarting; connection success does not mean recovery is complete.

14. AVEVA Historian read parameters​

The following 16 named query keys include an encryption alias and an internally reserved task identifier. They do not represent 16 independent features and are not standalone CLI options. Shared advanced, mapping, and target write parameters are outside this table's scope. For the complete procedure and UI initial values, see AVEVA Historian.

The address structure is historian://USER:PASSWORD@host:1433, with driver alias avevaHistorian. Host, username, and password are required. Only the first address is used, the default port is 1433, and the source database is fixed to Runtime. Shell-quote the complete DSN. Reserved characters, such as those in passwords and plus signs in date offsets, still require URL encoding. This table is not a CLI tutorial for independent migration or recovery outside a task context.

14.1 Connection and security​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
encryption
Encryption level string; case-insensitive, not trimmed
Does not override client default: Required when built with TLS, otherwise NotSupported
Unit: none
Explicitly confirm according to source security requirements; source connection establishmentAccepts Off, On, Required, NotSupported, and not_supported. Nonempty values take precedence over encryptionLevel. Unknown nonempty values produce a warning and fall back to Off, not a secure rejection of invalid configuration. Off may still participate in TLS negotiation during login. Encryption level does not replace server identity verification; this entry point always trusts server certificates. UI initial values are not direct DSN defaults. Check distribution build conditions separately.
encryptionLevel
Alias of encryption
No separate default
Unit: none
No; used when encryption is omitted or an empty stringSee encryption for values and security restrictions. Both keys are parsed; avoid setting both. A whitespace-only string is not an empty string. Unknown values do not fall back to the other alias. Do not apply the SQL Server entry point's case sensitivity or unknown-value fallback rules.
connection_timeout
64-bit unsigned integer
120; explicit 0 is raised to 1
Unit: seconds
No; each TCP connection establishmentLimits only TCP establishment, not subsequent TDS/TLS login, SQL execution, or the entire sample request. Empty strings use the default; nonnumeric or whitespace-only values fail. This is not a slow-query cancellation setting. Unlike the same-named Oracle key, it does not reclaim idle connections.
reconnect_times
Nonnegative integer
10; explicit 0 is raised to 1
Unit: attempts per reconnect sequence
No; production query failure triggers reconnectionThe first attempt is immediate; subsequent attempts wait reconnect_interval beforehand. Initial connections, connectivity checks, and sampling do not use this reconnect loop. This is not a task-wide failure budget and does not guarantee automatic recovery from data conversion errors.
reconnect_interval
64-bit unsigned integer
5; explicit 0 is raised to 1
Unit: seconds
No; before the second and subsequent attempts in one reconnect sequenceNot a wait before the initial connection or a source query polling interval. Check the interrupted range after successful reconnection. A recovered connection does not establish historical backfill or absence of duplicates.

14.2 Collection and windows​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
mode
migrate or synchronize, case-sensitive
No default
Unit: none
Yes; sampling and production collection configurationmigrate allows only History and performs bounded historical migration. synchronize allows History or Live. Continuous History backfills pre-start history in the background and polls subsequent archives; Live polls only current values. Neither synchronization mode proves historical completeness through a healthy connection or normal new values.
table
Runtime.dbo.History or Runtime.dbo.Live, case-sensitive
No default
Unit: none
Yes; sampling and production collectionCombining migrate with Live fails. History queries use wwRetrievalMode='full'. Live does not preserve changes replaced by subsequent values between polls. Sampling filters differ from production Live queries. Verify each selected mode separately.
tags
Comma-separated tag strings
*
Unit: tag list
Explicitly restrict to authorized tags initially; tag selection and data queriesEntries are not individually trimmed and empty entries are not removed. Do not leave a trailing comma. History and sampling first expand conditions containing * and exclude tags beginning with Sys. In production Live, only standalone * means all non-system tags; other entries are exact-name queries, and ABC* is not automatically expanded. Successful sampling does not prove the same wildcard works in production Live.
tagListSize
Integer at least 1
10
Unit: tags/group
No; tag grouping for History historical and subsequent queries1 is valid; 0 fails. Tag group size is not read concurrency, rows/batch, or tags/second. Live does not poll using this historical grouping mechanism. Confirm results with one tag and a short range before expanding.
beginDateTime
RFC 3339 instant with Z or an offset
No default
Unit: instant
Required for History; historical migration and History backfill start; also used in samplingThe end must be later than the start. Acceptance of equal or reversed ranges does not mean data will migrate. An existing service task checkpoint may override this start. Input is parsed as UTC; interpretation of query and returned times without offsets still depends on the actual reading host's time zone. Check historical daylight saving time separately. Production Live polling does not use it to reread history.
endDateTime
RFC 3339 instant with Z or an offset
No default
Unit: instant
Required for migrate + History; exclusive upper bound of bounded migration; also used in samplingMigration queries include the start and exclude the end; the end must be later than the start. Production History continuous synchronization uses startup time as a boundary and then polls continuously; this key does not set a stop time. Production Live queries do not use it either. Do not infer a production continuous task's termination conditions from samples affected by this boundary.
timeWindow
Nonnegative durations parse, but runtime requires a positive value
1d
Unit: explicit duration; bare numbers are seconds
Must be positive for historical reads; migration and pre-start History backfillSplits history into consecutive start-inclusive, end-exclusive windows, ending the last window at the end point. Zero parses but prevents advancement and may repeatedly query an empty range. Do not use it. This is not the subsequent History polling window, Live frequency, or total timeout. Supports forms such as 1h and 10s. Start with a short positive window.
retrieveInterval
Duration at least 1 second; fractional seconds allowed
10s
Unit: explicit duration; bare numbers are seconds
No; waits between subsequent History polls and Live polls1s is valid; values below 1s fail. Waiting begins after processing, so this is not a strictly fixed sampling frequency or source archive resolution. The continuous History phase first waits tolerance plus this interval, then queries from the startup boundary. Wait duration cannot establish how many changes were lost or recovered.
tolerance
Nonnegative duration
0ms
Unit: explicit duration; bare numbers are seconds, not UI milliseconds
Set according to source lateness; delays the read upper bound during continuous HistoryEach round's upper bound is current time minus this value. The next round continues from the preceding upper bound without rescanning completed windows. Records stored after the tolerance duration may be missed; whether they are read also depends on actual query timing. Records stored later within completed windows are not automatically rescanned. Live and pre-start historical backfill do not receive the same lateness compensation. Prefer 500ms or 5s; tolerance=500 is not 500 milliseconds.
sample_data_limit
Integer greater than 0
3
Unit: sampling TOP N limit
No; retrieves samples from the serverFirst selects at most N tags, then at most N data records. It does not guarantee N rows for each tag or define result ordering. If no tags match, sampling falls back to other non-Sys tags. A nonempty sample does not prove the original tag condition matched; production collection still fails on zero matches. Confirm tag existence first and stop immediately if sample identifiers differ. Do not build a model or start from them. This value does not cap production total reads, query cost, or speed. Do not directly apply same-named relational database parameters.

14.3 Internally reserved​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
taskId
Optional 64-bit signed integer
Unset; invalid values warn and are treated as unset
Unit: none
Users must not set it themselves; configuration parses, but production execution overrides it from service task contextListed for identifying configurations, not a public checkpoint override interface. Setting it manually does not give standalone CLI commands a service task's recovery identity or guarantee durable migration/real-time progress. Recover with the original service task and verify the interruption window.

14.4 Security and verification​

Even with encryption=Required, this entry point does not verify server certificate identity. There are no trust_cert or trust_cert_ca query keys that can be copied directly from the SQL Server entry point. Unknown encryption names fall back to Off. Successful connection does not establish identity verification or security-policy compliance. If strict identity verification is required, confirm a delivery solution with technical support first; do not add same-named settings yourself.

Historical migration requires the end to be later than the start and timeWindow greater than zero. Parsing zero does not make it usable; a zero window may query an empty range repeatedly without advancing. Bare duration numbers at this entry point mean seconds. Prefer explicit 1h, 10s, or 500ms. tolerance=500 means 500 seconds, not 500 milliseconds as displayed in the UI.

History migration reads start-inclusive, end-exclusive windows using wwRetrievalMode='full'. Continuous synchronization tolerance delays query upper bounds without rescanning completed windows. For Live, only standalone * means all non-system tags; otherwise enter exact names. Successful sampling with ABC* does not prove production Live expands it. For the same time range, verify historical completeness and continuous new values separately. Normal runtime status or new values do not prove successful historical backfill.

taskId is not a recovery position users can assign. Retain the original service task and check the interruption window after recovery. Verify sampling, initial connection, reconnection, source time zone, and daylight saving time boundaries separately. See the guide and Restarts, checkpoints, and store-and-forward.

15. KingHistorian read parameters​

The following 16 names include connection aliases and keys used only for point browsing. They do not represent 16 independent collection features and are not same-named CLI arguments. Shared advanced options, point-list fields, and target write parameters are outside this table's scope. For operation, dependencies, and models, see KingHistorian.

The source address is kinghist://USER:PASSWORD@host:5678. Only the first address is used; the default port is 5678. Host and credentials are required. Actual reads require Windows and a matching SDK. A Linux management service must read through a Windows agent that meets these requirements. Shell-quote the entire DSN. CSV content, paths, plus signs in date offsets, and other reserved characters still require URL encoding.

15.1 Connection and retries​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
conn_timeout
Nonnegative duration; millisecond result must fit an unsigned 32-bit integer
Passes 0 to the SDK when unset; confirm its meaning with the matching SDK
Unit: explicit duration; bare numbers are seconds
Set according to source requirements; source connections for production collection and point browsingNetwork timeout, taking precedence over connect_timeout. Both aliases are parsed; do not set both. Submillisecond fractions are truncated during conversion. Connectivity checks use a fixed 3000 milliseconds, not this value. A successful check does not prove that production timeout settings, point lists, and reads are correct. This is not a task-wide timeout.
connect_timeout
Duration alias of conn_timeout
No separate default
Unit: explicit duration; bare numbers are seconds
No; when conn_timeout is unset or an empty stringSee conn_timeout for values and SDK/connectivity-check limitations. Even when the first key has a value, an invalid second alias may still fail parsing. Do not use both aliases with different timeouts.
max_retries
Nonnegative integer
10
Unit: retries beyond the initial historical query
No; reconnect-and-requery path after historical query failure0 means no retries, unlike AVEVA's promotion to 1. Each historical query executes once, then on failure waits, reconnects, and requeries within the budget. Reconnection failure itself may return immediately. Initial connection and real-time subscriptions do not use this historical retry mechanism. It does not guarantee automatic recovery from every disconnection.
retry_interval
Nonnegative integer
5
Unit: seconds
No; before retrying a failed historical query0 means no wait. This is not inter-window wait interval or real-time min_elapsed. Shortening it increases source connection pressure during failures. It is not a promise of real-time disconnection recovery or historical backfill.

15.2 Collection and point lists​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
mode
history or realtime, case-insensitive, not trimmed
No default
Unit: none
Yes; selects bounded historical reads or real-time subscriptionhistory reads the configured start/end range; realtime establishes a source subscription. The modes do not run simultaneously. Historical end defaults to configuration parse time, not automatic continuous reads of future records. Verify each mode separately after changing it. A preceding mode's results do not guarantee the next one's behavior.
csv_config_file
@file path or standard Base64-encoded CSV content
No default
Unit: none
Required for production collection; actual collection objects and target mappingA leading @ reads a UTF-8 file visible to the actual Windows collection process. Relative paths use its working directory. Otherwise, content is decoded as standard Base64 and checked for UTF-8 or UTF-8 BOM. Do not treat a plain path or merely URL-encoded raw text as the filename or content. Base64 plus signs and other reserved characters still need URL encoding in the DSN. Agent and browser file systems differ; upload does not copy a path to all nodes. Review tag_name, target tables, and each point's type and enabled. The production entry point errors on missing types.
start
RFC 3339 instant or now; now is case-insensitive
No default
Unit: instant
Required for history; reference start of historical windowsDate input requires Z or an explicit offset and is converted to the reading host's local time zone. The actual first window starts at start minus restro. Nonzero lookback reads before the nominal start; include that range in verification rather than claiming no reads before start.
end
RFC 3339 instant or now
Time when configuration is parsed
Unit: instant
Explicitly enter a known boundary initially; history termination upper boundEnd should be later than start. Equal or reversed ranges may produce zero windows with no data rather than fail during configuration. This is not a moving upper bound for continuous synchronization. SDK queries include the start and exclude the end; also confirm actual time precision with the source. realtime does not use this key for backfill or timed stopping.
time_range
Nonnegative duration
1d
Unit: explicit duration; bare numbers are seconds
No; history window stepThe final window ends at end, and restro is subtracted from every window's left boundary. This is not concurrency or maximum rows per request. For this source, 0 generates a single whole-range window from start minus restro to end. It does not pause and differs from AVEVA's zero-window behavior. Use a short positive window initially to avoid source/host pressure from whole-range reads or excessive windows.
restro
Nonnegative duration; retain the spelling restro
0
Unit: explicit duration; bare numbers are seconds
No; extends each history window backwardExtends the first window before start and overlaps adjacent windows. It is not AVEVA tolerance, which delays query upper bounds. It may reread and overwrite identical target primary keys. Not a checkpoint, cache, or unlimited lateness guarantee. Establish a baseline with 0 before evaluating changes.
interval
Nonnegative integer
1000
Unit: milliseconds
No; waits after processing each history window0 means no wait. It is not the unit of time_range and does not accept duration strings such as 1s. Actual intervals also include source query and processing time, so this is not a strictly fixed frequency. It does not control realtime subscription intervals.
min_elapsed
Nonnegative integer; use an SDK-supported value no greater than 4294967295
1000
Unit: milliseconds
No; minimum interval for realtime source subscriptionsPassed directly to the SDK subscription request. It does not actively generate evenly spaced samples or guarantee one row per interval. Excessively large integers may truncate when converted to 32 bits. Successful parsing alone does not establish a valid range. Confirm actual minimum values and the meaning of 0 with the vendor SDK; do not assume it disables rate limiting. Unused by history.

15.3 Point browsing​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
only_groups
Optional string, not Boolean parsing
Unset; browses points
Unit: none
No; point-group branch of the point enumeration APIAny nonempty string selects the groups-only branch, even false or 0. Omit this key or use the corresponding UI action to disable it. Not a production collection parameter; does not change objects in uploaded CSV.
groups
Comma-separated unsigned 32-bit group IDs, or lowercase all
No group restriction when unset or all
Unit: group ID
No; browsing and downloading data pointsDoes not use display group names or trim individual entries. Empty or nonnumeric entries fail. Browsing groups and name masks do not reliably intersect: with no specific group, mask is unused; with a group containing points and a mask, mask results may include points outside the group. Check downloaded point names individually against authorization. Stop if mismatched; do not upload or start. Production objects still come from the CSV.
tag_name_mask
Source point name mask string
Unset
Unit: none
No; vendor filtering during point browsing/downloadFor example OPC*. Without a specific group, this path does not apply the mask. With a group containing points, it queries by mask but no longer guarantees restriction to that group. This is not a permission or collection-scope boundary. Check downloaded point names. It is not SQL, regex, or a production collection filter expression, and differs from the additional property options in tags.
tags
Comma-separated integer property IDs, or lowercase all
All default properties
Unit: property option ID, not point name
No; selects additional tag properties for browsing/downloadNot the names of points to collect; do not copy AVEVA tags. Numeric but unknown property IDs are ignored. Nonnumeric entries or spaces may fail. Does not restrict production collection objects or guarantee every requested property appears in the actual template.

15.4 Entry points, time, and recovery​

Browsing tags are property identifiers, not a source point-name list. Production collection objects come from the reviewed CSV. Every CSV point needs an explicit type. enabled=0 may delete the corresponding target child table; disabling is not a safe pause. File existence or successful CSV parsing does not prove DLLs, source data, or target writes are available.

Historical end should be later than start. Lookback reads before start in the first window and overlaps adjacent windows. time_range, restro, and connection timeout accept durations with units; bare numbers mean seconds. interval and min_elapsed are integer milliseconds, while retry_interval is integer seconds. Do not interchange units. Zero time_range produces one whole-range window, not zero rows, a pause, or a timer switch.

Historical mode does not become continuous synchronization when end is omitted. Real-time subscription also does not automatically backfill downtime history. These parameters do not guarantee automatic continuation from acknowledged historical windows. Retain the original CSV, task, and verified boundaries. After recovery, separately check the interruption range and new values. For logs, backfill, and rollback choices, see the guide and Restarts, checkpoints, and store-and-forward.

16. pSpace read parameters​

The following 31 names include eight common advanced keys and download controls. Accepted configuration does not mean every item affects source queries. They are not same-named CLI arguments and do not include all CSV fields or common task configuration. For existing procedures, screenshots, and source-specific point-list rules, see pSpace.

The source address is pspace://USER:PASSWORD@host:PORT. Host and credentials are required; only the first address is used. A direct DSN without a port uses 5678, unlike the UI hint of 8889. Explicitly enter the actual source service port. Shell-quote the complete DSN. Paths, LongName, templates, date offsets, and other reserved characters still require URL encoding. A matching Java plugin and vendor SDK are also required. Address accessibility or successful configuration parsing does not replace source data and write verification.

16.1 Connection and enumeration​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
connect_timeout
Nonnegative duration; use an integer range supported by the plugin
30s
Unit: explicit duration; bare numbers are seconds, fractional seconds truncated
No; when the plugin connects to the sourceTimeout waiting for source connection, not for the entire historical task or each query segment. Zero or values below 1 second do not mean unlimited waiting. Use explicit positive seconds as recommended. After timeout, check address, port, identity, and network rather than directly increasing concurrency.
pspace_mode
nodes or points, strictly case-sensitive
No default
Unit: none
Required for enumeration; browsing nodes or pointsnodes enumerates nodes; points enumerates data points. This is not the production task's collection mode. Production collection uses pspace_task_mode. Do not use this key to switch historical reads to subscription.
root
Nonnegative integer node ID within the plugin's signed 64-bit range
No default
Unit: node ID
Provide a valid root for the browsing/point-selection path; node/point enumeration and resolution of selection-mode collection objectsNot the displayed node name. The parser accepts a larger unsigned range than the plugin's signed range. Successful parsing does not justify out-of-range IDs. Obtain an authorized root node from the source administrator and check the actual point list. root does not replace individual review of explicit CSV point IDs.
point_name_pattern
LongName name pattern accepted by the source SDK
No additional name filter
Unit: none
No; point enumeration and selection modeFor example, matches authorized points by source LongName paths, not Java/Rhai regex or SQL. Check point IDs and full paths after download. Production CSV collection resolves explicit IDs and does not use this pattern to filter CSV points again. URL-encode backslashes and reserved characters correctly.
include_data_type
true or false
Plugin uses false when unset in direct DSN
Unit: none
Explicitly set true when source type properties are needed; point property retrieval, including production read type resolutiontrue requests DATA_TYPE and requires source property permissions. Unknown types fall back to DOUBLE. CSV type controls only subsequent mapping, not plugin output retroactively, and cannot repair lost integer precision or string conversion. Verify types for downloaded lists and production reads separately. Do not infer whether the UI necessarily passes true.

16.2 Collection and windows​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
pspace_task_mode
query, subscribe, querysync, or query_sync, case-insensitive
No default
Unit: none
Required for production collection; selects bounded history, real-time subscription, or history plus continuous queriesquerysync and query_sync are two values for the same mode. query reads a finite range; subscribe does not backfill history; continuous query backfills first, then polls new time ranges. Do not treat enumeration pspace_mode or the UI initial selection as this key's default. Reverify after mode changes.
start_time
RFC 3339 instant or now; now is case-insensitive
No default
Unit: instant
Required for query/querysync; historical or continuous query startUse Z or an explicit time zone offset. Parsed as an absolute time before passing to the plugin; logs display JVM time zone. Start must precede the historical end. Reversed ranges may return no data but end normally. A future start in continuous query does not mean scheduled execution. Initially use a known short past window. Unused by subscribe.
end_time
RFC 3339 instant or now
For query, unset uses the current time determined by the plugin for this run
Unit: instant
Explicitly set for the first query as recommended; limits only query historical endquerysync accepts and parses this value but does not use it to limit runtime end. Stop through task management. Unused by subscribe. Verify actual source and target endpoints. Reaching the end time or successful process exit does not establish complete historical ingestion.
time_window
Positive duration, at least 1 whole second; use a value safely convertible to milliseconds
1d
Unit: explicit duration; bare numbers are seconds, fractional seconds truncated
No; initial historical backfill phase of query and querysyncControls each historical segment's time span, not row count or concurrency. Zero or less than 1 second may prevent the historical loop start from advancing. Reduce the window initially and check segmented boundaries in logs. Subsequent querysync rounds are not segmented at this fixed value.
time_excursion
Nonnegative duration safely convertible to milliseconds
0s
Unit: explicit duration; bare numbers are seconds, fractional seconds truncated
No; subsequent querysync polling onlyEach round scans backward by this duration from the preceding boundary, then reads to current time. Initial history has no lookback. Not AVEVA's delayed upper bound, a durable position, or unlimited late-data handling. Nonzero values reread identical primary keys; assess overwrites and source load. Unused by query and subscribe.
query_interval
Nonnegative duration; at least 1 whole second recommended
10s
Unit: explicit duration; bare numbers are seconds, fractional seconds truncated
No; wait before subsequent querysync polls onlyActual round intervals include query processing time, so sampling is not strictly evenly spaced. Zero or less than 1 second means zero wait and may increase source pressure. Does not control the initial historical phase or subscription push frequency.

16.3 Point lists and mapping​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
point_config_mode
select_all_points or csv_config_file, strictly case-sensitive
select_all_points
Unit: none
No; chooses point rules or uploaded CSV mappingSelection mode generates models from enumeration results and rules. CSV mode uses explicit point IDs and per-row mapping in the point list. Rule parameters do not override CSV rows. After switching from selection to CSV, recheck point count, primary keys, and target child tables, not just the mode name.
csv_config_file
UTF-8 CSV path visible to the actual collection host; one leading @ allowed
No default
Unit: none
Required in csv_config_file mode; CSV point-list modeUnlike KingHistorian, this is not Base64 content. The file must exist and be readable by the service identity. Relative paths use the executing process's working directory. Browser upload does not mean copying to all execution nodes. Use this source's complete mapping template; check point_id, stable, tbname, types, and time columns. A preview download does not replace this.
super_table_expression
Supertable name template
pspace_{type}
Unit: none
No; selection mode onlyExpands by actual point type; does not override CSV stable. Check expanded supertable field types. A uniform name cannot force incompatible strings, booleans, and numbers into one value column.
child_table_expression
Child table name template
t_{point_id}
Unit: none
No; selection mode onlyExpands by point ID or name. Dots and backticks in names are replaced and may cause collisions. Do not infer one-to-one mapping from original names alone. Check expanded results for every test point and unique target child tables. Does not override CSV tbname.
table_primary_key
original_ts, request_ts, or received_ts
original_ts
Unit: time source
No; selection mode onlySource record time, request time, or receive time respectively. The primary key determines overwrites for the same point and time. Historical batches sharing a request time may collapse to one key. Check source time first for backfill. Changing primary keys does not fix time zone or data-loss issues. CSV time columns are defined by the point list itself.
table_primary_key_alias
Target time column name
ts/qts/rts for original_ts/request_ts/received_ts respectively
Unit: none
No; selection mode onlyNot always ts; does not change the time source. Use a name that meets target naming rules and actual column names in verification SQL. The UI initial ts does not establish all direct DSN defaults. This rule does not override time columns in CSV point lists.
value_col
Target value column name
val
Unit: none
No; selection mode onlyConfigures the target value column name, not source DATA_TYPE or upstream plugin conversion. CSV mode uses per-row value_col. After renaming, update verification SQL and check existing target structures.
value_transform
Value transformation expression
No additional transformation
Unit: business expression dependent
No; value mapping in selection mode onlyActs on values already output by the plugin; cannot recover previously lost precision. Verify results, types, and error branches with known original values before expanding. CSV uses its own value_transform, not overridden by this key.
quality_col
Target quality column name
quality
Unit: none
No; selection mode onlySaves quality codes; not a filter switch to retain only good quality. Check source quality and values separately. CSV uses per-row quality_col. A populated numeric column does not establish normal source quality.
custom_tags
Type::name::pattern, entries separated by semicolons
Name, LongName, Description, all VARCHAR(1024)
Unit: none
No; selection mode onlyWhen set, generates tags using this rule without guaranteeing retention of the three default tags. Verify names, case, lengths, and path escaping individually. Templates may use source properties. Do not directly apply CSV tag column rules or other sources' tags syntax.
split_long_name
true or false
false
Unit: none
No; selection mode and full template downloadsSplits LongName paths into hierarchy tags such as c0 based on maximum depth among selected points. Same-named custom tags take precedence and are not automatically overwritten. CSV collection uses its own point-list tags, not regenerated by this key. Check new templates and target structures after point scope changes.

16.4 Common advanced options​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
log_level
error, warn, info, debug, or trace, lowercase
Uses existing plugin log configuration when unset
Unit: none
No; plugin startup and configuration applicationOverrides plugin log level, not automatically all taosX, agent, or source server logs. Raise temporarily for Troubleshooting, check actual output and disk, then restore. Successful log output does not establish complete source queries and target writes.
read_concurrency
Parsable nonnegative integer
Unset
Unit: concurrency candidate
No; configuration accepted and forwarded, but unused by plugin source query schedulingDoes not promise higher historical read concurrency, SDK request limits, or point subscription control. To reduce source pressure, adjust authorized points, time_window, and query_interval and check actual source load. Form initial concurrency does not guarantee effect.
write_concurrency
Parsable nonnegative integer
Unset
Unit: concurrency candidate
No; configuration accepted and forwarded, but unused by plugin source query schedulingNot this source's read/write thread count or a source throughput guarantee. Does not replace independent target write-side settings and verification. Do not increase this task's concurrency merely because the same-named option works in another connector.
batch_size
Positive integer; use an actually allocatable value no greater than 2147483647
1000
Unit: plugin output records
No; buffered batches the plugin outputs to taosXControls plugin output batches, not maximum rows per source SDK historical query, target disk write, or transaction. Excessive values increase memory pressure. Zero or out-of-range values are not usable merely because they parse. Retain the default first, then compare output and host load.
batch_timeout
Parsable nonnegative integer
Unset
Unit: defined as milliseconds by parsing
No; configuration accepted and forwarded, but unused for timed plugin output flushes or source query controlDoes not guarantee periodic batch emission at low volume or control source query timeout or continuous polling intervals. Use query_interval for polling waits. Verify historical and subscription results separately; do not apply Kafka batch timeout behavior.
keep_raw_data
true or false
false
Unit: none
No; production collection plugin raw data retentionAppends TSV on the actual reading host when enabled, retaining source record times, point IDs, names, values, and quality for controlled Troubleshooting. Not an archive of all failed rows, cache, backup, or proof of ingestion. Assess sensitive data and disk usage, and restore configuration after Troubleshooting. See operations guidance for directories.
keep_raw_data_days
Parsable nonnegative integer
Unset in configuration; plugin helper defaults to 30, but not used for file cleanup
Unit: named in days, not an actual retention guarantee
No; configuration accepted and forwarded, but not implemented in retention cleanupDoes not guarantee automatic age-based deletion. 0 does not disable retention or delete immediately. Manage through independent capacity alerts and approved cleanup procedures. Do not apply MQTT daily deletion or AVEVA file-count rotation behavior.
keep_raw_data_dir
Directory path on the actual collection host
./rawdata under the plugin working directory
Unit: none
No; explicitly specify when retaining data as recommended; when keep_raw_data=trueDoes not isolate tasks automatically. Use an independent controlled absolute directory per task as recommended, granting necessary service permissions. Appends to rawdata-YYYY-MM-DD.tsv by plugin run date, not each business record's date. Changing paths does not automatically move old data or create backups/recovery positions.

16.5 Download controls​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
csv_format
full or preview, strictly case-sensitive
full
Unit: none
No; server-side point-list download entry point, not production collection modefull generates the complete mapping CSV. preview generates only point metadata and cannot replace full for upload collection. After downloading, check headers and point IDs, then edit under this source's rules. Does not change uploaded point lists or running tasks.

16.6 Entry points, retention, and recovery​

pspace_mode is the enumeration mode; pspace_task_mode selects production collection. csv_format=preview downloads only metadata, not a complete mapping replacement. CSV paths are not Base64 content. CSV type does not specify plugin output retroactively or recover precision lost in upstream conversion. Follow the guide to check source types, actual output, target values, and mapping primary keys separately.

Historical and continuous query windows must be at least 1 second; fractional seconds are truncated. Continuous mode does not stop at end_time. Running window boundaries are not durable checkpoints, and saved configuration does not establish resumability from an interruption. Retain the original task, check gaps first, then backfill through independent short-window reads. Verify historical completeness and continuous new values separately.

keep_raw_data_days does not guarantee automatic daily cleanup. Raw data retention is not an error archive, backup, or proof of ingestion. View files on the actual collection host, check the time zone, and configure capacity alerts. For operations, see Viewing pSpace raw data retention.

17. OPC UA connection parameters​

The following 11 names cover only connections and endpoint switching, not all collection, browsing, Point-list, event, or common task options. They are not CLI arguments of the same names. For procedures and screenshots, see OPC UA.

The source address format is opcua://HOST:PORT/PATH. Host and port are required; use the source-published path. The plugin connects using opc.tcp. Do not treat the common port 4840 as a direct DSN default. Anonymous, username/password, and user-certificate identities are inferred from the supplied materials; there is no generic auth_method query key. Username/password takes precedence, and both must be nonempty. Do not mix these with user certificates or assume certificate identity takes precedence.

Check security mode and policy separately. If either is None, the other cannot independently guarantee signing or encryption. Read/Browse caps in this table are source request node counts, not target write batches, subscription publishing periods, or total Point counts.

17.1 Connections and requests​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
connect_timeout
Integer seconds; use a positive value
10; 0 falls back to 10 during plugin validation
Unit: seconds; duration strings such as 10s are not accepted
Optional; UA connection establishmentLimits waiting for the actual connection call, not the whole task or all retries combined. Endpoint discovery uses request_timeout separately. Negative values may pass upper-layer integer parsing but are not valid wait settings. Initially retain an explicit positive value. For connection failures, check address, trust, and identity first.
request_timeout
Integer seconds; use a positive value
10; 0 falls back to 10 during plugin validation
Unit: seconds; duration strings such as 10s are not accepted
Optional; UA endpoint discovery and client requestsApplies to waiting for endpoint discovery and client requests, not sampling intervals, output batch delay, or whole-task timeout. For Point-list or polling timeouts, check node batches and source load before merely increasing this value. Do not apply DA form behavior for fields of the same names.

17.2 Secure channel​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
security_mode
None, Sign, or SignAndEncrypt; strictly case-sensitive
None
Unit: none
Set explicitly according to source security requirements; UA secure channel and endpoint matchingSet separately from security_policy and match a source-supported combination. Non-None modes also require a paired communication certificate and private key. If either setting is None, the other alone does not establish signing or encryption. Do not fall back to None to bypass production trust problems, or substitute username authentication for channel protection.
security_policy
None, Basic128Rsa15, Basic256, Basic256Sha256, Aes128_Sha256_RsaOaep, or Aes256_Sha256_RsaPss
None
Unit: none
Set explicitly according to source security requirements; UA security-policy validation and endpoint matchingEnter the plugin-accepted short policy name with matching case, without a policy URI prefix. Inclusion in the list does not mean the organization approves the algorithm or the source supports it. Have the certificate administrator select an approved policy. Check it together with mode; a strong policy with mode still set to None does not complete security configuration.
certificate
@file path, or URL-encoded PEM text supplied by a caller supporting that entry point
Unset
Unit: none
Pair with private_key for non-None security mode; secure communication client certificateFor CLI use, prefer a controlled absolute path beginning with @. The file must be on a host visible to the actual collection process and readable by its service identity, not in the browser download directory. Production collection and check paths write non-@ values to temporary files without automatic Base64 decoding. The certificate must match the private key, client application URI, and source trust. It is not a user authentication certificate.
private_key
@controlled file path, or URL-encoded PEM text supplied by a caller supporting that entry point
Unset
Unit: none
Pair with certificate for non-None security mode; matching private key for the secure communication certificateFile path and text rules match the communication certificate. This is not a user identity key. Prefer @ paths for CLI use so raw private keys do not appear in process arguments. Control file permissions and exclude private keys from ordinary diagnostic packages. Successful upload or file existence does not prove PEM loading, correct pairing, or Server trust.

17.3 User authentication​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
auth_certificate
CLI uses @certificate file path
Unset
Unit: none
Pair with auth_private_key for user-certificate authentication; a user-certificate identity is inferred when no DSN username/password is suppliedDifferent from channel certificate. Use a readable @ path in the CLI. If PEM text is entered directly in this key, later temporary-file creation does not prove certificate identity selection; authentication is determined before path replacement. The source must accept the user certificate and authorize approved Points. Verify actual reads after preparing the identity; successful anonymous reads do not prove certificate-identity success.
auth_private_key
CLI uses @matching private-key file path
Unset
Unit: none
Pair with auth_certificate for user-certificate authentication; matching private key for the user-certificate identityUser-certificate identity can be used only when username/password is absent. One field alone cannot pass plugin validation. Use an @ path in the CLI and check the rules together with auth_certificate. Do not put channel keys, Base64 text, or server private keys in this field, or send raw keys in tickets.

17.4 Source request batches​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
max_nodes_per_read
Nonnegative integer; use a value the source and collection process can handle
Parsed as 0; general servers use a safe cap of 1000, with the recognized Kepware branch handled separately at 10000
Unit: maximum nodes per Read
Optional; limits UA Read batches, with separate handling for general servers and the Kepware branchGeneral servers retain smaller source-reported limits, with positive values imposing a further downward cap. 0 means neither zero nodes nor universally unlimited requests. For recognized Kepware, the plugin uses 10000 as a baseline, then caps it downward with explicit positive values; smaller source-reported limits are not guaranteed to be retained. This is not target rows per batch, total Points, or a subscription MonitoredItems cap. For timeouts, compare with an approved small value before directly increasing request timeout.
max_nodes_per_browse
Nonnegative integer; use a value the source and collection process can handle
Parsed as 0; general servers use a safe cap of 1000, with the recognized Kepware branch handled separately at 10000
Unit: maximum nodes per Browse
Optional; limits UA Browse batches, with separate handling for general servers and the Kepware branchGeneral servers retain smaller source-reported limits, with positive values imposing a further downward cap. For recognized Kepware, the plugin uses 10000 as a baseline, then caps it downward with explicit positive values; smaller source-reported limits are not guaranteed to be retained. 0 does not mean no source requests or no limits at all. This differs from max_nodes_per_read. Successful browsing does not guarantee production reads or subscriptions. It is not a cap on final rule-matched Points, target batch size, or a fixed browsing completion time.

17.5 Endpoint switching​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
failover_endpoints
ASCII comma-separated standby source addresses, optionally prefixed with opcua://
Unset; no additional standby address
Unit: address list
Optional; configure only deployed and authorized standby sources; OPC endpoint switching and connectivity checksThe primary endpoint comes first, followed by standby endpoints. They inherit the primary DSN query parameters, overwriting any query parameters in standby addresses. Username/password from the primary address is not automatically copied to standby addresses; check the intended identity for each endpoint. Standbys must provide equivalent Points and namespaces. A nonempty list disables the single client's internal automatic reconnection in favor of upper-layer switching. It does not create source redundancy or guarantee no loss or duplication.

17.6 Verification after changes​

Save the original task and configuration first. Check identity, paths, and source permissions on the actual collection host. Quote the complete DSN for the shell, and separately URL-encode certificate contents, passwords, address paths, and reserved characters. After connectivity succeeds, browse an approved test Point and check source time, value, quality, and target data.

Standby endpoints must provide the same logical Points and usable identities. An existing standby address does not mean cross-node takeover, historical backfill, or lossless operation has been verified. Check interruption windows for switching and reconnection separately. Service-task restarts, source endpoint switching, and store-and-forward cannot replace one another. See Restart, checkpoints, and store-and-forward.

18. OPC DA connection parameters​

The following 8 names cover only connections and endpoint switching, not all collection, browsing, Point-list, event, or common task options. They are not CLI arguments of the same names. For procedures and screenshots, see OPC DA.

The source address format is opcda://HOST/PROGID. ProgID must match the actual Windows source registration name. Connections use the Windows collection process's COM/DCOM identity; DSN username/password cannot configure a UA identity. taosX on Linux must read through a Windows taosX-Agent meeting the dependencies.

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
connect_timeout
Integer, 1–86400
60; initial new-form value 10
Unit: seconds
Optional; when connecting to the OPC DA serverMaximum connection wait. Older versions ignored saved values; the new version honors them. Review existing 10-second task settings before upgrading; the system does not rewrite them automatically.
request_timeout
Integer, 1–86400
60; initial new-form value 10
Unit: seconds
Optional; individual read, browse, Point addition/deletion, metadata-batch, and shutdown operationsInitial registration is timed per Point; the total for the Point list may exceed this value. A timeout terminates the current collection plugin, and the task follows its failure policy. Normal sampling waits, data reporting, and, without standbys, reconnection and Point re-addition backoff are excluded from the individual COM-call budget.

For standalone connectivity checks or Point scans, each candidate's helper-process budget is connect_timeout + 3 × request_timeout + 300 seconds, including output reading; omitting the parameters gives 540 seconds. Large Point lists or slow scans need a budget covering multiple metadata batches and throttling waits. On expiry, the current helper is terminated and reaped before the next candidate. For budget adjustments and upgrade checks, see Connection and retries.

18.1 Reconnection and Point recovery​

The following five parameters apply only without standby addresses. Configuring failover_endpoints disables lower-level automatic reconnection and switches through candidates in order.

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
reconnect_times
32-bit unsigned integer; only positive values override the connection library default
Unset or 0 retains the accompanying library default; initial new-form value 100
Unit: connection library reconnection attempts
Optional; when the Windows DA client creates connection configurationNot a task count, total failover count, or complete recovery deadline. 0 is not passed to the library as Disable reconnection. Increasing attempts cannot fix incorrect source registration, runtime identity, or DCOM permissions. Check actual reconnection configuration in startup logs first, then the interruption window and new values after recovery.
reconnect_interval
32-bit unsigned integer; only positive values override the connection library default
Unset or 0 retains the accompanying library default; initial new-form value 1000
Unit: milliseconds
Optional; connection library reconnection configurationUnlike UA's second-based connect_timeout, this is not a DA connection-call timeout or normal collection interval. 0 does not mean zero wait. Initially retain the form setting. For persistent failures, check registration, network, and service identity first rather than causing a reconnection storm to speed recovery.
add_tag_retry_times
32-bit unsigned integer; only positive values override the connection library default
Unset or 0 retains the accompanying library default; initial new-form value 100
Unit: Point addition retries
Optional; connection library Point addition/recreation configurationDifferent from the network reconnection budget; cannot correct invalid Point identifiers, permissions, or source types. 0 does not disable retries. After recovery, check that existing Points continue collection and approved Points actually join. A connected source does not replace Point verification.
add_tag_retry_interval
32-bit unsigned integer; only positive values override the connection library default
Unset or 0 retains the accompanying library default; initial new-form value 500
Unit: milliseconds
Optional; connection library Point addition retry configurationNot a Point discovery cycle, normal polling interval, or task output batch delay. 0 retains the library default, not zero wait. For persistent addition failures, investigate Point names, runtime identity, and source state instead of only increasing attempts or reducing intervals.
failed_reads_to_force_reconnect
32-bit unsigned integer; only positive values override the connection library default
Unset or 0 retains the accompanying library default; initial new-form value 50
Unit: read-failure count threshold
Optional; connection library read-failure reconnection policyNot the connection/collection timeouts set separately on the original page or the task health threshold. 0 does not disable forced reconnection. Confirm counter reset timing and vendor-call behavior against the matching connection library and site source. Do not multiply this number by the sampling interval to promise a fixed recovery time.

18.2 Endpoint switching​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
failover_endpoints
ASCII comma-separated standby host/ProgID addresses, optionally prefixed with opcda://
Unset; no additional standby address
Unit: address list
Optional, only for deployed and authorized source redundancy; upper-layer OPC endpoint list construction and checksThe primary comes first; standbys are attempted in the supplied order, use the same driver, and inherit primary query parameters. Their own query parameters are not retained. The primary and each standby must contain exactly one host and its ProgID; do not combine a primary multi-host list with standbys. Candidates must provide equivalent ItemIDs, types, units, and timestamp meanings, and allow the Windows service identity access. Standbys disable lower-level automatic reconnection; an empty list retains the original behavior. A task collects from one endpoint at a time, with no proactive return from a healthy standby. If all fail, that round errors; the service scheduler restarts from the primary under the existing retry policy, or execution errors directly without an outer scheduler. Connectivity checks stop at the first successful candidate rather than validating all standbys. This is not multi-Xnode takeover, load balancing, or historical backfill. For upgrade order, triggers, interruption windows, and duplicate-write limits, see Sequential failover between redundant servers.

18.3 Verification after changes​

Save the original task and configuration first. Check identity, paths, and source permissions on the actual collection host. Quote the complete DSN for the shell, and separately URL-encode certificate contents, passwords, address paths, and reserved characters. After connectivity succeeds, browse an approved test Point and check source time, value, quality, and target data.

Standby endpoints must provide the same logical Points and usable identities. An existing standby address does not mean cross-node takeover, historical backfill, or lossless operation has been verified. Check interruption windows for switching and reconnection separately. Service-task restarts, source endpoint switching, and store-and-forward cannot replace one another. See Restart, checkpoints, and store-and-forward.

19. OpenTSDB Read Parameters​

The following named query parameters belong in the OpenTSDB source DSN for taosx run --from. There are 13 keys, including individually listed aliases. Keys are case-sensitive; alias precedence follows the table below. This table excludes shared performance, health-monitoring, JVM, target-write, and internal plugin configuration and is not a complete plugin parameter list. For UI configuration, dependencies, data checks, and initial failure handling, see OpenTSDB.

Use opentsdb://host:port or opentsdb+https://host:port; without a protocol suffix, HTTP is used. Explicitly provide host and port; 4242 is not supplied automatically. For example, opentsdb://opentsdb.example.com:4242?metrics=temperature&beginTime=2026-11-20T00:00:00Z&endTime=2026-11-20T00:01:00Z shows only the configuration format for an isolated HTTP source, not a complete write command or production security plan. Example times are UTC. Use a range confirmed by the source administrator to contain data.

19.1 Read Range​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
metrics
Comma-separated string list
Read all Metrics
Units: none
Specify explicitly for initial verification; source query generationSeparate names with commas. Leading/trailing whitespace and empty entries are removed. Match actual Metric names, for example temperature,pressure. An empty value or separators alone expand to all sources. Do not use this to bypass failed list retrieval.
beginTime
Time string with time zone
None
Units: second-precision time format
At least one nonempty valid value of beginTime or begin_time; task startup and read-window calculationStart, such as 2026-11-20T00:00:00Z or 2026-11-20T08:00:00+08:00. URL-encode plus signs and reserved characters in the DSN. Takes precedence over begin_time whenever present, with no fallback even if empty. Do not substitute a date without a time zone or a Unix integer.
begin_time
Time string with time zone
None
Units: second-precision time format
Required if beginTime absent; only when beginTime key does not existAlternative to beginTime with the same format and read-start meaning. Do not set both keys or treat another source's start key as synonymous.
endTime
Time string with time zone
No fixed end; continue reading
Units: second-precision time format
Recommended for bounded verification; read-window calculationSame format as beginTime, for example 2026-11-20T00:01:00Z. Takes precedence over end_time when present; empty values do not fall back. Use a small known-data window initially. Verify source query boundaries and actual records separately; start/end configuration alone does not prove no gaps.
end_time
Time string with time zone
No fixed end; continue reading
Units: second-precision time format
No; only when endTime key absentAlternative to endTime with the same format and restrictions. Do not set both keys.

19.2 Target Naming​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
timestampFieldName
Field name string
timestamp
Units: none
No; target time-field generationRenames the target time field, without selecting source Metrics or changing source time units. Takes precedence over timestamp_field_name when present. Empty values ultimately use the default name, not the other key. Avoid conflicts with value fields and tag names.
timestamp_field_name
Field name string
timestamp
Units: none
No; only when timestampFieldName absentAlternative to timestampFieldName with the same target meaning and default name. Use only one key and query actual generated column names during verification.
valueFieldName
Field name string
value
Units: none
No; target value-field generationRenames the target value field, not a source-value filter. Takes precedence over value_field_name when present. Empty values ultimately use the default name rather than the other key. Recheck target structure and columns holding existing data after changes.
value_field_name
Field name string
value
Units: none
No; only when valueFieldName absentAlternative to valueFieldName with the same meaning and default. Do not configure together with the camelCase key.
tableNamePattern
String template
Metric combined with tag values sorted by tag key; dots become underscores
Units: none
No; target child table name generationFor example ${metric}_${host} uses the Metric and host tag. Missing variables become empty strings. Empty results or results containing only underscores, hyphens, and dots fall back to default naming; dots ultimately become underscores. Confirm unique, valid names across all tag sets. Partitioning only by Metric can overwrite data at the same time.

19.3 Logs and Recovery State​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
log_level
Log level string
info
Units: none
No; plugin log configurationUse error, warn, info, debug, or trace; retain info initially. Separate from main taosX process logging. Record debug scope and rollback time; invalid levels do not provide expected logs.
mode
String
normal
Units: none
No; source task configurationRetain normal. Accepting strings does not mean other modes are implemented. Setting resume gives no recovery guarantee. Retain original task state and check interrupted windows for continued reads.
breakpoints
Recovery state string
None
Units: Unix millisecond timestamps per Metric
Leave unset for initial tasks; read-window filtering based on recovery stateFormat: metric1:timestamp&metric2:timestamp. Correctly encode separators in a DSN so they are not split into other query parameters. Managed by original task state. Do not manually change values to current time to skip backlogs. Save configuration and progress and contact technical support before repair. Not evidence that every record was successfully written.

19.4 Change and Recovery Boundaries​

Do not set both aliases for time or field names. A camelCase key takes precedence whenever present, even if empty, with no fallback to snake_case. Empty time values can still prevent startup. Do not treat other connectors' start, end, or timestamp as synonyms for this source.

Handle target child table naming expressions separately from general message mapping. Even with unchanged source Metrics and tag sets, changing expressions can write to another target table. Confirm original table names and complete tag sets before recovery. Do not clear Metrics, delete progress, or rename objects to eliminate missing-data issues.

The mode field provides no additional recovery-mode guarantee; resume does not provide arbitrary historical backfill. breakpoints is recovery state, not an ordinary time filter. Leave it empty for initial tasks, and retain original configuration and state during maintenance. For progress repair, first record interrupted windows using Restart, Checkpoints, and Store-and-Forward, confirm with technical support, then proceed and check the same source/target window.

20. InfluxDB Read Parameters​

The following named query parameters belong in the InfluxDB source DSN inside taosx run --from. There are 15 case-sensitive keys. This table excludes shared performance, read-mode, health-monitoring, JVM, and target-write parameters and is not a complete plugin parameter list. For form locations, window units, prerequisites, and data verification, see InfluxDB.

Use influxdb://host:port or influxdb+https://host:port; without a protocol suffix, HTTP is used. Explicitly provide host and port; 8086 is not supplied automatically. In production, follow source HTTPS and identity requirements. For 1.x, username/password can be in the address authentication section or the query keys below. A same-named query key takes precedence whenever present, even if empty, without fallback. For 2.x, use organization ID and Token, not 1.x username/password configuration.

20.1 Connection and Authentication​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
version
Version string
None
Units: none
Yes; source connectionEnter the actual source version: 1.7, 1.8, or a two-part version from 2.0–2.7, such as 1.8 or 2.7. Do not enter 1.x, 2.x, or arbitrary major versions. Acceptance of a value does not place that version in the release support matrix or replace on-site authentication verification.
username
Username string
Username from address authentication section
Units: none
Username required for 1.x; version 1.7 or 1.8 selectedObtain an account that can read the intended database and retention policy from the source administrator. A query key takes precedence over the address username when present, with no fallback for empty values. Do not use different identities in the two locations. 2.x uses orgId and token.
password
Password string
Password from address authentication section
Units: none
Password required for 1.x; version 1.7 or 1.8 selectedPair with the selected source account. A query key takes precedence over address authentication when present, even if empty. URL-encode reserved characters and shell-quote the complete DSN; neither quoting nor encoding encrypts the password.
orgId
Organization ID string
None
Units: none
Required for 2.x; version 2.0–2.7 selectedEnter the source InfluxDB organization ID, available in Organization → About. It is neither the organization display name nor target database name. Do not rename the key to org_id; an empty value is not a valid identity.
token
Token string
None
Units: none
Required for 2.x; version 2.0–2.7 selectedObtain read permissions on the selected Bucket from the source administrator. Confirm change permissions separately if creating DBRP. Do not switch directly to an administrator Token when schema or queries fail. Redact logs before submitting them.
addDbrp
Boolean switch
false
Units: none
No; when InfluxQL DBRP mapping is neededOnly the string true enables it. Automatically adding database and retention-policy mappings changes source configuration. Confirm existing mappings and obtain source administrator authorization first. This is not mandatory for initial read-only ingestion and does not replace Bucket read permissions.

20.2 Read Range​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
bucket
Object name string
None
Units: none
Yes; source read-task generationSpecify one source object. For 2.x, use the actual Bucket; for 1.x, use the database/retention-policy object returned by schema retrieval. Preserve the returned name, not a target database name. Verify together with orgId and source identity.
measurements
Comma-separated name list
All Measurements in the selected Bucket
Units: none
Explicitly specify one for initial verification; read-object selectionFor example temperature,pressure. Leading/trailing whitespace and empty entries are removed. Empty values or separators alone expand scope. If the test object is missing, check schema and permissions rather than clearing configuration to bypass the issue.
beginTime
Time string with time zone
None
Units: second-precision time format
Yes; startup and read-window calculationFor example 2026-11-20T00:00:00Z or 2026-11-20T08:00:00+08:00. URL-encode plus signs in the DSN. Use a start known to contain data, not a date-only value, a time without a time zone, or a Unix integer. Do not rename the key to begin_time or start.
endTime
Time string with time zone
No fixed end; continue reading
Units: second-precision time format
Recommended for bounded verification; read-window calculationSame format as beginTime. If the end is later than currently readable source time, the task still waits; a bounded range does not mean immediate completion after submission. Ordinary 1.x tag set queries include the end, 1.x scan queries exclude it, and 2.x Flux queries use range. Verify boundary records separately for each version and mode; counts alone cannot detect duplicates or gaps.

20.3 Naming and Read Method​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
tableNamePattern
Child table name template
Measurement combined with tag values sorted by tag key; dots become underscores
Units: none
No; target child table name generationFor example ${measurement}_${host}. Variables represent the Measurement or corresponding tags. Missing variables become empty; an empty result or one containing only separators falls back to the default name. Dots become underscores. Check unique names for different tag sets. Partitioning only by Measurement can overwrite data at the same time. Changing the template can write to another set of tables.
read_concurrency_type
Enumeration string
sequence
Units: none
No; read-task assignmentOptions are queue, average, and sequence. Retain the original task value, or compare source load using the default first. This controls read assignment, separately from maximum read concurrency, tagset/scan mode, and target write concurrency. It does not guarantee target arrival order.

20.4 Logs and Recovery State​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
log_level
Log level string
info
Units: none
No; plugin log configurationUse error, warn, info, debug, or trace, separately from main taosX process logging. After temporarily increasing debug logs, record the rollback plan and disk use. Invalid levels do not provide the expected output.
mode
String
normal
Units: none
No; source task configurationRetain normal. Acceptance of a string does not prove other modes are implemented. Entering resume provides no additional recovery guarantee. Retain original task configuration and state for recovery and check the interrupted time range.
breakpoints
Recovery state string
None
Units: Unix nanosecond timestamps per Measurement
Leave unset for initial tasks; source-window filtering based on recovery stateFormat: measurement1:timestamp&measurement2:timestamp. Encode separators correctly in the DSN. Units differ from OpenTSDB's millisecond state. Managed by original task state; do not manually advance to current time to skip backlogs. It is not confirmation of individual target writes. Save configuration and state and contact technical support before repairs.

20.5 Configuration and Verification​

addDbrp=true changes source configuration. Have the source administrator confirm existing mappings and change permissions first. HTTP connectivity does not establish Bucket read or target write access. Verify schema retrieval, known-sample reads, and target queries separately. Entering a source version from the examples does not certify compatibility of that actual source or cloud service.

Use second-precision datetime values with time zones, such as 2026-11-20T00:00:00Z. This example is UTC; select a range containing actual source data. Do not treat other connectors' begin_time, start, or end as aliases for this source. Start/end values only limit the read range and do not reduce the target's required nanosecond precision. Ordinary 1.x tag set and scan reads handle the end differently. Verify boundary records for the actual mode rather than applying query-migration end boundaries.

Before changing Bucket, Measurement, target naming, or read method, save the original configuration and interrupted window. Do not substitute mode=resume, changes to breakpoints, or empty Measurements for recovery and missing-data diagnosis. For original-task recovery, see Restart, Checkpoints, and Store-and-Forward.

21. MongoDB Read Parameters​

The following named query parameters belong in the MongoDB source DSN for taosx run --from. There are 22 case-sensitive keys, not standalone CLI options. This table excludes shared read/write performance, health-monitoring, transformation, and target parameters. Distinguish initial UI values from direct DSN defaults. For the complete configuration process, see MongoDB.

The address format is mongodb://USER:PASSWORD@host:port. Explicitly provide host and port. Only the first address is used as the initial connection address; comma-separated addresses are not a complete initial node list. Username and password belong in the address authentication section, not same-named query keys. Shell-quote the complete DSN and URL-encode reserved characters in JSON, placeholders, time zone plus signs, passwords, and file paths. Shell quoting does not replace URL encoding or encrypt credentials.

21.1 Connection and Authentication​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
load_balanced
Boolean
false
Units: none
No; source connectionEnable only for a compatible load-balancing endpoint supplied by the source administrator. A regular host address is not a load balancer. Verify together with direct_connection and replica-set configuration against the actual topology. Acceptance does not make every combination valid.
direct_connection
Boolean
false
Units: none
No; source connectiontrue connects directly to the specified host; false does not force a single-host direct connection. Ask the source administrator whether other nodes should be discovered and whether their advertised addresses are reachable from the collection host. Do not enable blindly to bypass discovery failures.
repl_set_name
String
Not explicitly specified
Units: none
As required by source topology; replica-set connectionEnter the replica-set name supplied by the source administrator, not a database, collection, or individual node name. If it differs from actual configuration, check topology first. Do not rename the source replica set to suit a test.
local_threshold
Duration with units
15ms
Units: duration, such as 15ms
No; client server selectionRound-trip latency window for server selection, not a timeout for the entire query or task. Specify units explicitly. Static form descriptions or placeholders do not establish a different runtime default.
mechanism
Case-sensitive mechanism string
Not explicitly specified; negotiated by client
Units: none
Only when source authentication requires it; username and password both supplied in addressCommon explicit values are ScramSha1 and ScramSha256. Do not copy SCRAM-SHA-256 spelling from another client. Unknown values do not activate that mechanism; successful parsing does not prove authentication. This does not enable Gssapi. For special mechanisms, confirm identity material and matching entry points first. Static candidate lists are not complete delivery support lists.
source
Authentication database name
No authentication database explicitly specified
Units: none
According to source user's authentication location; username and password both supplied in addressEnter the administrator-specified authentication database, such as admin. This is not the database parameter selecting read objects. A common admin UI hint is not a fixed location for every user. Business database and collection read permissions are still needed after authentication.
app_name
String
Not explicitly set
Units: none
No; client connection establishmentDistinguishes application connections in MongoDB. Does not determine TDengine target database, supertable, or child table names. Use a traceable task name without credentials.
compressors
Single compressor name
No compressor configured
Units: none
No; source/client connection compression negotiationThis entry point parses one string as one compressor, such as zstd, not an arbitrary comma-separated compressor list. Invalid values fall back to unconfigured. Absence of parsing errors does not prove compression is active. Check source support and dependencies before use.

21.2 TLS and Files​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
tls
Boolean
false, but TLS is still enabled when both nonempty file paths exist
Units: none
According to source security requirements; source connection constructiontrue requires both ca_file_path and cert_key_file_path; enabling the switch alone is insufficient. false does not override activation by both paths. This connection does not strictly verify certificate validity and host name. Confirm the delivery solution for strict identity verification. Do not disable source TLS to bypass failures.
ca_file_path
File path on execution host
None; empty string counts as absent
Units: path
Required when TLS enabled; TLS connectionEnter a CA file path, not certificate contents. Paths starting with @ resolve relative to the taosX data directory; other paths follow the execution process environment. Prefer explicit absolute paths and check actual service-identity read permissions. Providing a CA does not establish strict identity verification.
cert_key_file_path
File path on execution host
None; empty string counts as absent
Units: path
Required when TLS enabled; TLS connectionPoint to a file containing the client certificate and private key, supplied together with a CA. A public certificate alone is incomplete. @ prefixes resolve relative to the taosX data directory. This is not arbitrary secret-content interpolation syntax. The file must be readable on the host actually executing the task.

21.3 Queries and Windows​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
database
Source database name or date template
None
Units: none
Yes; read-object selectionBusiness data database, separate from authentication source and the TDengine target. Date placeholders expand using the current read-window start and fixed time zone, for example database_${Y}. Verify a fixed name first; this does not automatically scan all historical databases.
collection
Source collection name or date template
None
Units: none
Yes; read-object selectionSpecifies the business collection. A date template such as collection_${md} expands by current window and time_zone. Verify day boundaries, missing collections, and year boundaries individually. It does not automatically create or discover arbitrarily named collections.
subtable_fields
Comma-separated field names
Source queries not split by fields
Units: none
No; reading by source field combinationsFor example device,line. Each placeholder expands to a complete field condition at a JSON object member position, not a value. Use explicit field references for names containing a closing brace or locally ambiguous legacy references. See below for syntax, upgrade previews, and skipping empty groups. Names are not trimmed; map target child tables and tags separately.
sql
MongoDB JSON condition template
None
Units: none
Yes; sample retrieval and production readsDespite the name sql, this is not relational SQL. Use paired ${start_datetime}/${end_datetime} for BSON Date and paired ${start_timestamp}/${end_timestamp} for BSON Timestamp. Date becomes the bound's BSON millisecond value; Timestamp uses bound Unix seconds for t and 0 for i. Both are independent of task time zone. Set operators explicitly, such as $gte and $lt. Do not quote placeholders, mix types, or omit a time boundary.
sort
JSON sort document
Empty document; no ordering specified
Units: none
No; source collection queriesFor example {"event_time":1,"device":1}, with 1 ascending and -1 descending. Check source query cost using actual fields and indexes. Source sorting does not guarantee global arrival order across concurrent windows or write batches.
start
RFC 3339 time string
None
Units: datetime
Yes; task read rangeFor example 2026-11-20T00:00:00Z. Select a known-data start according to source business time. URL-encode the plus sign for +08:00 in the DSN. Inclusion/exclusion is determined by sql operators; a configured start is not confirmation of a write.
end
RFC 3339 time string
No fixed end; continuous reads
Units: datetime
Recommended for initial bounded verification; task read rangeSame format as start; should be later. If later than currently readable source time, the task still waits. No new data temporarily does not mean completion. $lt excludes the end; $lte has different boundaries. Check boundary records separately.
time_zone
Fixed time zone offset string
Offset from start
Units: fixed offset, such as +08:00
When overriding start's time zone; date-based database/collection selection and read windowsAccepts only fixed offsets such as +08:00 or +0800, or UTC or Z; URL-encode plus signs. IANA names are unsupported, offsets do not follow daylight saving time, and invalid values fail at start or preview. Affects name date variables and window division, not absolute instants in start/end or BSON time placeholders.
interval
Positive duration with units
1 day
Units: for example 1m, 1h, 1d
No; source read-window divisionMust be greater than 0. Controls each read window's range, not sleep time between rounds. Task end and midnight in the task time zone also limit windows. Windows never cross days; intervals over 1 day behave as 1 day. Check adjacent-window boundary records.
delay
Nonnegative duration with units
5s; not the initial UI value of 0 seconds
Units: for example 0s, 5s, 1m
No; continuous reads near current timeThe safe watermark is current time minus delay. After history reaches it, checks run about once per second and read when the pending range exceeds a fixed 10 seconds. interval only divides windows. Does not rescan all historical windows already passed or synchronize arbitrary updates/deletions of old documents. Confirm explicitly in both UI and direct DSN.
sample_data_limit
Nonnegative 32-bit integer
5
Units: sample documents
No; server sample retrievalLimits sample count, not total production-task rows. The UI maximum of 100 is not a fixed direct DSN maximum. Start with a few representative samples. Do not use 0 for an effective preview or increase source load without bounds to cover structural differences.

21.4 TLS and Window Verification​

TLS requires both ca_file_path and cert_key_file_path. Setting only tls=true, uploading only one file, or entering file contents instead of paths is incomplete. Both valid paths enable TLS; do not rely on tls=false to force it off. The connection does not strictly verify certificate validity and server host name. Confirm the delivery solution first if strict identity checking is required. A successful connection check does not verify identity checking or business collection reads.

The query field is named sql, but contains a MongoDB JSON condition template. Date uses paired ${start_datetime} / ${end_datetime}, and Timestamp uses paired ${start_timestamp} / ${end_timestamp}. Do not add outer quotation marks or interchange the two time types. For example, $gte includes the start and $lt excludes the end. Actual conditions determine boundaries; setting start / end does not automatically correct template comparison operators.

An explicit subtable field reference is $field{"region}code"}. Escape the name as a JSON string and place the placeholder at an object member position. Complete condition objects can be {${site}} or {$field{"site"}}; neither {"site":${site}} nor {"site":{"$in":[${site}]}} is valid, including in earlier versions. During upgrade validation, preview existing templates using Retrieve from Server. Unambiguous legacy references need no change. A position matching multiple configured fields, such as region and region}, fails even if only one expansion yields valid JSON. Replace it with $field{"region"} or $field{"region}"}, then preview again.

Grouping distinct values come from all documents in all collections involved in the import, excluding null and undefined. If any configured subtable field still has no usable value after combining collections, a warning names the field and that import is skipped. For the task time zone's page source, edit-preservation rules, and expansion examples, see MongoDB Key Configuration.

Check target records individually by source collection, window, business-time type, and device. Sorting does not guarantee target arrival order for concurrent windows. Delay only allows commit time for data not yet read; it is not Change Stream replication of historical updates/deletions. Resume the original task and state rather than changing the start to skip a backlog. See Restart, Checkpoints, and Store-and-Forward.

22. CSV read parameters​

The following parameters belong inside the CSV source DSN for taosx run --from. There are 20 named keys including aliases. They are case-sensitive and are not CSV export options. This table does not cover all upload, sampling, health, transformation, or target write parameters. For the complete procedure, see CSV.

The format is csv:/absolute/path/file.csv?has_header=true&batch_size=1000. Input paths are relative to the host actually running taosX. On Windows, use that host's paths; on Linux, use absolute paths. Paths may point to files or directories, with multiple entries separated by commas. Commas within paths cause ambiguity; first use isolated paths without commas. Shell-quote the complete DSN and URL-encode reserved characters in paths and other text. These options do not have the same effect in CSV export --to.

22.1 Parsing and fields​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
has_header
Boolean
true
Unit: none
No; set explicitly for the exercise; reading each fileWithout a nonempty header/headers, true treats the first non-comment CSV record as the header; false generates names c0, c1, etc. and retains the first data record. Explicit column names follow the header rules separately. Check the actual UI switch selection; direct DSN defaults do not establish UI initial values. Preview whether the first data record has been mistaken for a header.
header
Comma-separated column names
Reads the file header, or generates names without a header
Unit: none
No; replaces read column namesFor example ts,device,temperature. Takes precedence over headers. Column name spaces are not trimmed automatically, and the name count must match the actual file. Explicit names replace automatic header recognition; the first file record remains data to read, even with has_header=true. If the file already has a header, preferably leave this unset and preview the first data record.
headers
Comma-separated column names
Same as header
Unit: none
No; when header is not suppliedAlias of header. If both are supplied, header wins, even when empty; it does not fall back to this key. Use only one name in new configurations to avoid ambiguity from inconsistent lists.
skip
Nonnegative integer
No extra records skipped
Unit: CSV records per file
No; after header processing and before production data readsFor example skip=1 skips the first record after header processing. It does not skip the file's first line before looking for a header. Newlines inside quotes do not increase CSV record counts; comments follow comment separately. Check the actual first imported record with a small sample.
delimiter
Single-byte non-whitespace character
Comma ,
Unit: one byte
No; splits record fieldsFor example semicolon ;. The value is trimmed first, with empty values falling back to comma. Do not use multiple characters, Chinese punctuation, or whitespace. URL-encode reserved characters in the DSN; shell quoting is not URL encoding.
quote
Single-byte non-whitespace character
Double quote
Unit: one byte
No; identifies fields containing delimiters or newlinesMust differ from delimiter. Omitted or blank values still use double quotes; they do not disable quoting. Escape quotes within fields according to CSV rules. Preview actual samples containing commas and newlines first.
comment
Single-byte non-whitespace character
Direct DSN enables no comment prefix
Unit: one byte
No; skips records starting with this characterFor example comment=%23 means #. Must differ from delimiter. The UI offering # does not mean the direct DSN skips # lines by default. An unencoded # may be interpreted as a URL fragment; check samples after setting it.
skip_error
Boolean
false; explicitly empty means true
Unit: none
No; CSV reads and column-count checkstrue skips read errors and also permits inconsistent column counts. Missing columns may become nulls; extra columns do not automatically extend the model. This differs from target write archive/discard policies and may leave source content incompletely written. Fix production formatting first; do not enable merely to finish the task.
null_pattern
Comma-separated text markers
No additional markers; whitespace-only content still becomes null
Unit: none
No; converts source fields into content for mappingFor example NULL,N/A. Matches original field bytes exactly regardless of field type; not a regular expression. The entire setting is trimmed before splitting by commas; individual markers are not trimmed again. Ordinary content is then trimmed and NUL characters removed, with empty content becoming null. Confirm the business meaning of text NULL versus actual null first.

22.2 Batches and concurrency​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
batch_size
Positive integer
1000
Unit: source records/batch
No; reading filesMust be greater than zero. Controls read batches, not total imported rows, file count, or upload concurrency. Observe write and acknowledgment overhead after reducing it, and memory and waits after increasing it. Still verify target results by primary keys and values.
read_concurrency
Nonnegative integer
2 for direct DSN; 0 initially in a new UI form
Unit: concurrent file reads
No; scheduling file readsExplicit 0 uses an automatic concurrency limit of 64, not disabled reading. Do not apply defaults from structures or other connectors. Sorting only orders pending reads; concurrency does not guarantee completion or write order. Establish a baseline with a few files first.

22.3 Files and monitoring​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
keep_processed_files
Boolean
true; empty also means true
Unit: none
No; explicitly enable for the first exercise; after file processing and downstream acknowledgment completetrue retains input files; false attempts to delete processed files on the taosX host. Server copies in upload mode are separate from browser originals. Keep originals and a retention policy before deletion. Conflicting values among equivalent aliases cause an error rather than last-value override.
csvData.keep_processed_files
Boolean alias
Same as keep_processed_files
Unit: none
No; for existing configurations using this nameSynonymous with keep_processed_files, with case-sensitive spelling. Values must agree if both appear. Prefer the shorter name in new direct DSNs. Its UI-related alias status does not mean it overrides other values.
csvData.upload_csv_file.keep_processed_files
Boolean alias
Same as keep_processed_files
Unit: none
No; for existing configurations using the upload group nameValues must agree when supplied with other file-retention keys. false deletes input visible to taosX, not the browser original. The upload_csv_file name does not remove host path and data retention requirements.
csvData.monitor_file_directory.keep_processed_files
Boolean alias
Same as keep_processed_files
Unit: none
No; for existing configurations using the directory group nameSynonymous with other file-retention keys; conflicting values are forbidden. Before disabling it, confirm that directory input may be deleted. If deletion fails, check DeletePending and path permissions. Do not reupload completed files to clear that state.
file_pattern
Regular expression
No additional filename filtering
Unit: none
No; filters names after file discoveryFor example temperature-[0-9]+.csv$. Matches filenames, not full directory paths or shell wildcards. Directory mode first filters lowercase .csv suffixes. This regular expression does not automatically add .csv.gz or .CSV to scan results. If nothing matches, check suffixes and rules first.
new_file_notify
Boolean
false; empty also means false
Unit: none
No; continues monitoring after initial files are processedfalse ends after initial input is processed; true keeps processing subsequently discovered files. Retain the original task and progress. Finish writing before delivering a new filename. Do not assume monitoring necessarily processes arbitrary changes to old files exactly once.
notify_interval
Positive duration with units
60s for direct DSN; 30 seconds initially in a new UI form
Unit: duration, for example 30s
No; when continuous monitoring is enabledMust be greater than zero. Controls monitoring checks, not source-time sampling. It does not guarantee file write stability or bound end-to-end latency. If new files are not read, check filenames, paths, and permissions before adjusting for actual load. Do not only shorten the interval.
ack_timeout
Positive duration with units
300s
Unit: duration, for example 300s
No; waiting for downstream capacity, sending, or acknowledgmentMust be greater than zero. Not a total timeout for the entire file or task. Check logs and target writes first if triggered. Timeout does not prove that nothing was already written; retries may replay unacknowledged records. Do not merely raise the value and claim the issue is resolved.
sort
Integer enum 0, 1, 2
1; empty also means 1
Unit: none
No; orders pending files0 unsorted, 1 ascending, 2 descending. Paths separated by / sort by depth from shallow to deep, then by case-insensitive full path. Descending reverses paths only at the same depth. For Windows backslash paths, verify actual cross-depth order rather than assuming this depth guarantee. This does not sort file records by time or guarantee concurrent completion order. Do not rely on other undefined values.

22.4 Read verification and recovery boundaries​

skip skips source records after header processing. It does not first remove physical lines at the beginning of the file before looking for a header. Newlines within fields do not mean new records either. Check the first actual imported record using a small sample. skip_error=true also permits inconsistent column counts: missing columns may become null, and extra columns do not automatically extend the target model. It may also skip read errors and cannot guarantee that every invalid original record enters the write error archive. Source records are trimmed, and empty content becomes null. If empty strings or whitespace must be preserved, verify the business model and transformation first.

Direct DSN read concurrency defaults to 2, and monitoring interval defaults to 60s. The corresponding initial UI values are 0 and 30 seconds; they are not interchangeable. If monitoring discovers no files, check paths, filenames, and permissions first. Directory scanning filters lowercase .csv suffixes before applying file_pattern to filenames. Directly reading .gz files supports decompression, but that does not mean directory mode discovers .csv.gz or uppercase .CSV automatically.

With file retention on, completed input is not deleted. With it off, deletion is attempted only after processing and downstream acknowledgment complete. If deletion fails, check each file's status first instead of reuploading completed data. Recovery requires retaining the original task and progress. A standalone CLI is not equivalent to a persistent task checkpoint. File replacement, interruptions, and recent unsaved acknowledgments may cause replay. Verify source primary keys and target values; see CSV file status and recovery.

23. MQTT Publishing Parameters​

These are named MQTT target DSN keys for taosx run --to, totaling 11 parsing entry points. The three certificate keys have separate applicability limits and cannot enable TLS. This section does not include --from TMQ source parameters or reuse MQTT read parameters. See Publish to MQTT for complete preparation, sending, and downstream verification.

Format: mqtt://USER:PASSWORD@host:port?version=5.0&client_id=publisher&topic=taosx/test. Explicit host and port are required; only the first address is used as the target. Username and password belong in the address, and publishing authentication is set only when both are supplied. Quote the complete DSN for the shell and URL-encode reserved template, credential, and path characters. Source group.id, client.id, with.meta, and similar keys remain in --from; they do not work in the target.

23.1 Publishing and Sessions​

Parameter and typeWhen unset and unitRequired and applicabilityUsage
version
Protocol version string
None
Unit: none
Yes; publishing client creationExplicitly set 3.1.1 or 5.0 to match the Broker's MQTT protocol. Do not use its product version. The parser also accepts aliases mapping 3.x/3.1 to 3.1.1 and 5 to 5.0; this does not deliver a separate MQTT 3.1 protocol.
client_id
Nonempty string
None
Unit: none
Yes; each publishing connectionUse a separate identifier; leading/trailing whitespace is trimmed. Publishing concurrency above 1 appends random suffixes, so the configured value is not every connection's final ID. Check Broker ID authorization rules. Do not reuse downstream subscription IDs or confuse it with source TMQ client.id.
topic
Nonempty MQTT Topic or template
None
Unit: none
Yes; data and metadata without a separate targetVerify fixed topic taosx/test first, then source-context variables such as {database}/{tmq_topic}. ${name} is also converted to {name}. This is not a subscription filter; publishing does not use +/# matching. Missing variables skip the current message. Query column names do not automatically become routing variables. See the publishing guide for event variables.
meta_topic
MQTT Topic or template
Falls back to topic; whitespace is treated as omitted
Unit: none
No; when source configuration provides corresponding metadata eventsRoute metadata separately with the same template rules as topic. Target configuration cannot make a source topic produce metadata; with.meta and similar options remain in the source DSN. Downstream must distinguish envelopes even on a shared Topic.
qos
Integer enum 0, 1, 2
0
Unit: none
No; explicitly set for the exercise; MQTT Publish0 is at most once, 1 at least once, and 2 MQTT-stage exactly-once delivery. Other values fail when constructing the publishing client. This does not guarantee exactly once across source TMQ, Broker, and business subscriber. Automatic source commits do not mean downstream business acknowledgment.
keep_alive
Integer
5
Unit: seconds
No; MQTT connection establishmentThis publishing path accepts 5–65535 seconds, not duration strings such as 5s, and must meet Broker requirements. It is not task timeout, replay coverage after disconnection, or a business-data delay cap.
clean_session
Boolean
true
Unit: none
No; MQTT 3.1.1 session or MQTT 5.0 Clean Startfalse requests session retention under 3.1.1 and also a 60-second session expiry under 5.0, subject to Broker configuration. With concurrency above 1, random Client ID suffixes mean this switch cannot guarantee session reuse after restart. It does not recover messages whose source positions advanced before delivery.
read_concurrency
Integer, at least 1 when used
Available parallelism reported by the environment; 5 if lookup fails
Unit: publishing work units and independent connections
No; explicitly 1 recommended initially; publishing work-unit creationDespite its name, this target parameter controls MQTT publishing connections, not source partitions. Each work unit creates one connection; above 1, IDs get random suffixes and global arrival order is not guaranteed. 0 parses but creates no publishing work units and is not a runnable configuration.

23.2 Certificate Parsing Boundaries​

Parameter and typeWhen unset and unitRequired and applicabilityUsage
ca
Certificate body or @file path
Omitted
Unit: none
Cannot complete publishing TLS configuration; parsed and read, but publishing TLS transport is not enabledThis parsing entry point recognizes existing configuration. Supplying a certificate or successfully reading a file does not prove publishing encryption. If production requires TLS, confirm the delivery plan first. Do not copy MQTT ingestion tutorials or disable production security. The path after @ must be readable by the execution process and is not automatically relative to taosX's data directory.
cert
Client certificate body or @file path
Omitted
Unit: none
Cannot complete publishing mutual TLS configuration; parsed during configuration, but not applied to the publishing connectionThe material definitions of cert and cert_key remain recognizable, but this does not establish that the publisher presents a certificate to the Broker. This key alone does not enable TLS. Supporting packages and public configuration require delivery confirmation; do not add production examples before verification.
cert_key
Client private-key body or @file path
Omitted
Unit: none
Cannot complete publishing mutual TLS configuration; parsed during configuration, but not applied to the publishing connectionThis only identifies existing materials, not a currently effective publishing TLS operation. Confirm the production delivery plan first. Private keys must not appear in shared command records, screenshots, or diagnostic packages. File references do not replace permission protection.

23.3 Connection Counts and Verification​

Here read_concurrency controls MQTT publishing work units, each with an independent connection. It is not ingestion read concurrency, source TMQ partitions, or downstream subscriber count. Above 1, actual Client IDs receive random suffixes. If the Broker authorizes complete IDs, confirm rules first. The minimal exercise can explicitly use 1 for a fixed identifier, still avoiding other clients' IDs. Do not claim that clean_session=false guarantees uninterrupted recovery of the same session after restart.

Published messages do not set Retain. Later subscribers cannot rely on it to receive previous messages. QoS describes only MQTT; source TMQ automatic commits and Broker/business processing share no transaction. Check duplicates and gaps by source primary key, time, and downstream values. If production requires TLS, confirm delivery first. Accepted certificate parameters or readable files do not establish encryption. Do not disable production security to complete the exercise.

24. ORC read parameters​

The following 3 named keys belong inside the ORC DSN for taosx run --from; they are not standalone CLI options. Direct DSN defaults do not replace graphical UI initial values. This table does not cover all transformation, target database write, source query, resource, or health settings. For operation, verification, and Troubleshooting, see ORC command-line import.

The format is orc:/absolute/path/sample.orc?batch_size=1000&projection=ts,device,temperature. Paths belong to the host actually running taosX. On Windows and Linux, use paths on that host. Shell-quote the complete DSN and URL-encode reserved characters. Read parameters cannot be copied into export targets.

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
batch_size
Nonnegative integer; use a positive value
1000
Unit: rows/batch
No; when building the ORC reader for each fileMaximum rows read per batch, not total import rows. Uses the default when omitted or blank. This does not estimate total memory usage; row width, backlog, and concurrent files also consume memory.
projection
Comma-separated root field names or ORC type IDs
All columns
Unit: none
No; selects columns from each input file's root schemaFirst attempts the entire list as nonnegative integers, then, on failure, matches the entire list by name. Do not mix them. Names are case-sensitive; unknown entries may be ignored. Numbers are ORC root field type IDs, not zero-based positions. Entry order does not change file field order. Retain all fields required for mapping after selection.
unprocessed_batches
Nonnegative integer; retain the default initially
Unset during parsing; runtime uses 64
Unit: batches
No; creates the batch channel between reading and processing/writingLimits pending batches in this pipeline, not file count, total rows, disk cache volume, or checkpoints. Blank means unset. Increasing it may consume more memory without improving throughput or adding durable cache.

24.1 File selection and column projection​

Separate multiple files with commas in the DSN path. Leading/trailing whitespace is removed from each path and empty segments are ignored. This is not directory scanning or shell wildcard expansion. Multiple files are read concurrently without a promised global order. First check each file's completeness, schema, and permissions. If paths contain commas, first use unambiguous isolated paths.

projection first attempts to interpret all nonempty entries as nonnegative integers. Only on failure is the entire list interpreted as column names. Do not mix names and indices. This rule also cannot select columns whose names are all numeric. Names match root fields exactly, including case. Unknown names may be ignored rather than immediately raising an error. Check the actual selected fields and retain the time, tags, and values needed by the model. Projection selects columns without reordering them into entry order.

ORC numeric projection uses root field ORC type IDs, not tabular column indices starting at 0. Fields in simple flat schemas usually start at 1. Nested types consume IDs, so do not infer IDs from positions. This option selects only root fields; do not treat internal nested field IDs as independent output columns.

Neither batch_size nor unprocessed_batches is a total import volume or progress checkpoint. Retain defaults for the first run and record memory and write load before increasing them. Rerunning after interruption may reread data. Check the target using the same device, window, primary keys, and field values rather than relying only on read-completed logs.

25. Parquet read parameters​

The following 3 named keys belong inside the Parquet DSN for taosx run --from; they are not standalone CLI options. Direct DSN defaults do not replace graphical UI initial values. This table does not cover all transformation, target database write, source query, resource, or health settings. For operation, verification, and Troubleshooting, see Parquet command-line import.

The format is parquet:/absolute/path/sample.parquet?batch_size=1000&projection=ts,device,temperature. Paths belong to the host actually running taosX. On Windows and Linux, use paths on that host. Shell-quote the complete DSN and URL-encode reserved characters. Read parameters cannot be copied into export targets.

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
batch_size
Nonnegative integer; use a positive value
1000
Unit: rows/batch
No; when building the Parquet reader for each fileRows read per batch, not total import volume or export-side Row Group size. Uses the default when omitted or blank. Row width, backlog, and concurrent files jointly affect memory.
projection
Comma-separated root field names or zero-based indices
All columns
Unit: none
No; selects columns from each input file's root schemaFirst attempts the entire list as nonnegative integers, then, on failure, matches the entire list by name. Do not mix them. Numbers start at 0 and apply only to root fields, not ORC type IDs or nested leaf column IDs. Names match exactly, including case; missing entries are ignored. Entry order does not reorder columns. Check actual output columns and model references.
unprocessed_batches
Nonnegative integer; retain the default initially
Unset during parsing; runtime uses 64
Unit: batches
No; creates the batch channel between reading and processing/writingLimits pending batches in this pipeline, not maximum imported files, rows, or resumable progress. Blank means unset. It is not durable disk cache. Obtain memory and write baselines before increasing it.

25.1 File selection and column projection​

Separate multiple files with commas in the DSN path. Leading/trailing whitespace is removed from each path and empty segments are ignored. This is not directory scanning or shell wildcard expansion. Multiple files are read concurrently without a promised global order. First check each file's completeness, schema, and permissions. If paths contain commas, first use unambiguous isolated paths.

projection first attempts to interpret all nonempty entries as nonnegative integers. Only on failure is the entire list interpreted as column names. Do not mix names and indices. This rule also cannot select columns whose names are all numeric. Names match root fields exactly, including case. Unknown names may be ignored rather than immediately raising an error. Check the actual selected fields and retain the time, tags, and values needed by the model. Projection selects columns without reordering them into entry order.

Parquet numeric projection uses root field indices starting at 0, not ORC type IDs or nested leaf column IDs. Name matching also applies only to root fields; device.id is not automatically interpreted as a nested path.

Neither batch_size nor unprocessed_batches is a total import volume or progress checkpoint. Retain defaults for the first run and record memory and write load before increasing them. Rerunning after interruption may reread data. Check the target using the same device, window, primary keys, and field values rather than relying only on read-completed logs.

26. Parquet Export Parameters​

The following 4 named keys belong inside the Parquet DSN for taosx run --to, not as standalone CLI options. Direct DSN defaults do not replace GUI initial values. This table does not cover all transformations, target database writes, source queries, resources, or health settings. See Export Parquet for operation, verification, and troubleshooting.

Format: parquet:/absolute/path/sample.parquet?overwrite=false&compression=zstd. The path belongs to the actual taosX execution host; use that host's Windows or Linux paths. Quote the entire DSN for the shell and URL-encode reserved characters. Read parameters cannot be copied to export targets.

Parameter and typeWhen unset and unitRequired and applicabilityUsage
overwrite
Boolean string true or false
false
Unit: none
No; output preparation and promotion of temporary files to final filesOnly lowercase true/false are accepted, not 1, 0, or empty strings. With false, an existing final file or same-named .part causes failure; final placement also requires a filesystem supporting and permitting same-directory hard links. true deletes an existing .part first, then deletes the old final file after the new file completes before attempting replacement. The old file is not guaranteed to remain if replacement fails. Preserve old results first and prefer new filenames. This does not append.
compression
Enum string
uncompressed
Unit: none
No; Parquet writer creationSupports case-sensitive uncompressed, snappy, gzip, brotli, lz4_raw, zstd; lz4 and empty strings are invalid. Confirm downstream reader support first.
compression_level
Nonnegative integer, range checked by compression method
Unset; compression library default level
Unit: level
No; only with compression zstd, gzip, or brotlizstd: 1–22; gzip: 0–9; brotli: 0–11. Setting it for uncompressed, snappy, or lz4_raw causes an error. Empty strings differ from omission. Higher levels may increase CPU use and duration; do not treat them as production defaults.
row_group_size
Integer, 1024–10000000
131072
Unit: rows/Row Group
No; Parquet writer creationMaximum rows per group, not whole-file rows or read-side batch_size. Smaller values may flush more often but reduce compression and increase metadata overhead. Measure representative queries first. Empty strings and out-of-range values cause errors.

26.1 Output and Overwrite Boundaries​

Paths must end in lowercase .parquet. Write to same-directory <文件名>.part first, then place the final file. A .part file, correct extension, or command exit code 0 does not replace standard-reader verification of rows, schema, and values.

With overwrite=false, an existing final file or same-named .part prevents export. Check the execution node and both paths first. Do not delete running tasks' files to retry. This mode also requires filesystem support and runtime permission for same-directory hard links. Write permission alone does not establish this, and changing filenames within an unsupported filesystem does not fix it. overwrite=true deletes an existing same-named .part during preparation. After writing the new file, it deletes the old final file before attempting replacement. Failed replacement does not guarantee preservation of the old file or cross-platform atomic overwrite. Preserve old results and prefer new filenames. Appending is unsupported.

Compression must be compatible with downstream readers. Higher levels may increase CPU and duration. Row Group limits rows per group, not per file. Actual activity and metric interpretation is maintained in the export guide.

27. Kafka Publishing Parameters​

This section covers 22 named target --to keys. Eleven connection/authentication fields reuse Kafka Connection and Authentication Definitions on this page; their types, defaults, and file semantics are not repeated. Remaining fields are listed below. They are neither read parameters nor standalone CLI options. See Publish to Kafka for operation, GUI initial values, and downstream verification.

Connection/authentication fields are ca, ca_password, cert, cert_key, sasl_mechanism, sasl_username, sasl_password, sasl_kerberos_service_name, sasl_kerberos_principal, sasl_kerberos_kinit_cmd, and sasl_kerberos_keytab. Explicitly specify each Broker as host:port, separated by ASCII commas, and ensure advertised addresses are reachable. Target identities, files, and Kerberos tools belong on the actual publishing process host.

Format: kafka://host:port?data_topic=taosx.test.meters&auto_create_topic=false. Quote the complete DSN for the shell and URL-encode reserved template, path, and credential characters. group.id, with.data, with.meta, and recv_timeout belong in the source TMQ DSN, not this target table.

27.1 Routing and Events​

Parameter and typeWhen unset and unitRequired and applicabilityUsage
data_topic
String or template
Empty string; CLI does not use GUI prefilled values
Unit: none
Required with source with.data=true; data messagesKafka target Topic, not a source TDengine topic. Leading/trailing whitespace is trimmed; empty means omitted. Supports actual event variables such as {database}, and normalizes ${...}. Start with an approved fixed topic. Business columns do not automatically become template variables.
meta_topic
String or template
Falls back to data_topic when both data and metadata are enabled
Unit: none
Required only with source with.meta=true and with.data=false; metadata messagesOmitted or whitespace means unset. The source topic must also provide corresponding schema or deletion events. A target name alone does not produce metadata. Variables such as table/stable differ by event and require per-type checks.
data_key
String or template
No message Key
Unit: none
No; data messagesLeading/trailing whitespace is trimmed; empty means unset. Event context variables can be used, but value, site, or stable are not automatically included. A stable Key helps partitioning but cannot guarantee global order across all source partitions, Topics, and events.
meta_key
String or template
Falls back to data_key with with.data=true; no fallback in metadata-only mode
Unit: none
No; metadata messagesAn explicit nonempty value wins; whitespace means unset. Metadata-only mode does not use data_key even if supplied. Set meta_key directly if needed. Check actual event variables: supertable-create events have no table variable.

27.2 Publishing Batches​

Parameter and typeWhen unset and unitRequired and applicabilityUsage
concurrency
Nonnegative integer; explicitly 1 recommended initially
Available logical parallelism; 5 if lookup fails
Unit: work-unit cap/source topic
No; subscription/publishing work units per source topicActual count does not exceed the topic's vgroups; 0 is treated as 1 at runtime. This is not target Kafka partition count or a whole-task connection cap; multiple source topics are calculated separately. Before increasing, check source partition assignment, downstream capacity, and ordering requirements.
queue_timeout
Nonnegative integer duration, ms or s suffix supported
2s
Unit: explicit unit; bare integers are milliseconds
No; retry enqueue after Producer queue-full responseNot total Broker-delivery timeout or task idle-exit time. 0 adds no waiting for a full queue. Backoff retries do not impose a strict end-to-end latency cap. Empty strings use the default; decimals and minute (m) suffixes are unsupported.
batch_size
Nonnegative integer; use positive values normally
1000
Unit: message-count trigger threshold
No; send checks after accumulating source messagesControls triggering with batch_timeout. Not bytes or a strict batch cap: one source block adding many messages can exceed it. 0 does not disable publishing or allow unlimited backlog. Omitted or whitespace uses the default.
batch_timeout
Nonnegative integer duration, ms or s suffix supported
5s
Unit: explicit unit; bare integers are milliseconds
No; after initial pending messages enter the current batchExpiry triggers sending even below the count threshold; 0 means no additional batching wait. Not an end-to-end delivery cap or idle-exit timeout. Kafka read-side counterparts use milliseconds and environment overrides; do not copy between directions.

27.3 Automatic Topic Creation​

Parameter and typeWhen unset and unitRequired and applicabilityUsage
auto_create_topic
Boolean
false
Unit: none
No; before first publication to a resolved target TopicWith true, the Kafka administration client attempts creation and needs management ACLs. This is not the Broker's own automatic-topic-creation switch. Dynamic routing may create multiple topics; review names and counts first. Existing topics' partitions or replicas are not changed.
auto_create_topic_partitions
Signed 32-bit integer, at least 1
Unset; Broker defaults apply
Unit: partitions
No; auto_create_topic=true and creation neededGUI 1–1024 is a form constraint, not the same CLI cap or proof of cluster capacity. Explicit invalid values fail configuration validation even when automatic creation is off. This is not publishing concurrency.
auto_create_topic_replication_factor
Signed 32-bit integer, at least 1
Unset; Broker defaults apply
Unit: replicas
No; auto_create_topic=true and creation neededSubject to available Brokers and cluster policy. GUI 1–128 is neither the same CLI cap nor a delivery guarantee. Invalid explicit values fail configuration; -1 does not mean omitted. Existing topics are not reconfigured.

27.4 Time Units and Native Extensions​

queue_timeout and batch_timeout accept 500ms, 2s, or bare integers. Bare integers are milliseconds; 1m and 1.5s are not equivalent syntax. Read-side batch_timeout has a different type and environment overrides; do not interchange them. Source recv_timeout controls a single TMQ receive wait, not task exit or end-to-end delay.

Use kafka.原生参数名=值 in target DSNs, such as kafka.acks=all. The prefix is removed before passing to the Producer; native values follow Kafka client's own units. GUI extension keys omit this prefix. Extensions apply last and can override connection, security, and client defaults. Not all native keys are product-verified. Review security-protocol, Broker, and retry/acknowledgment changes first. Read-side KAFKA_CONSUMER_EXTRAS, bare compression.type, and read-position keys are not publishing extension entry points.

Default connection configuration does not verify TLS endpoint hostnames. A CA or enabled SSL does not establish strict identity verification. If required, confirm an approved delivery and configuration and actually verify Broker certificates and hostnames. Do not disable verification for acceptance. Check PLAIN/SCRAM/GSSAPI separately against Broker authentication, actual runtime environment, and Topic write authorization.

27.5 Routing and Recovery Verification​

Data templates do not automatically include all business columns or supertable/tag variables. Metadata templates likewise have only actual event context. Preview real data and each metadata type separately; unknown variables fail templates. Publishing batches are trigger thresholds: one source block can take actual message count over the setting. batch_size is not a strict message-count cap.

Corresponding TMQ positions are committed only after Kafka delivery completes. No cross-system transaction joins these stages; successful delivery with failed commit can replay. Retain original topics, consumer groups, and source retention windows. Check gaps and duplicates by business primary key and time. Producer acknowledgments or successful Topic creation do not establish end-to-end exactly-once behavior.

28. MySQL Read Parameters​

The following named query keys belong in the MySQL source DSN for taosx run --from. There are 16 keys, not standalone CLI options. For seven shared query keys, see Shared Relational Query Parameters. The table below lists only source-specific options. It excludes shared performance, health, transformation, and target-write parameters. For full operations and initial UI values, see MySQL.

The address structure is mysql://USER:PASSWORD@host:port/DATABASE. Explicitly provide username, password, host, port, and source database. Only the first address is used; multiple addresses are not a failover list. Source and target TDengine identities are separate. Shell-quote the entire DSN, and URL-encode reserved characters in SQL, passwords, paths, and time zone plus signs. Shell quoting does not replace URL encoding or keep plaintext credentials out of process arguments.

28.1 Connection and Session​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
charset
Character set name string
utf8mb4; initial UI value utf8
Units: none
No; MySQL session establishmentLowercased before passing to the MySQL client. Check against source character sets and business text. The form's eight options are not compatibility evidence for every source version. A connection character set does not replace target field type or encoding verification.
pipes_as_concat
Strictly lowercase true or false
Retains client default, which requests appending the corresponding SQL mode
Units: none
No; MySQL session establishmenttrue requests adding PIPES_AS_CONCAT, affecting double-pipe string concatenation semantics. false does not actively add it, but does not remove existing source session modes. Omission does not mean disabled. Empty strings, 0, and 1 are not Boolean forms for this field. Verify MySQL-protocol-compatible products separately.
no_engine_substitution
Strictly lowercase true or false
Retains client default, which requests appending the corresponding SQL mode
Units: none
No; MySQL session establishmenttrue requests adding NO_ENGINE_SUBSTITUTION. false does not actively add it, but does not remove existing session modes. Omission does not mean disabled. Do not modify global SQL modes for a read exercise. Confirm exact versions and mode support for compatible sources such as Doris first.

28.2 TLS and Files​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
ssl_mode
DISABLED, PREFERRED, REQUIRED, VERIFY_CA, or VERIFY_IDENTITY
PREFERRED
Units: none
No; source connection establishmentName is uppercased. PREFERRED permits unencrypted fallback. REQUIRED requires encryption, not strict identity verification. VERIFY_CA checks the certificate trust chain; VERIFY_IDENTITY also checks identity. The UI offers only the first three; the last two are available through direct DSNs, not nonexistent form options.
ssl_ca
CA certificate file path
No file explicitly specified
Units: none
According to security policy; ssl_mode VERIFY_CA or VERIFY_IDENTITYPath belongs to the actual reading host and is read by the runtime identity. Not file contents or general @file interpolation. DISABLED, PREFERRED, and REQUIRED branches do not apply this parameter. Entering a path does not establish strict verification.
ssl_client_cert
Client certificate file path
No file explicitly specified
Units: none
When the source requires a client certificate; ssl_mode VERIFY_IDENTITYPrepare a matching certificate and private key according to source authentication requirements, and restrict access on the actual reading host. Other SSL mode branches do not apply this parameter. Uploading or saving a path does not replace TLS handshake verification.
ssl_client_key
Client private-key file path
No file explicitly specified
Units: none
When the source requires a client certificate; ssl_mode VERIFY_IDENTITYEnter the private-key path matching ssl_client_cert, not private-key contents or a passphrase. The file is on the actual reading host. Do not put private keys in ordinary diagnostic packages or expose complete authenticated DSNs in tickets.

28.3 Queries and Windows​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
sql
Source MySQL SQL query template
No default
Units: none
Yes; sampling and production readsExecuted by the source system. Include at least one paired set of start/end placeholders, such as ${start} and ${end}. One-sided or unbounded templates are unsupported. SQL determines comparison operators; WHERE is not added automatically. Datetime expressions expand to seconds and do not guarantee precise fractional-second boundary reads. URL-encode and shell-quote the complete DSN. Do not add quotation marks around time expressions.
live_sync_min_window
Duration from 1s through 24h, inclusive
10s
Units: duration with units; bare integers mean seconds
No; continuous phase after historical readsStarts the next window when the visible time range exceeds this threshold. 0 and values above 24h are rejected. Not task sleep time and does not rewrite interval. At an explicit end, the final fragment shorter than the minimum window is still handled according to the end condition.

28.4 Entry Point Differences and Verification​

Bare integers for shared window durations are parsed as seconds. For specific defaults and conditions, see the shared reference above; do not infer them from prefilled UI values. No source SQL template automatically adds time conditions. Verify TLS, source permissions, data writes, and recovery separately.

MySQL time_zone also sets the source connection session time zone. Omitting SQL modes retains the client's default request-to-append behavior; it is not an off switch.

29. Oracle Read Parameters​

The following named query keys belong in the Oracle source DSN for taosx run --from. There are 13 keys, not standalone CLI options. For seven shared query keys, see Shared Relational Query Parameters. The table below lists only source-specific options. It excludes shared performance, health, transformation, and target-write parameters. For full operations and initial UI values, see Oracle.

The address structure is oracle://USER:PASSWORD@host:port/SERVICE_NAME. Explicitly provide username, password, host, port, and source service identifier. Only the first address is used; multiple addresses are not a failover list. Keep source and target TDengine identities separate. Shell-quote the entire DSN and URL-encode reserved characters in SQL, passwords, paths, and time zone plus signs. Shell quoting does not replace URL encoding; plaintext credentials still enter process arguments.

29.1 Connection and Session​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
min_connections
32-bit unsigned integer
Read TAOSX_ORACLE_MIN_CONNECTIONS first; 5 if absent or parsing fails
Units: connections
Review against source connection quota; source connection pool establishmentExplicit DSN takes precedence over environment variables; invalid explicit values do not fall back. Effective minimum cannot exceed effective maximum. Even when setting only one, review environment variables and defaults together. Not read concurrency or windows per round. A client-parsable combination does not establish verified source capacity.
max_connections
32-bit unsigned integer
Read TAOSX_ORACLE_MAX_CONNECTIONS first; 20 if absent or parsing fails
Units: connections
Review against source connection quota; source connection pool establishmentExplicit DSN takes precedence over environment variables. Actual maximum cannot be lower than minimum. Limits pool size; increasing it does not guarantee faster reads. Check read concurrency, target batches, and Oracle quotas separately.
connection_timeout
Unsigned integer seconds, ultimately limited by the client's seconds range
Read TAOSX_ORACLE_TIMEOUT first; 20 if absent or parsing fails
Units: seconds
No; source pool idle connection recyclingExplicit DSN takes precedence over environment variables. Recycles idle connections in the pool, with recycling processed only on pool access. 0 disables this idle recycling. Despite the UI label Connection Timeout, this is not a timeout for connection establishment, pool acquisition, SQL execution, or sample requests. It cannot stop slow queries.

29.2 Queries and Windows​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
sql
Oracle SQL query template
No default
Units: none
Yes; sampling and production readsAt least one paired start/end set. Datetime expands to TO_DATE at second precision; do not add quotation marks. Scheduled mode accepts complete datetime, _no_tz, or _date pairs as cursors; a _time pair alone does not meet scheduled requirements. The template does not add WHERE; user SQL determines operators. Column aliases must match actual mappings. URL-encode SQL reserved characters in DSNs.
run_mode
continuous or scheduled_window; case-sensitive
continuous
Units: none
No; selects continuous reads or single-round scheduled-window pathcontinuous reads history, then queries visible windows continuously, ending at a configured historical endpoint. scheduled_window processes only a bounded number of safely visible windows per round. Scheduled mode requires whole-second start/end, end after start, and interval of at least one whole second. Safe boundary is current time minus delay, capped by end and truncated down to whole seconds. Unknown or empty values error. Returning from a round does not mean all source history is caught up. Cron and trigger periods are not this query key.
max_windows_per_run
Integer from 1 through 1000, inclusive
24
Units: windows per round
No; limits work per scheduled round; values validated in all modesThe round ends when its budget is reached; subsequent rounds continue the backlog. Not total windows, concurrency, or per-second throughput. A boundary advances only after window success and target confirmation. Failures retain unconfirmed ranges for later retries; business data still needs checking. Continuous mode does not use the budget, but invalid values still fail configuration.

29.3 Entry Point Differences and Verification​

Bare integers for shared window durations are parsed as seconds. For specific defaults and conditions, see the shared reference above; do not infer them from prefilled UI values. No source SQL template automatically adds time conditions. Verify TLS, source permissions, data writes, and recovery separately.

Oracle sets the source connection session time zone. Continuous mode uses a fixed 10-second minimum real-time window, with no live_sync_min_window query key. Scheduled mode additionally requires whole-second start/end, a whole-second window of at least 1 second, end after start, and paired datetime or date placeholders. A time-only pair is not accepted as a scheduled cursor.

run_mode=scheduled_window selects only a single round of window reads. It configures neither Cron nor a period in the source DSN and does not automatically retrigger one CLI invocation. Configure task schedules in the taosExplorer entry point described in the Oracle guide. Standalone CLI has no persistent service-task identity and cannot therefore promise checkpoint retention across invocations.

30. PostgreSQL Read Parameters​

The following named query keys belong in the PostgreSQL source DSN for taosx run --from. There are 14 keys, not standalone CLI options. For seven shared query keys, see Shared Relational Query Parameters. The table below lists only source-specific options. It excludes shared performance, health, transformation, and target-write parameters. For full operations and initial UI values, see PostgreSQL.

The address structure is postgres://USER:PASSWORD@host:port/DATABASE. Explicitly provide username, password, host, port, and source database. Only the first address is used; multiple addresses are not a failover list. Keep source and target TDengine identities separate. Shell-quote the entire DSN and URL-encode reserved characters in SQL, passwords, paths, and time zone plus signs. Shell quoting does not replace URL encoding; plaintext credentials still enter process arguments.

30.1 Connection and Session​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
application_name
String
Empty string
Units: none
No; PostgreSQL connection establishmentLowercased and used as the connection application name. Not a source database, schema, or target task name. When identifying connections in source monitoring, check the lowercase name actually saved.

30.2 TLS and Files​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
ssl_mode
DISABLE, ALLOW, PREFER, REQUIRE, VERIFY_CA, or VERIFY_FULL
PREFER
Units: none
No; source connection establishmentUppercased. Neither DISABLE nor ALLOW attempts TLS; ALLOW does not automatically switch to TLS after plaintext failure. PREFER prefers TLS but allows plaintext fallback. REQUIRE requires TLS, not strict identity verification. VERIFY_CA checks the certificate trust chain; VERIFY_FULL also checks identity. The UI offers only DISABLE, ALLOW, PREFER, and REQUIRE. Use a direct DSN for the last two verification modes. Do not apply MySQL mode spellings.
ssl_ca
CA certificate file path
No file explicitly specified
Units: none
According to security policy; ssl_mode VERIFY_CA or VERIFY_FULLRoot certificate file readable by the runtime identity on the actual reading host, not file contents. The other four branches do not use it. Entering a path does not establish enabled trust-chain verification.
ssl_client_cert
Client certificate file path
No file explicitly specified
Units: none
When the source requires a client certificate; ssl_mode VERIFY_FULLPair with a client private key. Path belongs to the actual reading host; other mode branches do not use it. Being able to enter or upload in the UI does not replace source authentication and TLS handshake verification.
ssl_client_key
Client private-key file path
No file explicitly specified
Units: none
When the source requires a client certificate; ssl_mode VERIFY_FULLEnter the private-key path matching ssl_client_cert, not a passphrase or file contents. Restrict reading identities, exclude private keys from ordinary diagnostic packages, and redact complete authenticated DSNs.

30.3 Queries and Windows​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
sql
PostgreSQL SQL query template
No default
Units: none
Yes; sampling and production readsAt least one paired start/end set. ${start}/${end} expand to datetime literals with offsets; the _no_tz pair has none. Choose according to source column types, without extra quotation marks. Both datetime pairs expand to seconds. SQL determines operators; WHERE is not added automatically. URL-encode reserved characters in SQL and time zones.
live_sync_min_window
Duration from 1s through 24h, inclusive
10s
Units: duration with units; bare integers mean seconds
No; continuous phase after historical readsRead the next window when the visible range exceeds the threshold. At an explicit end, a final fragment below the threshold is allowed. 0 or values above 24h are rejected. Not a query timeout, sleep, or schedule. Do not assume SQL Server has the same configurable option.

30.4 Entry Point Differences and Verification​

Bare integers for shared window durations are parsed as seconds. For specific defaults and conditions, see the shared reference above; do not infer them from prefilled UI values. No source SQL template automatically adds time conditions. Verify TLS, source permissions, data writes, and recovery separately.

PostgreSQL time_zone controls window and template expansion and does not automatically set source session TimeZone. Match literals with and without offsets to source column types. Changing the task time zone is not a change to the database session.

31. SQL Server Read Parameters​

The following named query keys belong in the SQL Server source DSN for taosx run --from. There are 13 keys, not standalone CLI options. For seven shared query keys, see Shared Relational Query Parameters. The table below lists only source-specific options. It excludes shared performance, health, transformation, and target-write parameters. For full operations and initial UI values, see SQL Server.

The address structure is mssql://USER:PASSWORD@host:port/DATABASE. Explicitly provide username, password, host, port, and source database. Only the first address is used; multiple addresses are not a failover list. Source and target TDengine identities are separate. Shell-quote the entire DSN, and URL-encode reserved characters in SQL, passwords, paths, and time zone plus signs. Shell quoting does not replace URL encoding or keep plaintext credentials out of process arguments.

31.1 Connection and Session​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
instance_name
Instance name string
Empty string
Units: none
Confirm against source topology; SQL Server connection establishmentPassed to the connection client. Does not replace database name or host/port. This entry point still establishes TCP connections using explicit host and port. Entering an instance name does not enable SQL Browser discovery; obtain the named instance's actual listener port from the source administrator.
application_name
String
Empty string
Units: none
No; SQL Server connection establishmentPassed to the client as a case-sensitive connection application name. Not the connector task name or source database. Do not apply PostgreSQL's lowercasing rule for this field.

31.2 TLS and Files​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
encryption
Off, On, NotSupported, or Required; case-sensitive
NotSupported; initial UI value Off
Units: none
Explicitly review in production; connection encryption negotiationOff requests encryption only for login; On requests encryption throughout; NotSupported indicates no encryption support; Required requires encryption throughout and fails if unavailable. Final behavior also depends on server policy. Unknown strings fall back to NotSupported instead of errors. Lowercase required or misspellings do not establish enabled encryption. Verify certificate trust separately.
trust_cert
String-evaluated Boolean switch
false
Units: none
Set explicitly according to source security requirements; controls custom CA or unconditional trust settingsAfter lowercasing, only true enables it. All other values, including 1 and misspellings, mean false rather than consistently raising errors. true without trust_cert_ca unconditionally trusts the server certificate; do not substitute this for production identity verification. true with a CA uses the custom CA path. false does not apply even a supplied CA.
trust_cert_ca
CA certificate file path
Not supplied
Units: none
For custom CA verification; trust_cert=truePath belongs to the actual reading host and must be readable by the runtime identity. It is not a client certificate or private key. Check together with trust_cert conditions; saving a filename does not establish server identity verification.

31.3 Queries and Windows​

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
sql
SQL Server SQL query template
No default
Units: none
Yes; sampling and production readsInclude at least one paired set of start/end placeholders. ${start}/${end} include offsets; the _no_tz pair does not. Select according to actual column types, without extra quotation marks. Datetime templates expand to seconds. Return only one result set with unique, nonempty aliases for all columns. Multi-result scripts or duplicate column names are not usable query templates.

31.4 Entry Point Differences and Verification​

Bare integers for shared window durations are parsed as seconds. For specific defaults and conditions, see the shared reference above; do not infer them from prefilled UI values. No source SQL template automatically adds time conditions. Verify TLS, source permissions, data writes, and recovery separately.

SQL Server continuous reads use a fixed 10-second minimum window and have no live_sync_min_window query key. time_zone does not automatically set the source session time zone. Verify columns with and without time zones according to their types. Encryption configuration is case-sensitive; unknown values fall back to NotSupported. Acceptance of a spelling does not prove encryption is enabled.

32. Shared Relational Query Parameters​

This table applies to the MySQL, Oracle, PostgreSQL, and SQL Server read directions on this page. Shared definitions of the following seven parameters are maintained only here. For source-specific connection, TLS, SQL expansion, and real-time options, see each source's reference. Do not assume same-named settings in other databases take effect identically.

Parameter and typeWhen unset and unitsRequired and effective conditionsUsage
subtable_fields
Optional source SQL query template
Source reads not split by this query
Units: none
No; enumerates source read objects using query resultsSQL that retrieves grouping-field combinations, not comma-separated column names or a target child table template. Typically use DISTINCT to query combinations, then reference corresponding field placeholders in data SQL. Date placeholders expand by window. Check queries and permissions separately at the source.
start
RFC 3339 time with Z or offset
No default
Units: instant
Yes; starting window for sampling and production readsFor example 2024-01-01T00:00:00+08:00; encode the plus sign as %2B in the DSN. start/end are absolute instants unaffected by time_zone. Convert to the same time basis before calculating windows. Omission does not mean reading from the earliest data or automatically checking historical changes before an existing cursor. Check SQL template output precision separately.
end
Optional RFC 3339 time
No final endpoint; continue querying according to run mode
Units: instant
Provide explicitly for bounded migration; limits the final task read windowAn empty string is not omission. For future endpoints, advance through visible windows until reaching it. SQL operators determine whether the end is included. See source run modes for continuous or round-based execution; Oracle scheduled mode has additional whole-second and boundary restrictions. Start with a committed past range; an endpoint not yet reached does not mean a stalled task.
time_zone
Fixed-offset string
Offset from start
Units: time zone offset
No; window calculation and date/time template expansionAccepts only fixed offsets such as +08:00 or +0800, or UTC or Z; URL-encode plus signs. IANA region names are rejected and offsets do not follow daylight saving time. Invalid values fail at task start or preview. There is no separate UI field; the default comes from the page offset when the start is set. See the time rules below for sessions, database offset limits, and PostgreSQL/SQL Server template-dependent validation.
interval
Positive duration
1d
Units: duration with units; bare integers mean seconds
No; divides historical and continuous read windowsFor example 1m or 1h; 0 is rejected. Not a source row count, task sleep, or schedule. Windows never cross midnight in the task's fixed time zone. Intervals longer than 1 day behave as 1 day; first and last windows can be shorter.
delay
Nonnegative duration
5s for direct DSN; see each source for initial UI value
Units: duration with units; bare integers mean seconds
No; visible boundary at historical-to-real-time transition and during continuous readsThe safe watermark is current time minus delay. In continuous synchronization mode, if the end is absent or in the future, taosX checks about once per second after history reaches that watermark and reads when the pending range exceeds the minimum real-time window. Scheduled mode follows its schedule rather than this polling frequency. MySQL/PostgreSQL default to 10 seconds; Oracle/SQL Server use a fixed 10 seconds. 0 adds no delay. Not a query-request timeout, and does not guarantee lookback for late commits, changes, or deletions in windows already passed.
sample_data_limit
32-bit unsigned integer
5
Units: sample rows
No; source sample retrievalLimits only returned samples, not total production migration rows. Not equivalent to server SQL LIMIT or a query-cost cap. 0 is not a full read. Use a small positive value initially. If no samples are returned, check windows, SQL, permissions, and committed data.

32.1 Units, Time, and Verification​

Bare integer durations in these read paths are parsed as seconds. Explicit units such as 1m and 5s are recommended. Do not apply Kafka publishing's millisecond rule for bare integers. SQL templates do not automatically add time conditions. Use a complete paired start/end set with correct comparison operators. Datetime templates expand to seconds; RFC 3339 accepting fractional seconds does not establish precise subsecond boundary reads. For full placeholder definitions, source time types, and start-inclusive/end-exclusive examples, see Common Relational Database Rules. For the task time zone source, edit-preservation rules, and database-specific offset limits, see Time and Time Zone.

Verify a small committed window first. Check source and target times, devices, tags, nulls, business values, and unique primary-key counts individually. Sample limits are neither source query costs nor production migration totals. Continuous querying is not CDC capturing all old-record updates and deletions. For recovery, retain the original task and state and check interrupted windows. See Restart, Checkpoints, and Store-and-Forward.

33. PI connection and runtime parameters​

The following 26 names cover only connection and runtime controls, including aliases differing in case. They are not the complete PI parameters or CLI flags of the same names. Check model files, model selection, filter prefixes, and all discovery settings separately. For connections, dependencies, procedures, and screenshots, see PI.

The first hostname in the source address specifies Data Archive, the path specifies the required AF database, and PISystemName separately specifies the AF system. This connection configuration does not use an address port to specify the PI connection port. Accounts use the query keys in this table, not the DSN username/password segment. Quote the complete DSN for the shell, and still URL-encode credentials and paths.

Data Pipe instance counts are not backfill concurrency. Batches and waits are neither end-to-end latency nor strict source read-rate limits. Check form initial values, direct DSN defaults, and plugin defaults separately. In particular, do not interpret compensation parameters containing Days as integer days.

33.1 Connection and identity​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
PISystemName
String; key is case-sensitive, and leading/trailing value whitespace is not trimmed
Unset; no AF system connection is established
Unit: none
A correct system name is required for AF data; establishes the AF system connection for scanning or collecting AF objectsSpecifies the AF system, not the PI Data Archive host or AF database name. The Data Archive host comes from the DSN's first address, and the AF database from its path; query parameters of the same names cannot replace these positions. An absent or empty value does not initialize an AF system connection. Names are not trimmed automatically. Enter an exact name and verify visible Archive and AF objects separately using the actual runtime account.
PIServerUser
String; an empty string is treated as unset, without trimming leading/trailing whitespace
Unset; Windows integrated authentication uses the plugin process identity
Unit: none
Supply with PIServerPassword for explicit Windows credentials; PI Data Archive and AF system connectionsExplicit Windows credentials are used only when username and password are both nonempty. Either field absent or empty falls back to the plugin process identity rather than rejecting an incomplete account. This is not a PI internal or TDengine account, and does not use the DSN userinfo username. Service, agent, and interactive process identities may differ. Check actual identity and read permissions; a successful connection alone does not prove object permissions or that credentials took effect.
PIServerPassword
Password string; an empty string is treated as unset, without trimming leading/trailing whitespace
Unset; together with username, determines whether integrated authentication is used
Unit: none
Supply with PIServerUser for explicit Windows credentials; PI Data Archive and AF system connectionsUsed with PIServerUser for explicit Windows authentication. A password alone or username alone falls back to process identity. Encode reserved DSN characters correctly; do not substitute the DSN userinfo password for this key. Plugin configuration and commands may contain credentials, so restrict visibility. Log redaction does not replace access control for command lines, configuration files, and collection hosts.
PIServerDomain
String; an empty string is treated as unset, without trimming leading/trailing whitespace
Unset; no explicit domain
Unit: none
Set according to explicit Windows account authentication requirements; credential construction when PIServerUser and PIServerPassword are both nonemptyPassed with the explicit username and password to the Archive and AF Windows credential paths. Without complete credentials, it cannot change the process identity. This is not a server address and does not grant source permissions. Verify actual domain authentication using the corresponding distribution, runtime identity, and source authorization. Successful parsing or connection checks do not establish completed cross-domain authentication.

33.2 Batches and waits​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
PIDataPipesInstances
32-bit unsigned integer; the plugin receives a signed integer, so use a representable positive value
1; applied by the plugin when unset
Unit: Data Archive Data Pipe count
Optional; real-time single-column Point subscriptionsControls Data Pipes for Archive real-time subscriptions, not historical query concurrency, and does not guarantee throughput. The parser does not exclude 0, but Point allocation depends on a nonzero pipe count; do not use 0. The parser's unsigned range does not establish plugin support for that entire range. First verify subscriptions, continuing new values, and resource usage with a small positive count, then scale. This key does not increase bounded backfill read concurrency.
AFDataPipesInstances
32-bit unsigned integer; the plugin receives a signed integer, so use a representable positive value
50; applied by the plugin when unset
Unit: AF Data Pipe count
Optional; real-time AF attribute subscriptionsControls Data Pipes for AF real-time attribute subscriptions, not backfill threads. The parser accepts 0, but that does not produce a usable normal subscription; 0 means neither automatic selection nor unlimited operation. Large integers are also constrained by plugin signed integers and resources. Successful connection and scanning do not prove production subscriptions took effect. Check new values for the corresponding attributes.
MaxWaitLen
Integer, 1..10000 inclusive; leading/trailing whitespace is not trimmed
10000 when both this and batch_size are unset; applied by the plugin
Unit: buffered-record count threshold
Optional; IPC data sent from the PI plugin to taosXTakes precedence over batch_size. The alias is read only if this key is absent; empty or invalid values error without fallback. Sending triggers when buffer length is strictly greater than the threshold, so it is not a strict rows-per-batch cap. Remaining records are also sent when backfill ends. This is not source query result count, historical concurrency, or durable queue capacity. Form values do not represent direct DSN defaults.
batch_size
Integer alias of MaxWaitLen, 1..10000 inclusive
No independent default; 10000 when both keys are unset
Unit: buffered-record count threshold
Optional; only when MaxWaitLen is unsetUses only PI MaxWaitLen semantics. Do not apply query batch or output batch-cap semantics from other sources. Ignored when MaxWaitLen exists; do not configure different values with both keys. When selected, empty strings, whitespace, or nonintegers error. See MaxWaitLen for actual send triggers and remaining-record handling.
UpdateInterval
Integer, 100..60000 inclusive; leading/trailing whitespace is not trimmed
10 milliseconds when both this and batch_timeout are unset; the plugin default differs from the minimum explicit value
Unit: milliseconds
Optional; real-time event retrieval, waits, and send schedulingTakes precedence over batch_timeout. Empty or invalid values error without fallback. Used for waits in the event-processing loop, not PI archive sampling periods or maximum whole-batch retention, and does not guarantee target write latency. Explicit values start at 100 milliseconds, while the plugin uses 10 milliseconds when unset. Do not describe UI initial values or explicit limits as one universal default. Verify both low traffic and continuing new values.
batch_timeout
Integer-second alias; normal valid range 1..60 inclusive
No independent default; follows UpdateInterval's 10-millisecond default when both keys are unset
Unit: seconds, multiplied by 1000 when selected to convert to milliseconds
Optional; only when UpdateInterval is unsetDoes not accept duration forms such as 1s, 1.5, or whitespace. Units are seconds, so do not copy UpdateInterval's millisecond values directly. Despite its name, it is an event scheduling wait, not maximum batching time. Use only integers 1..60. Do not configure long-period scheduling with huge values or rely on invalid large values always being safely rejected.

33.3 Backfill and compensation​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
MaxBackfillRangeDays
Nonnegative duration; explicitly use s, m, h, or d units and a small finite range
The plugin uses 1 minute when unset; explicit 0 disables this finite compensation
Unit: bare numbers mean seconds; after conversion the plugin uses minutes, not days
Optional; finite historical compensation during real-time task initialization and some reconnection pathsSubsecond portions are first truncated, then whole seconds are rounded up to minutes. For example, 500ms yields 0 minutes, 1s yields 1 minute, and 60.5s still yields 1 minute. The window looks back from execution time, not from the last target time, and is not unlimited historical backfill. Different new-object paths do not all guarantee compensation. Use explicit start/end times for bounded backfill. Large-duration conversion has integer range limits; not every parseable duration is safely effective. 0 is not a master switch for all historical operations.
BackfillStartTime
Production backfill uses a complete instant with Z or an explicit offset; exact lowercase auto is also parseable
Unset; production pibackfill has no usable default start
Unit: instant
Explicitly required with BackfillEndTime for production pibackfill; bounded historical backfill; production real-time compensation does not derive its window from this keyProduction backfill requires start < end and end no later than startup validation time. Times are converted to UTC according to their corresponding instants. Production task configuration does not trim whitespace; accepted scan-entry forms do not establish production behavior. auto sets FromTDengineLastTime to true and clears the explicit start, but production backfill then rejects the missing start. Do not rely on automatic retrieval of the last target time or automatic resumption. Enter explicit start/end times and check the actual range.
BackfillEndTime
Production backfill uses a complete instant with Z or an explicit offset; exact lowercase auto is also parseable
Unset; production pibackfill has no usable default end
Unit: instant
Explicitly required with BackfillStartTime for production pibackfill; bounded historical backfill; production real-time compensation does not derive its window from this keyThe production end must be later than the start and no later than startup validation time. Whitespace is not trimmed. auto sets ToTDengineFirstTime to true and clears the explicit end, but cannot pass production backfill's explicit-time validation. Both automatic flags being true is also rejected during configuration. This is not a real-time end continuously following the current time. Completion logs do not guarantee nonoverlapping adjacent windows or complete source history recovery.
FromTDengineLastTime
Lowercase true or false, without whitespace trimming; only a parsed and forwarded automatic-start flag
false; forced to true by BackfillStartTime=auto
Unit: none
Optional; not a reliable automatic production task position; configuration parsing; the production collection entry point does not query the last target time using this flagProduction collection tasks do not automatically query the last target record time from this flag. Acceptance does not establish automatic resumption. pibackfill still requires complete explicit start/end times. Its final value and ToTDengineFirstTime cannot both be true. BackfillStartTime=auto takes precedence, but does not remove the explicit-start requirement. Check actual backfill range and target results.
ToTDengineFirstTime
Lowercase true or false, without whitespace trimming; only a parsed and forwarded automatic-end flag
false; forced to true by BackfillEndTime=auto
Unit: none
Optional; not a reliable automatic production task position; configuration parsing; the production collection entry point does not query the earliest target time using this flagProduction collection tasks do not automatically query the earliest target record time from this flag. Acceptance does not establish an automatic end, and cannot remove the BackfillEndTime requirement. Its final value and FromTDengineLastTime cannot both be true. BackfillEndTime=auto takes precedence, but does not remove the explicit-end requirement. Verify production backfill separately using complete explicit start/end times.

33.4 Scope and model maintenance​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
sync_add_element
Lowercase true or false, without whitespace trimming
true on the traditional real-time AF template observation path; forced false when auto_sync_new_points=true
Unit: none
Optional; real-time AF template element-change observation; not consumed as a backfill parameterControls element addition events on the traditional observation path. false does not limit enumeration of the whole template during initialization and is not a master switch for all object changes; element refresh and modification have separate branches. Disabling this key or automatic discovery cannot narrow initial collection scope. Explicit true together with auto_sync_new_points=true errors. First check actual scope using matching and excluded template objects, then enable maintenance.
sync_delete_element
Lowercase true or false, without whitespace trimming
true on the traditional real-time AF template observation path; forced false when auto_sync_new_points=true
Unit: none
Optional; real-time AF template element removal events; not consumed as a backfill parameterTraditional element-removal handling may delete target child tables and their history, not merely stop source subscriptions. Object resolution and event reachability affect execution, so synchronization of every source deletion is not guaranteed. Explicit true together with auto_sync_new_points=true errors. Disabling it does not guarantee that every target deletion or AF recalculation is prevented. Verify in isolation before production and preserve target history.
sync_update_attribute
Lowercase true or false, without whitespace trimming
true; applied by the plugin
Unit: none
Optional; updates of attributes mapped to target tags in real-time AF multi-column events; not consumed as a backfill parameterControls whether corresponding AF tag-update events change target tag values. Not an automatic adaptation switch for arbitrary attribute definitions, data types, or supertable schema changes. Single-column Point events do not use this AF maintenance decision. Disabling it does not stop initial modeling or all data updates. Check tags and time-series values separately; one working does not prove the other works.
sync_update_data
Lowercase true or false, without whitespace trimming
true; applied by the plugin
Unit: none
Optional; Update actions in real-time AF multi-column time-series events; not consumed as a backfill parameterfalse skips corresponding AF Update actions but does not prevent Insert or control single-column event writes. It does not prohibit every historical overwrite. Interval deletion, AF recalculation, and backfill have other branches; this switch alone does not guarantee those operations leave the target unchanged. Verify new values, old-value modifications, and recalculation separately on isolated objects. A static code branch does not establish that site events reach it.
sync_delete_data
Lowercase true or false, without whitespace trimming
true; applied by the plugin
Unit: none
Optional; single-timestamp Delete actions in real-time AF multi-column mode; not consumed as a backfill parameterCorresponding single-point deletion writes NULL to the target column at that time; it does not always delete the whole row. false skips only this branch, not all deletion, single-column writes, or recalculation. Code has separate interval deletion and subsequent reread handling, but their SDK event actions and site reachability require independent confirmation. Verify single-point deletion, interval deletion, and AF recalculation in isolation. Disabling this switch does not guarantee unchanged target history.
auto_sync_new_points
Lowercase true or false, without whitespace trimming
false
Unit: none
Optional; rule replay, discovery, and runtime model updates in production real-time tasks; prohibited for pibackfillDiscovers and ingests new objects through replayable scan rules. When enabled, sync_add_element and sync_delete_element must be unset or false and are forced false for the plugin. It cannot coexist with traditional addition/deletion synchronization. Disabling it does not limit all-instance template initialization. Editing the downloaded list does not replace rule constraints. Background scan cadence does not guarantee ingestion deadlines or automatic handling of source deletion, type changes, or all history of new objects. Verify matching and nonmatching objects separately.
ignore_template
Lowercase true or false, without whitespace trimming
false
Unit: none
Optional; AF multi-column element/path scan generation and the matching production independent-element collection pathtrue models matching elements independently without expanding through associated templates. Template filtering disallows this setting. Parameter existence does not prove a dedicated UI control exists. Scan generation and production collection must agree. Downloaded template-free rows alone do not prove correct production operation. The default template path enumerates every template instance; initial element/path matches or disabled automatic addition cannot cap initial scope. Verify at least one matching object and one object that must be excluded.
path_filter_case_sensitive
Lowercase true or false, without whitespace trimming
false
Unit: none
Optional; AF path-filter scan and automatic discovery matchingControls only case sensitivity of path-mode matching, not point, element-name, or template matching rules, or target column naming. Scans match complete relative paths; check leaf objects. Production configuration does not use this key to trim generated objects or template instances again. Successful case filtering during scanning does not establish a restricted template scope.

33.5 Logs and persistence​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
LogLevel
trace, debug, info, warn, or error; case-sensitive, with value whitespace trimmed
When both keys are unset, uses accompanying plugin log configuration, INFO
Unit: none
Optional; PI plugin log initializationTakes precedence over log_level. An empty or invalid value errors instead of falling back. Controls the accompanying PI plugin's log level, not the global main taosX log level, and does not configure paths, retention, or rotation. Before raising it for troubleshooting, assess output volume and sensitive object information. Restore an appropriate level afterward. Log level does not replace verification of objects, values, and time ranges.
log_level
String alias of LogLevel; lowercase trace, debug, info, warn, or error
No independent default; when both keys are unset, uses plugin log configuration INFO
Unit: none
Optional; only when LogLevel is unsetUses PI plugin log-level semantics and validates after trimming whitespace. Ignored when LogLevel exists. Do not apply other sources' log file locations, raw retention, or batch-output semantics, or configure different levels through both aliases.
persist_data_enable
Lowercase true or false, without whitespace trimming
false
Unit: none
Optional; stable task identity must be supplied by the runtime entry point when enabled; Lush IPC durable queue and strict acknowledgment path for production pi or pibackfilltrue enables local durable buffering and receive acknowledgments for PI collected data, with buffers belonging to task identities. The runtime entry point must supply a stable task identity; missing identity errors. Manually adding identity or checkpoint query parameters is not a substitute. Parameter acceptance does not establish durable recovery for arbitrary standalone CLI commands. A receive acknowledgment does not mean every target record was written successfully or guarantee permanent source event retention, cross-node recovery, or exactly-once operation. Check failure scope, replay, and target results separately.

33.6 Scope and recovery verification​

Matching one element with element or path does not guarantee that a production multi-column task collects only that element. If templates are accepted, review all instances. If only specified elements are permitted, first confirm that model generation and production configuration use identical independent-element settings. For procedures and comparison-object verification, see Multi-column templates and collection scope.

Explicit historical backfill requires start/end times with time zones. Do not treat auto or the two automatic-boundary flags as resumption guarantees for current production tasks. Persistence requires stable task identity. Retain the original task and original execution node's state. Enabling a switch does not establish recovery after node changes, for uncollected source events, or for historical modifications. Historical maintenance switches are not master switches for all historical changes. Use PI historical backfill and real-time continuation to verify initial scope, new values, historical boundaries, and maintenance events separately.

34. PI model and filter parameters​

The following 19 names include the prefixes and aliases actually listed, not the complete PI parameters. Connection and runtime parameters are listed separately. For CSV blocks, variables, and mapping procedures, see PI model configuration files.

single-column. and multi-column. prefixes do not automatically isolate settings by the current model. Each group selects the first existing value in its defined order, without intersecting groups of conditions. Empty values may also hide later, narrower settings. Narrow the scope explicitly before the first download and inspect matched objects.

34.1 Models and scans​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
model
single-column or multi-column; case-sensitive, without whitespace trimming
single-column for scans when both keys are unset; no default for production collection or model-file validation
Unit: none
This key or only-choose-one$ is required for production collection and model-file validation; selects default-model scanning and production model-file parsingTakes precedence over only-choose-one$. An existing but empty or invalid value does not fall back to the alias. single-column creates child tables by Point; multi-column organizes columns by AF element. Confirm AF connections and system settings for multi-column mode separately. Scanning supports only non-AF single-column, AF single-column, and AF multi-column combinations. Other combinations are unsupported and are not automatically corrected. Omitting the model for a scan may select single-column mode; this does not mean a production task can start without it. File content must match the selected mode.
only-choose-one$
String alias of model; single-column or multi-column, case-sensitive, without whitespace trimming
No independent default; scans use single-column when both keys are unset, but production collection and model-file validation still require a model
Unit: none
Required for production collection and model-file validation when model is unset; selects scan and production model modes when model is unsetThe trailing $ is part of the key name. Do not omit it or treat it as a template variable to expand. Ignored when model exists; do not configure different models through both keys. Empty strings are invalid model values. Scan defaults do not establish production defaults. This is a DSN query key, not a standalone CLI flag. Quote the complete DSN correctly for the shell.
system_configuration
System selection string, case-sensitive, without whitespace trimming
Unset, empty, or other nonmatching values are treated as non-AF scanning
Unit: none
AF single-column or multi-column scans require the exact AF system-selection value; selects Archive or AF scanning for default model downloads and automatic discoveryOnly the exact value PI Data Archive and Asset Framework (AF) Server selects AF scanning. Spelling, case, or whitespace errors are not corrected automatically and are not guaranteed to be rejected as invalid enumeration values. Non-AF supports only single-column scanning; changing model to multi-column alone is insufficient. This key is not an AF system name and cannot replace PISystemName or the AF database path. Production model-file parsing is determined by model selection. Correct system selection does not prove an available actual AF connection.

34.2 Object filtering​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
filter_point
Point name pattern string, without whitespace trimming
Unset; Archive single-column uses * if no final Point condition remains
Unit: none
Optional; explicitly limit initial ingestion to an approved small scope; Archive single-column default-model scanning and replayable discovery rulesSelects by Point name with name wildcards, not paths, regular expressions, or ingested-record expressions. A generic filter value with kind point overrides this key. A selected empty string expands to *, while whitespace-only values are not cleared automatically. AF scans do not use this key instead of element, path, or template selection. Fixed production collection depends on Point mappings in the model; adding this key does not trim an existing file again. Review saved rules before enabling automatic addition too.
filter_element
AF element name or parent-path-plus-name pattern string, without whitespace trimming
Unset; if selected and empty, scans elements with *
Unit: none
Optional; explicitly limit initial ingestion to an approved small scope; AF single-column/multi-column default-model scanning and replayable discovery rulesDirect AF conditions select one of element, path, and template in presence order, not an intersection. Even an empty element hides a later, narrower path. A generic value with kind element overrides this key. Without backslashes, searches by name. With backslashes, the final separator distinguishes exact parent path and name pattern; path-scoped results contain only leaf elements. A multi-column match on a templated element may still collect every template instance. Verify production scope using the model and independent-element settings together.
filter_path
Wildcard pattern for the complete path relative to the AF database root, without whitespace trimming
Unset; if selected and empty, scans all leaf elements with *
Unit: none
Optional; explicitly limit initial ingestion to an approved small scope; AF scans select paths when no element condition exists; discovery replays corresponding rulesPaths exclude AF Server and database prefixes. * can span levels, ? matches one character, and only leaf elements are returned. Trailing backslashes remain part of the pattern rather than using element's omitted-name expansion. element takes precedence over this key, which takes precedence over template. A generic path value can override this key without removing an existing element condition. A dedicated path option controls case. Match counts cannot replace scope verification of multi-column template initialization and the actual production target list.
filter_template
AF template name pattern string, without whitespace trimming
Unset; AF defaults to template scanning with * when no other valid selection exists
Unit: none
Optional; explicitly limit initial ingestion to an approved small scope; AF default-model scanning and discovery without higher-priority element or path conditionsSelects template names, not an element list within a template. A generic value with kind template overrides this key. Templates may have multiple instances; review every approved instance and attribute. Fewer mapping rows in a download do not limit production initialization scope. Multi-column template filtering cannot be combined with ignore_template=true. Fixed production tasks use model templates and mappings; this key does not filter out other template instances again.

34.3 Filter aliases​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
filter_value
Generic name or path pattern string, without whitespace trimming
Unset; with no final condition, Archive selects all Points and AF usually all templates
Unit: none
Optional; explicitly set initial scope rather than relying on defaults; generic filter value for default-model scanning and automatic discoverySelects the first existing value from filter_value, single-column.filter_value, and multi-column.filter_value. Prefixes are not isolated automatically by the current model. The selected kind determines which direct filter is overridden, but AF still selects one condition in element, path, template order rather than intersecting them all. An empty string also overrides the corresponding condition and eventually expands to *. Omitting empty values in the form does not establish a safe empty result. Check saved kind, rules, and actual objects. Fixed collection does not trim the model again from this key.
single-column.filter_value
Prefixed string alias of filter_value, without whitespace trimming
No independent default; final default scope depends on scan mode and effective filter kind
Unit: none
Optional; selected before multi-column.filter_value when filter_value is unsetThe single-column name does not restrict it to single-column models. Even with multi-column selected, this key may be chosen when the unprefixed value is absent. An empty string does not fall back to the multi-column-prefixed value and may become full-scope *. Filter kind is selected through a separate precedence group and need not match this prefix. Do not retain conflicting value sets or treat it as an extra production-model scope restriction.
multi-column.filter_value
Prefixed string alias of filter_value, without whitespace trimming
No independent default; final default scope depends on scan mode and effective filter kind
Unit: none
Optional; when both filter_value and single-column.filter_value are unsetSelecting multi-column does not raise its priority. Earlier empty values or other-model-prefixed values still hide it. The selected value uses an independently selected filter kind, not necessarily the multi-column-prefixed kind, and does not intersect conditions. An empty string may eventually expand to *. Fixed production collection still requires review of the actual model and template scope.
filter_value_unit
Filter-kind string: exact lowercase point, element, path, or template, without whitespace trimming
If all kind keys are unset and a generic value exists, Archive defaults to point and AF to template; AF with no condition usually falls back to all templates
Unit: none; not engineering or time units
Optional; explicitly choose a kind suitable for the current system when using generic values; selects the object kind overridden by the generic filter value and participates in AF scope fallback without a valueThe six candidates are filter_value_unit, single-column.filter_value_unit, multi-column.filter_value_unit, filter_value_type, single-column.filter_value_type, and multi-column.filter_value_type, in that order. The first existing value wins without automatic pairing to the current model or selected value prefix. Whitespace, wrong case, or unknown kinds are not guaranteed to error; they may ignore the generic value and fall back to other conditions or all templates. With only a kind and no value, element or path still selects the corresponding full-scope *. An omitted value does not mean no collection.
single-column.filter_value_unit
Filter-kind alias; exact lowercase point, element, path, or template, without whitespace trimming
No independent default; follows filter_value_unit mode defaults and scope fallback
Unit: none; not engineering units
Optional; when filter_value_unit is unset, before remaining prefixed unit and all type namesThe single-column prefix does not restrict it to single-column mode or require a matching single-column-prefixed value. It takes precedence over multi-column.filter_value_unit and all three filter_value_type names. Empty or invalid values do not fall back to them. Kind must match the actual system; AF cannot use point instead of element filtering. Misconfiguration may expand scope. Preview or download a small model again to confirm.
multi-column.filter_value_unit
Filter-kind alias; exact lowercase point, element, path, or template, without whitespace trimming
No independent default; follows filter_value_unit mode defaults and scope fallback
Unit: none; not engineering units
Optional; when both preceding unit names are unset, still before all type namesSingle-column tasks can select it, and multi-column tasks do not necessarily prefer it. Value and kind precedence are independent. Prefixes cannot prevent leftover configuration for another model from affecting scans. Empty strings, wrong case, or unknown values do not automatically switch to type aliases or guarantee safe rejection. Without a value, element or path may form a full-scope scan.
filter_value_type
Filter-kind alias; exact lowercase point, element, path, or template, without whitespace trimming
No independent default; follows filter_value_unit mode defaults and scope fallback
Unit: none; not PI or target data types
Optional; when all three filter_value_unit names are unsettype means selection by Point, element, path, or template, not data types such as DOUBLE or FLOAT or column mapping conversion. Any unit name takes precedence, including values prefixed for other models. Even an empty value prevents alias fallback. Do not mix kind groups. Incorrect or missing effective conditions may lead to full-scope scanning; inspect actual matched objects.
single-column.filter_value_type
Prefixed filter-kind alias; exact lowercase point, element, path, or template, without whitespace trimming
No independent default; follows filter_value_unit mode defaults and scope fallback
Unit: none; not data types
Optional; when all three unit names and filter_value_type are unsetSelected only by fixed precedence, not enabled or disabled automatically by the current model. The single-column prefix is not an isolation boundary for other-model configuration. It only specifies filter kind, not source values, column types, or model-file structure. Empty and unknown values do not guarantee an error or fallback to the multi-column prefix. Check effective rules to avoid full-scope scans.
multi-column.filter_value_type
Prefixed filter-kind alias; exact lowercase point, element, path, or template, without whitespace trimming
No independent default; follows filter_value_unit mode defaults and scope fallback
Unit: none; not data types
Optional; when all three unit names, filter_value_type, and single-column.filter_value_type are unsetLast of the six kind-name candidates; selecting multi-column does not raise its priority. It determines object filter kind only, not time-series data conversion. Values and kinds do not pair automatically by prefix. Earlier empty values can make it ineffective. Do not fill multiple alias sets or substitute filter keys for scope verification of production models and all template instances.

34.4 Model files​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
transform_config_file
Model CSV path readable by the actual collection or target-processing host; optional leading @
No default
Unit: none
This unprefixed name is required for production target-side model processing; model-file validation, collection object-list reads, and production target-model processingObject-list reads and file validation choose the first existing value in unprefixed, single-column-prefixed, then multi-column-prefixed order, not by current model. Production target-side processing reads only this unprefixed key; prefixed names are not complete equivalents. Only a leading @ is removed before file reading. Inline CSV, Base64, and remote URLs are not accepted. Validation trims whitespace but production reads do not handle it uniformly. Relative-path bases may also differ. Prefer explicit visible absolute paths. Successful validation does not prove verification of the production file, expressions, or collection scope.
single-column.transform_config_file
Prefixed model-file path alias; optional leading @, not inline content
No independent default
Unit: none
Cannot independently replace transform_config_file required by production target-side processing; object-list reads and file validation use it when transform_config_file is unsetTakes precedence over multi-column.transform_config_file and is not isolated by current model. An existing but empty unprefixed key does not fall back to it. Acceptance by file validation and object-list reads does not mean production target-side acceptance. At least local production tasks and local automatic discovery initialization still require the unprefixed file key. Do not let two entry points read different files. Confirm matching actual paths, contents, and model modes before starting.
multi-column.transform_config_file
Prefixed model-file path alias; optional leading @, not inline content
No independent default
Unit: none
Cannot independently replace transform_config_file required by production target-side processing; object-list reads and file validation use it when both preceding file names are unsetSelecting multi-column does not prioritize it over unprefixed or single-column-prefixed keys; earlier empty strings also prevent fallback. It is a candidate only for some read/validation entry points. Successful file validation does not establish end-to-end production support for this alias. Production target-side processing requires the unprefixed file key. Also check model selection, element IDs, templates, and actual object scope. Do not rely on original filters to trim files or template instances again.

34.5 Model generation and production collection​

The single-column scan default cannot replace production task model configuration. The three model-file names are not equivalent end-to-end aliases. Production collection uses an explicit unprefixed transform_config_file and a model file visible to the actual execution host. Successful validation does not prove that the production process can read the same path. Model files are neither inline data nor remote download addresses.

Download rules find objects; they do not automatically constrain all template instances initialized by fixed production tasks. Use PI dataset filtering to check final filters, template scope, and two comparison objects. Then verify using matching Points/elements, windows, and values/status.

35. OPC collection and runtime parameters​

The following 34 names include shared options and aliases, not the complete OPC parameters. Distinguish UA, DA, events, rule-based Point selection, and CSV according to each option's conditions. Matching names do not mean both protocols or entry points use them. They are not standalone CLI flags.

UA connection parameters and DA connection parameters are maintained separately. For the existing procedures and screenshots, see OPC UA, OPC DA, and OPC UA alarms and events. Check target templates and complete CSV fields against the Point-model topics rather than inferring them from this table.

35.1 Collection and events​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
collect_mode
Exact lowercase observe, subscribe, or event
Direct DSN uses observe; the form's initial subscribe selection is not a substitute
Unit: none
Optional; event tasks must explicitly use event; production OPC UA collection, not an OPC DA mode switchobserve polls ordinary Points by interval; subscribe receives source notifications, whose frequency cannot be explained by polling intervals; event filters by event type, source, and severity without merging ordinary-Point models. Names must be lowercase; EVENT and similar forms are invalid. To collect both ordinary Points and events, create separate tasks and verify their target data separately.
interval
64-bit signed integer; normal polling requires a representable positive number of seconds
DA uses 10 seconds when unset or nonpositive; UA observe has no usable default interval and requires an explicit positive value
Unit: integer seconds; duration strings such as 10s are not accepted
Explicit positive value recommended for UA observe; optional for DA; ordinary-Point polling in UA observe and DA; also participates in UA subscribe health/recovery checks, not notification frequency; does not control event notification frequencyDA direct DSN uses 10 seconds when unset or nonpositive, unlike the form's initial 1 second. Unset or nonpositive UA observe intervals are invalid and may cause collection failure; they do not select 10 seconds automatically or disable collection. Applies to all polling Points in one task, without guaranteeing read duration or end-to-end latency. Use a reasonable positive value and check actual collection against source values and target times. Do not use enormous integers.
contains_bad
Lowercase true or false; empty string means unset, without whitespace trimming
false; corresponding abnormal-quality values are filtered
Unit: none
Optional; ordinary Point-value processing in UA observe, subscribe, and DA; not a UA event severity or quality filterWith false, ordinary UA Points retain only normal values with status code 0, and DA retains only Good-quality values. Abnormal or uncertain quality can therefore result in no data. true permits corresponding abnormal-quality values to continue processing but does not guarantee ingestion of all source errors, unknown types, or invalid values. Check source quality, target values, and quality columns together, not only task runtime state. This key does not filter UA events; event parameters determine their scope.
truncate_at_nul
Lowercase true or false; empty string means unset, without whitespace trimming
true; truncate strings at the first NUL character
Unit: none
Optional; string values of ordinary OPC DA Points; not used for UA or nonstring valuesApplies to both CSV and Point-selection methods. true retains only the string before the first actual NUL (U+0000). NUL is not the two visible characters \0 or a space. false retains the original string, but first verify that the target type accepts it. Raw retention saves values before truncation and may differ from processed target strings. Check source values, actual options, and target results during verification. Does not truncate numeric or binary values.
event_types
Comma-separated event-type NodeId strings; trims each entry and removes empty entries
Empty list when unset; event mode rejects empty lists
Unit: none
At least one entry for UA collect_mode=event; OPC UA event collection; unused by ordinary-Point modesEnter complete event-type NodeIds, not UI display names. Any listed type can match; selected parent types include subtypes. Notifications must also meet configured source and severity conditions. A nonempty list does not prove every NodeId is valid or subscriptions succeed. Check each entry and verify actual notifications. Do not rely on invalid entries for empty results or a stable all-types fallback. If a NodeId identifier contains an ASCII comma, backslashes or URL-encoding the whole value cannot be relied on to preserve one list entry. First confirm whether the supported entry point can express it.
event_source_filter
Comma-separated SourceNode NodeId strings; trims each entry and removes empty entries
Empty list; no additional source restriction
Unit: none
Optional; explicitly provide and verify valid NodeIds when source restrictions are needed; source filtering for OPC UA collect_mode=eventExact SourceNode matching; any listed source can match. An area node does not automatically include all descendants or change the event subscription location. When selecting an area in the UI, check the actual submitted source list. Invalid source NodeIds may be skipped; if all are invalid, the source restriction may disappear and scope may expand. Invalid input does not necessarily error or return no results. If a NodeId identifier contains an ASCII comma, do not rely on backslashes or whole-value URL encoding to preserve one entry. Confirm entry-point support and verify actual event sources.
event_min_severity
16-bit unsigned integer; valid range 1..1000 inclusive
Unset; no severity condition
Unit: OPC UA Severity value
Optional; initially omit to retain low-severity return-to-normal notifications; OPC UA collect_mode=eventReceives only notifications whose Severity is at least this threshold. Neither 0 nor an empty string disables filtering; omit the key for no severity filtering. Thresholds may exclude low-severity alarm return-to-normal notifications. Prefer omission during initial lifecycle verification, then set it according to business requirements. Continued receipt of activations does not establish a complete alarm lifecycle.
limit
64-bit signed integer; accepted as configuration but imposes no effective limit
Unset; no collection count cap
Unit: no effective measurement semantics established
Optional; do not rely on it to limit collection or browsing scope; acceptance does not impose this count limit on production collection, Point enumeration, or automatic discoveryDo not use it to limit total Points, total samples, individual Read/Browse requests, or output batches. Do not interpret 0, positive, or negative values as different effective limit modes. This entry only documents an accepted but ineffective field, not a recommended configuration capability. To narrow scope, use the corresponding Point filters and check actual Point lists and target data.

35.2 Point filtering and maintenance​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
root
String; UA browse-start NodeId or DA dot-separated access path; empty string means unset
UA uses i=85 (Objects); DA leaves access path unspecified and starts from the browsable tree root
Unit: none
Optional; command enumeration and corresponding rediscovery of ordinary Points; not UA event-source filtering or CSV Point-ID rewritingUA browses from the specified node; DA locates by dot-separated access path. Values cannot be interchanged between sources. Specifies only the ordinary-Point browse starting point, not target database/table names, file paths, or total samples, and does not rewrite CSV Point IDs. UA events do not use it; root cannot change their subscription node or source scope. Check actual enumerated Points after saving.
namespaces
Comma-separated 16-bit unsigned integers; entries are not trimmed; empty string means unset
No configured list; UA ordinary-Point attribute filtering excludes namespace 0 by default, rather than accepting every namespace unconditionally
Unit: current Server namespace index
Optional; OPC UA ordinary-Point enumeration and scans using that Point configuration; unused by DA and event filteringUse lists without spaces, such as 1,2. 1, 2 is not equivalent. When unset, ordinary-Point filtering excludes namespace 0. Explicit lists filter by listed indices and may include 0. Returned Point trees may still retain parent nodes; not all metadata must belong to listed namespaces. Indices differ by endpoint and must be rechecked after source changes. They are not a stable cross-server namespace URI mapping.
pattern
Regular expression string for legacy filtering; unset or empty expressions add no restriction
No filtering by this option
Unit: none
Optional; ordinary-Point command enumeration and corresponding discovery filtering; not event ContentFilter or CSV Point-ID rewritingMatches when either name or ID matches; UA name means BrowseName, DA means Point name. If browse_name_pattern and node_id_pattern are also set, their respective conditions must also match. The three keys do not override one another. Regular-expression syntax compatibility may differ between browsing, refiltering, and automatic discovery. Before using advanced syntax, check both matched and excluded objects separately. One successful browse does not replace production verification.
node_id_pattern
Regular expression string; unset or empty expressions add no restriction
No ID filtering
Unit: none
Optional; command enumeration and corresponding discovery filtering of UA ordinary-Point NodeIds or DA TagsMatches UA NodeIds or DA Tags. When name filtering and legacy pattern are also set, all conditions must be satisfied. This is not a renamed legacy key with mutual overriding. Does not change Point IDs, verify read permissions, or guarantee collectible values for enumerated Points. Syntax must work for both browsing and subsequent filtering. Verify scope with matched and excluded objects, then verify target data.
browse_name_pattern
Regular expression string; unset or empty expressions add no restriction
No name filtering
Unit: none
Optional; command enumeration and corresponding discovery filtering of UA ordinary-Point BrowseNames or DA leaf NamesMatches UA BrowseName or DA Point names, not DisplayName, complete paths, or NodeIds. When node_id_pattern and legacy pattern are also set, all conditions must be satisfied. Does not filter UA event types or SourceNode. Syntax must also work for later filtering. Verify using actual matched and excluded objects.
update_mode
none, append, or update; enumeration parsing ignores case
none; this periodic Point-update method is disabled
Unit: none
Optional; legacy ordinary-Point update path for UA and DA, not events; append/update cannot coexist with UA automatic new-Point synchronizationnone performs no such periodic updates. append retains existing Points and adds new ones. update adds/removes collection Points according to the new list. Removal from collection does not mean deletion of target tables or history. Multiple CSV Point lists can be configured initially, but this update method tracks only the first; do not expect every file to refresh continuously. This differs from automatic new-Point synchronization. After enabling, check added, retained, and removed Points separately.
update_interval
Nonnegative integer with platform-dependent maximum; use a reasonable positive value when periodic updates are enabled
600, or 10 minutes
Unit: integer seconds
Optional; do not set 0 when updates or discovery are enabled; ordinary-Point append/update cycles or UA auto_sync_new_points scan scheduling, not source read intervalsUsed for enabled append/update cycles or UA automatic new-Point browse cycles. Merely entering an interval does not enable updates when update_mode=none and automatic synchronization is off. With updates enabled, 0 is an invalid period and may cause task failure. It does not mean disabled, 600, or immediate discovery. Not a source sampling period or new-Point ingestion deadline. Check updated Point lists and new target values.
auto_sync_new_points
Lowercase true or false; whitespace is not trimmed, and empty strings are not default values
false
Unit: none
Optional; only rule-based ordinary OPC UA Point selection; unsupported by DA and fixed CSV; event tasks do not enable ordinary-Point discoveryPeriodically browses saved rules and ingests new matching Points. Cannot coexist with append/update. Enabling for DA or fixed CSV is rejected. Event mode does not use it, but its presence does not necessarily error. It does not guarantee automatic handling of source deletion, type changes, new-Point history, or failure recovery. Disabling it does not narrow the scope already selected during initialization. Verify matched and excluded objects separately, then observe actual target data for new Points.

35.3 Reporting and backpressure​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
concurrent
64-bit signed integer; valid values are nonnegative; normally use a reasonable positive value or default 0
If both this and write_concurrency are unset, or the selected value is 0, uses 1 reporting stream per value type
Unit: reporting streams per value type
Optional; plugin-to-taosX reporting for production UA/DA collection and UA events; takes precedence over write_concurrencyReads write_concurrency only when this key is absent. Empty or invalid values do not fall back; negative values are rejected. 0 fixes reporting at 1 stream per value type. It does not disable writes, adapt to load, control source read concurrency, count all task connections, or cap global TDengine write concurrency. Higher values add connection and buffer overhead. Compare source load, backlog, and target writes before and after changes. Integer input ranges do not establish usable scale.
write_concurrency
64-bit signed integer alias of concurrent; normally use reasonable nonnegative values
No independent default; follows concurrent fallback when both keys are unset or selected value is 0
Unit: reporting streams per value type
Optional; only when concurrent is unset; production UA/DA collection and UA event reportingControls the same setting as concurrent. Ignored if concurrent exists, even if concurrent is empty or invalid. Do not configure different values with both keys. 0 does not disable writes; it uses 1 stream per value type. It is neither adaptive selection nor database-global concurrency control. For tuning, keep other parameters unchanged and check backlog and target data.
batch_size
64-bit signed integer; use a reasonable positive integer; negatives are rejected
Defaults to 1000; explicit 0 uses 1000 for reporting, but the durable cache still receives 0
Unit: records per reporting batch; also affects cache batches when persistence is enabled
Optional; explicitly use a positive value with persistence; production UA/DA and UA event reporting; also cache batches when persistence and task identity are availableBatches reporting for value types, not nodes per source Read/Browse, total collection Points, or DA enumeration batch size. Explicit 0 changes to 1000 only on the reporting side; durable caching retains the original value. Do not assume both layers use the same default automatically. Use a positive value with caching. Not the entire path's total buffer capacity. Compare queues, memory, and target writes before increasing it.
batch_timeout
64-bit signed integer seconds; use a reasonable positive value; reporting supports at most 9223372036 seconds
Defaults to 1 second; explicit 0 uses 2 seconds for reporting but remains 0 seconds for the durable cache
Unit: integer seconds, not milliseconds or unit-bearing duration strings
Optional; explicitly use a positive value with persistence; UA/DA and UA event reporting batches; also cache batch waits when persistence and task identity are availableTimed sending for reporting batches, not OPC request timeout, connection timeout, or maximum end-to-end latency. Omission and explicit 0 differ: omission uses 1 second; 0 becomes 2 seconds for reporting, while the durable cache still receives 0. Do not describe every 0 as automatic configuration. Use a positive value with caching. Queuing, backpressure, and acknowledgment waits still add latency. Verify source values, backlog, and target results over the same window.
max_buffered_bytes
64-bit signed integer; explicit values must be 1..9223372036854775807 inclusive
67108864 bytes, or 64 MiB, when unset
Unit: bytes
Optional; explicit 0, negatives, and empty strings are rejected; shared value-buffer budget across reporting streams from UA/DA and UA events to taosXReporting waits when buffer capacity is insufficient. A single value whose estimated size exceeds the budget errors rather than allowing unlimited appending. Constrains only the corresponding reported-value buffer, not all queues, encoding, process memory, or durable disk caches. Not a hard process-memory cap. Direct DSNs cannot use 0 for the default. For backpressure, check individual value sizes, downstream capacity, and cache space instead of continuously increasing the budget.
report_timeout
64-bit signed integer; explicit valid range 1..9223372036 inclusive
60 seconds when unset
Unit: integer seconds
Optional; explicit 0, negatives, and empty strings are rejected; plugin-to-taosX reporting connection establishment, sends, and acknowledgment waits for UA/DA and UA eventsLimits the corresponding reporting connection wait and write/acknowledgment waits within one send. Not an OPC Server request timeout, source read interval, or whole-task recovery deadline. Acknowledgment does not mean every target row was successfully written. In v3.4.4.2, UA/DA reporting failures, including reporting timeouts, cause the collection plugin to exit. Whether it is restarted depends on the actual external supervisor and task retry conditions; see Stopping, recovery, and limitations. Direct DSNs cannot use 0 to select the 60-second default. After timeouts, check source collection, reporting, and target results separately. Do not hide downstream blocking merely by increasing it.

35.4 Persistence and retention​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
persist_data_enable
Lowercase true or false; whitespace is trimmed and empty values mean unset
false
Unit: none
Optional; initialization also needs task context from the runtime entry point; durable caching for production UA/DA collection and UA events, with task and job identities supplied by the execution entry pointEnables local durable caching for received data. Actual effect also depends on task and job identities supplied during task or agent execution. For standalone entry points without identity, true alone does not prove caching exists or guarantee an error. Caches do not recover uncollected source changes or guarantee cross-node recovery, power-loss safety, or exactly-once operation. Check caches and logs on the actual collection host, and verify resend and target results separately.
persist_data_dir
Local directory path; whitespace is trimmed and empty values mean unset
With task identity, tasks/<任务ID>/<作业ID>/persist_queue under the collection host's data directory
Unit: none
Optional; persist_data_enable=true and a production entry point with task contextUsed only with persist_data_enable and task identity. A directory alone does not enable caching. It belongs to the actual collection/cache host, not the browser, and cannot be mixed with raw retention directories. Before enabling, check service-account read/write permissions, disk capacity, and existing cache state. Do not delete queues to initialize them, or infer completed cross-host migration/recovery from a configured path.
enable
Lowercase true or false; whitespace is not trimmed and empty strings error
No raw retention when both this and keep_raw_data are unset
Unit: none
Optional; raw-value dumps for ordinary UA/DA collection; takes precedence over keep_raw_data; removed by the Point-enumeration entry pointLegacy raw-value retention name, not task start/stop or durable caching; false does not stop collection. When enabled, outputs rotating retention files on the collection host. Verify their ordinary-Point contents, not merely the directory. Enumeration does not enable this retention, so enumeration success does not establish production retention. UA events do not provide this ordinary-Point-value retention; accepted configuration does not prove raw events are saved.
keep_raw_data
Boolean alias of enable; accepts only lowercase true or false
No independent default; disabled when both keys are unset
Unit: none
Optional; selected only when enable is unset; ordinary UA/DA raw-value retentionControls the same setting as enable. Ignored if enable exists, even if invalid or empty, without fallback. Does not enable store-and-forward, form a resumption checkpoint, or retain raw UA events. Disabling does not delete existing files. Path and retention period apply only when the selected switch is true. Verify Point identifiers, values, quality, and times in ordinary-Point files; file existence does not prove target writes.
path
Raw retention directory string; whitespace is not trimmed and explicit empty strings do not become defaults
With corresponding task context, tasks/<任务ID>/<作业ID>/rawdata under the collection host data directory; otherwise no usable default directory
Unit: none
Required explicitly if raw retention is enabled without task-directory context; applies when raw retention is true; takes precedence over keep_raw_data_dirSelects path, keep_raw_data_dir, then task default directory in order. Enabled retention without a usable directory errors. If path exists, even empty, no alias or default fallback occurs. Belongs to the actual collection-plugin host; check directory creation and file-write permissions. Not a Point root, CSV file, durable cache directory, or generic path for every connector.
keep_raw_data_dir
Raw retention directory string alias of path; whitespace is not trimmed
No independent default; follows path task-directory rules when both keys are unset
Unit: none
Required when retention is enabled without task-directory context and path is unset; applies when raw retention is true and path is unsetUsed only if path is absent; an empty path does not select this key. The directory is on the actual collection host, not the browser or control host. Setting it does not create a durable recovery cache. Successful directory creation does not prove retention data exists or verify raw UA events. Ordinary-Point retention is not a complete archive of all source events or failed data.
keep
Nonnegative integer with platform-dependent maximum; normal retention requires a reasonable positive value
1 day when both this and keep_raw_data_days are unset, not 7 days
Unit: days, each converted as 24 hours
Optional; raw retention is true; takes precedence over keep_raw_data_daysRetention duration for ordinary-Point files, which rotate hourly. Unset means 1 day. Explicit 0 does not automatically become 7 days here. Its retention effect has no reliable guarantee; do not use it for permanent retention, disabling, or defaults. Use a reasonable positive value and monitor directory usage. Duration does not guarantee immediate deletion at expiry or cap disk capacity.
keep_raw_data_days
Nonnegative integer alias of keep with platform-dependent maximum; normal retention requires a positive value
No independent default; 1 day when both keys are unset
Unit: days, each converted as 24 hours
Optional; raw retention is true and keep is unsetUsed only when keep is absent. An empty or invalid keep errors rather than falling back. Duration of ordinary-Point retention files, not source backfill days, cache resumption deadlines, or disk budgets. 0 provides no reliable retention guarantee. Do not use it for 7 days, permanent retention, or disabling retention. Use a reasonable positive value and monitor directory usage.

35.5 Model files and logs​

Parameter and typeWhen unset and unitsRequirement and effective conditionsUsage
csv_config_file
Comma-separated CSV representations, each an @file path or Base64-encoded CSV content
Unset or wholly empty values use rule-based Point selection; nonempty values select CSV mode but still require representation/content validation
Unit: none
A valid representation is required for CSV Point-list mode; events do not use ordinary CSV Point lists; CSV models and Point-list generation for ordinary UA/DA Points; not a standalone CLI flag or generic CSV connector parameterEntries beginning with @ read files; otherwise provide Base64-encoded CSV content, not raw CSV text or certificate-text representations. The list splits on ASCII commas and removes empty entries. Values containing only whitespace or commas do not automatically fall back to rule mode. Complete Point IDs inside the Point list are used unchanged for collection, without splitting commas inside IDs again; this differs from event parameter comma lists. Multiple representations can be processed initially, but periodic Point updates track only the first; not all files are guaranteed dynamic refresh.
csv_config_file_origin
Nonempty original CSV path string; internally generated, with empty string treated as unset
Unset
Unit: none
Optional; internal field, do not enter or modify manually; automatically records the original file path when an agent forwards CSV configuration, for corresponding CSV Point updatesSystem-maintained original CSV path, not a manually configurable second Point list. Updates prefer the original file if its path exists, otherwise the forwarded CSV content. Does not enable discovery or guarantee original-path visibility on another host. Do not fill or modify it to switch Point lists, recover cross-node files, or bypass production task configuration.
debug
Boolean string; only exact lowercase true parses as true; false and other invalid values produce false
Reads log_level if this key is unset; false when both are unset
Unit: none
Optional; not recommended for prolonged production use; UA/DA plugin debug Boolean used by production collect and Point commands through their respective entry points; takes precedence over log_levelWhen present, takes precedence over log_level, including empty/invalid values. Invalid values become false without error and cannot be overridden with log_level=debug. true enables plugin debug logs and attempts to initialize additional diagnostics; it does not merely change the main taosX log level or guarantee diagnostic service accessibility. Use only during approved troubleshooting, assess added output and access exposure, restore afterward, and check actual logs.
log_level
Exact lowercase error, warn, info, debug, or trace; whitespace is not trimmed
When both this and debug are unset, debug is disabled and normal plugin logging configuration is used
Unit: none
Optional; only when debug is absent, to reduce the setting to the OPC plugin debug BooleanThis entry point only determines debug enablement: error/warn/info disable it and debug/trace enable it. It does not guarantee error suppresses every info message or trace provides more levels than debug. Invalid values error, but an existing debug key causes this key to be ignored without validation. Debug enablement also attempts to initialize additional diagnostics. Does not change source timeouts, Point filters, raw retention, or main taosX global logging. Restore an appropriate setting after troubleshooting.

35.6 Adjustment and verification​

Change one control at a time and compare source load, task backlog, and target times, values, and quality within a separate test scope. Source Read/Browse node caps, collection intervals, plugin reporting batches, and task target writes are different layers of batching. Accepted configuration or a running task does not prove an option is effective.

Raw retention is neither an error archive, a durable pending-send queue, nor a database backup. Paths belong to hosts visible to the actual collection process, not the browser download directory or another taosX-Agent. Retain the original task and state. Use Restart, checkpoints, and store-and-forward to check gaps and replay. Switch names alone do not justify lossless recovery promises for power failures, cross-node operation, or source events never collected.