Skip to main content
Question

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

  • July 30, 2025
  • 5 replies
  • 97 views

Forum|alt.badge.img+2

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

Forum|alt.badge.img+2
  • Author
  • Seasoned ⭐️⭐️
  • July 30, 2025

@Aditya Kotiyal 


Aditya Kotiyal
MVP ⭐️⭐️⭐️⭐️⭐️
Forum|alt.badge.img+5
  • MVP ⭐️⭐️⭐️⭐️⭐️
  • July 30, 2025

@Thomas Sjølshagen  Any comment on this?

 

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


Forum|alt.badge.img

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.


Forum|alt.badge.img+2
  • Author
  • Seasoned ⭐️⭐️
  • July 30, 2025

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


Forum|alt.badge.img+2
  • Author
  • Seasoned ⭐️⭐️
  • July 31, 2025

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