Process a group of nodes only if another single node has a specific value

We are getting data from OPC UA server and for a lot of metrics, subscription is ok.
We have a set of data we need to get all together and we wanted to use a single node “trigger” on survey and when its value is True, we get a group of nodes we will send to an SQL server (each node is a column in a table)
I wonder if telegraf is able to be used for this kind of case.

@gmassart Telegraf does not provide conditional triggering of inputs based on other input values. What you can do though is to collect all data and then drop a subset based on other data using the starlark processor.

@srebhan Thank you for the feedback
I will have a look at the processor you mention.
It will not avoid me to claim all data continuously, I have no idea if the OPC UA server performance will be a problem. We use the embeded OPC UA server on the CPU of the SIEMENS PLC.
We will need to give a try
Today we developped our own python script for that but telegraf seemed easier and more adapted.

If it’s a Siemens S7 compatible PLC please also take a look at s7comm input plugin

I had a look at it, I am stuck because I can’t compile the S7comm file with GO right now (no administration rights on my computer)
I am using nodered with S7comm node to get the same results with some logic nodes and InfluxDB export

I’m not sure why you need to compile the file instead of downloading a (recent) official build of Telegraf and just run it…

No the S7Comm input plugin is an external plugin and the GitHub does not provide the file you need to compile it with options

I mean this

Or perhaps I missed something and it is included in telegram directly ?

And I mean the one I linked to. :smiley:

Sorry my bad I did not check and now I see it is included
I will give a try