Skip to main content
Seasoned ⭐️⭐️
Jul 30, 2025 10:47 AM UTC
Question

How to filter tags while ingesting data from OPC UA Extractor?

Hello,

I am using OPC UA extractor to bring in sensor data in my cdf project. I want to limit the number of tags I am bring in from the source. I observed that in the PI extractor there is capability to include or exclude tags. Is there a similar filtering capability in OPC UA Extractor?

5 replies

Seasoned ⭐️⭐️
Jul 30, 2025 10:47 AM UTC

​@Aditya Kotiyal 

Aditya Kotiyal
MVP ⭐️⭐️⭐️⭐️⭐️
MVP ⭐️⭐️⭐️⭐️⭐️
Jul 30, 2025 10:59 AM UTC

​@Thomas Sjølshagen  Any comment on this?

 

​@Priyanka Perera You guys probably have done it for customers?

Aditya Kotiyal
Lead Product Manager
Jul 30, 2025 11:29 AM UTC

Hi ​@Utkarsh Bhakne, 

I believe you can use the extraction.transformations filtering functionality (from the docs) to add an Includes filter, and do something along the lines of:

extraction:
# Add this transformations section
transformations:
- type: Include
filter:
# Use 'name' to specify the exact (OPC UA) node names to include
name:
- Boiler.Temperature.Sensor1
- Pump.Pressure.Value

As you can see from the filtering section, there’s support for RegEx’s when specifying filters.

Seasoned ⭐️⭐️
Jul 30, 2025 12:32 PM UTC

Thanks ​@Thomas Sjølshagen, will try this out!

Seasoned ⭐️⭐️
Jul 31, 2025 9:31 AM UTC

Hello ​@Thomas Sjølshagen,

I tried this out but I am getting below error:

 

The config that I am using is:

extraction:
# Global prefix for externalId in destinations. Should be unique to prevent name conflicts.
id-prefix: "opcua:"

status-codes:

status-codes-to-ingest: All
ingest-status-codes: true
data-types:
allow-string-variables: true

transformations:
- type: Include
filter:
name:
- CPF_116_GD_09201_ST_PV
events:
enabled: true
history:
enabled: true

​@HanishSharma