# OPC UA input with telegraf

**URL:** <https://community.influxdata.com/t/opc-ua-input-with-telegraf/57660>\
**Category:** Systems\
**Created:** [July 20, 2025, 9:55am UTC](https://community.influxdata.com/t/opc-ua-input-with-telegraf/57660 "2025-07-20T09:55:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alberto\_p](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/alberto_p/32/15693_2.png) [@alberto\_p](https://community.influxdata.com/u/alberto_p)\
**Post date:** [July 20, 2025, 9:55am UTC](https://community.influxdata.com/t/opc-ua-input-with-telegraf/57660/1 "2025-07-20T09:55:13Z")

</div>

Hi all,  
I’m asking the possibility to configure the OPC UA that support this column settings

```auto
opcua,host=quest,id=ns\=2;s\=Variable.TOTAL_CONSUMPTION:993 node1=44,Quality="The operation succeeded. StatusGood (0x0)",DataType="Double" 1753004542000000000
opcua,host=quest,id=ns\=2;s\=Variable.TOTAL_CONSUMPTION:994 node2=55,Quality="The operation succeeded. StatusGood (0x0)",DataType="Double" 1753004545000000000

```

to this

```auto
opcua,host=quest,id=ns\=2;s\=Variable.TOTAL_CONSUMPTION:993 node0=44,Quality="The operation succeeded. StatusGood (0x0)",DataType="Double" 1753004542000000000
opcua,host=quest,id=ns\=2;s\=Variable.TOTAL_CONSUMPTION:994 node0=55,Quality="The operation succeeded. StatusGood (0x0)",DataType="Double" 1753004545000000000

```

so to have in database one single name instead multiple for each sensor since the the key is the Id. Below the configuration that I’m using

```auto
> [[inputs.opcua]]
> name = "opcua"
> endpoint = "opc.tcp:// ****** :4841"
> connect_timeout = "10s"
> request_timeout = "5s"
> session_timeout = "20m"
> security_policy = "None"
> security_mode = "None"
> optional_fields = ["DataType"]
> 
> [[inputs.opcua.group]]
> nodes = [
> {name="node1", namespace="2", identifier_type="s", identifier="Variable.TOTAL_CONSUMPTION:993"}
> {name="node2", namespace="2", identifier_type="s", identifier="Variable.TOTAL_CONSUMPTION:994"}
> ]
> 
> [[outputs.file]]
> files = ["metrics.out"]
> data_format = "influx"
> rotation_interval = "24h"
> rotation_max_archives = 10

```

Best Regards  
ALP

---

<div class="post-metadata">

**Author:** ![suyash](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/suyash/32/15791_2.png) [@suyash](https://community.influxdata.com/u/suyash)\
**Post date:** [July 30, 2025, 8:59am UTC](https://community.influxdata.com/t/opc-ua-input-with-telegraf/57660/2 "2025-07-30T08:59:15Z")

</div>

> [@alberto\_p](#):
>
> I’m asking the possibility to configure the OPC UA that support this column settings
> 
> ```auto
> opcua,host=quest,id=ns\=2;s\=Variable.TOTAL_CONSUMPTION:993 node1=44,Quality="The operation succeeded. StatusGood (0x0)",DataType="Double" 1753004542000000000
> opcua,host=quest,id=ns\=2;s\=Variable.TOTAL_CONSUMPTION:994 node2=55,Quality="The operation succeeded. StatusGood (0x0)",DataType="Double" 1753004545000000000
> 
> ```
> 
> to this
> 
> ```auto
> opcua,host=quest,id=ns\=2;s\=Variable.TOTAL_CONSUMPTION:993 node0=44,Quality="The operation succeeded. StatusGood (0x0)",DataType="Double" 1753004542000000000
> opcua,host=quest,id=ns\=2;s\=Variable.TOTAL_CONSUMPTION:994 node0=55,Quality="The operation succeeded. StatusGood (0x0)",DataType="Double" 1753004545000000000
> 
> ```
> 
> so to have in database one single name instead multiple for each sensor since the the key is the Id. Below the configuration that I’m using
> 
> ```auto
> > [[inputs.opcua]]
> > name = "opcua"
> > endpoint = "opc.tcp:// ****** :4841"
> > connect_timeout = "10s"
> > request_timeout = "5s"
> > session_timeout = "20m"
> > security_policy = "None"
> > security_mode = "None"
> > optional_fields = ["DataType"]
> > 
> > [[inputs.opcua.group]]
> > nodes = [
> > {name="node1", namespace="2", identifier_type="s", identifier="Variable.TOTAL_CONSUMPTION:993"}
> > {name="node2", namespace="2", identifier_type="s", identifier="Variable.TOTAL_CONSUMPTION:994"}
> > ]
> > 
> > [[outputs.file]]
> > files = ["metrics.out"]
> > data_format = "influx"
> > rotation_interval = "24h"
> > rotation_max_archives = 10
> 
> ```

Have you looked at this [telegraf/plugins/inputs/opcua at master · influxdata/telegraf · GitHub](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/opcua) ?
