How to have Telegraf resolve FQDN to an IP?

Hi,

Is there a way for Telegraf to resolve an FQDN to an IP address and store the IP address in a separate field?

For example, I have a hostname field that I’m receiving that looks like serverName.mgt.com. Can Telegaf resolve the IP address and store the IP to a new field?

Thank you.

I don’t think there is a plugin that does what you are asking.
You can create your own processor (as a simple cmd/Powershell/bash) script using the execd processor.

I’ve found a processor that does the exact opposite reverse_dns, from IP to Name, but you can’t use that to obtain the opposite.

Thanks @Giovanni_Luisotto , I too saw the reverse_dns plugin but wasn’t sure if anything existed to do the reverse. Appreciate your input on it.