Skip to main content

taosX-Agent Reference

Overview

taosX-Agent is a component of TDengine TSDB Enterprise that acts as a proxy for taosX. It is deployed close to data sources and is responsible for collecting data and forwarding it to taosX.

When taosX cannot directly access a data source — for example, when the data source is in an isolated OT network, an industrial control network segment, or a restricted intranet — you can deploy taosX-Agent in the same network as the data source to proxy data collection and forwarding.

Typical use cases:

  • OPC UA/DA data ingestion: The OPC Server is deployed in an isolated industrial control network, while taosX is deployed in the IT network or cloud. Agent proxies the data collection.
  • PI system data ingestion: The PI system is deployed in the OT network. taosX-Agent is deployed on a Windows host that can access the PI system to proxy data transfer.
  • Other restricted network scenarios: Any scenario where taosX and the data source cannot communicate directly can be resolved through Agent proxying.

Features

FeatureDescription
Data proxy collectionProxies taosX to collect data from OPC UA, OPC DA, PI, and other data sources
Compressed data transferSupports enabling communication data compression between Agent and taosX to reduce bandwidth consumption
In-memory cacheSupports configuring the number of in-memory cache batches to improve data transfer efficiency
Auto-reconnectSupports keeping the Agent running and automatically reconnecting when the taosX service is unavailable
Store and ForwardPersists collected data to local disk during network outages and automatically resends it when the network recovers, ensuring zero data loss. See Store and Forward
Multi-instance deploymentMultiple Agent instances can be deployed on the same machine, distinguished by instanceId

Getting taosX-Agent

taosX-Agent must be downloaded separately; it is not included in the TDengine TSDB Enterprise installation package.

Visit the TDengine Download Center, select TDengine taosX-Agent from the product list, then choose the appropriate version, operating system, and architecture to download the installation package.

note

taosX-Agent is only available in TDengine TSDB Enterprise. It is not included in the Community Edition.

Prerequisites

Network Requirements

taosX-Agent must maintain network connectivity with both the taosX service and the data source:

DirectionDescription
Agent → taosXAgent must be able to access the taosX gRPC service port (default 6055)
Agent → Data sourceAgent must be able to access the data source (e.g., OPC UA Server, PI Data Archive)
tip

Before deployment, verify network connectivity from Agent to taosX:

# Linux
nc -zv <taosX_host> 6055

# Windows PowerShell
Test-NetConnection -ComputerName <taosX_host> -Port 6055

Platform Requirements

  • General scenarios: Agent can be deployed on both Linux and Windows.
  • PI data ingestion: Agent must be deployed on Windows because PI AF SDK only supports Windows. The Agent host must also have PI AF SDK (PI AF Client 2018+) and .NET Framework 4.8+ installed.

Dependencies

  • taosX: taosX-Agent must connect to a running taosX instance.
  • taosExplorer: You need to create an Agent and obtain a Token through the Explorer interface.

Installation

After downloading the taosX-Agent installation package for your platform from the TDengine Download Center, follow the installer instructions to complete the installation.

After installation, taosX-Agent files are located at:

ItemLinuxWindows
Executable/usr/bin/taosx-agentC:\TDengine\taosx-agent.exe
Configuration file/etc/taos/agent.tomlC:\TDengine\cfg\agent.toml
Log directory/var/log/taos/C:\TDengine\log\
Service nametaosx-agent (systemd)taosx-agent (Windows Service)

Usage

Step 1: Create an Agent in Explorer

  1. Log in to the taosExplorer interface.
  2. Click Data In in the left navigation bar.
  3. Select the Agent tab at the top.
  4. Click the +Create New Agent button in the upper right corner.

Create Agent

  1. Follow the wizard instructions. The system will generate an endpoint and token. Copy and save them to the agent.toml configuration file.

Generate endpoint and token

warning

Save the endpoint and token before clicking "Next". If lost, they cannot be recovered and you must create a new agent.

Step 2: Edit the Configuration File

Edit the configuration file and fill in the information obtained from Explorer:

# taosX gRPC service address (required)
endpoint = "http://<taosX_host>:6055"

# Token generated when creating the Agent in Explorer (required)
token = "<your_token>"

For a full list of configuration options, see Configuration Reference.

Step 3: Start the Service

systemctl start taosx-agent

Enable auto-start on boot:

systemctl enable taosx-agent

Step 4: Verify Agent Status

After starting, go back to the Explorer agent creation wizard page and click the Check Agent Connection button. A status of Normal indicates the Agent is online.

Verify Agent Status

You can also check the logs to confirm startup:

journalctl -u taosx-agent -f

Or view the log file directly:

tail -f /var/log/taos/taosx-agent.log

Step 5: Create a Data Ingestion Task

Once the Agent is online, go to the Data In page in Explorer. When creating a data source task, select the online Agent from the Agent dropdown to collect data through it.

Troubleshooting

Viewing Logs

# View service logs with journalctl
journalctl -u taosx-agent -f

# Or view the log file directly
tail -f /var/log/taos/taosx-agent.log

Common Issues

SymptomPossible CauseSolution
Agent cannot come onlineIncorrect endpoint or network connectivity issueCheck the taosX address and port; verify network connectivity
Agent cannot come onlineIncorrect tokenRecreate the Agent in Explorer to obtain a new Token
Agent frequently disconnects and reconnectsUnstable networkCheck the network quality between Agent and taosX; ensure keep_online = true
Data collection failsAgent cannot access the data sourceCheck network connectivity and permissions from Agent to the data source

Uninstall

taosX-Agent is installed as a standalone component and must be uninstalled separately.

To stop the taosX-Agent service:

# Stop the service
systemctl stop taosx-agent

# Disable auto-start on boot
systemctl disable taosx-agent

To fully uninstall taosX-Agent, use the appropriate uninstall method for your operating system (e.g., package manager on Linux, "Add or remove programs" on Windows).