You need a Processor plugin. I think this should be possible with the processors.enum or processors.regex plugin - if it is only a few routers. If we are talking about hundreds or thousands of routers, I would use a processors.execd plugin.
Thank you for your answer ! , it’s more about hundreds of routers.
I am very new to telegraf, i’m trying to understand what your idea is. So i did that in my telegraf but it dosen’t work… I cant find any example how to do it with execd.
I have a config file per router
and in each config file i assign them a group, i have no idea what to put in the command feild, so i typed echo…