Telegraf string extract

Hey Hi ,

My OID is returning a string = 10.08(-12.3dbm) , in telegraf how can i extract only -12.3 value

Can someone help me with what input.string.processor i need to make use of it

Thanks & Regards,


Can you show us what you have tried so far?

Is the 10.08 prefix going to change or is that a constant?
Can the -12.3 value be positive? or will it always be negative?


i tried input.string.left () , which is returning me 10.08 value

10.08 value is dynamic
-12.3dbm also dynamic and always negative